You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by tv...@apache.org on 2012/06/08 15:55:29 UTC
svn commit: r1348072 - in
/openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp: css/tomee.css
js/tomee/view/ApplicationToolbar.js js/tomee/view/ApplicationView.js
Author: tveronezi
Date: Fri Jun 8 13:55:28 2012
New Revision: 1348072
URL: http://svn.apache.org/viewvc?rev=1348072&view=rev
Log:
https://issues.apache.org/jira/browse/TOMEE-205
* gui cosmetic fixes
Modified:
openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/css/tomee.css
openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/js/tomee/view/ApplicationToolbar.js
openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/js/tomee/view/ApplicationView.js
Modified: openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/css/tomee.css
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/css/tomee.css?rev=1348072&r1=1348071&r2=1348072&view=diff
==============================================================================
--- openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/css/tomee.css (original)
+++ openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/css/tomee.css Fri Jun 8 13:55:28 2012
@@ -16,8 +16,7 @@
*/
body {
- padding-top: 40px;
- padding-bottom: 0px;
+ padding: 0px;
}
.sidebar-nav {
Modified: openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/js/tomee/view/ApplicationToolbar.js
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/js/tomee/view/ApplicationToolbar.js?rev=1348072&r1=1348071&r2=1348072&view=diff
==============================================================================
--- openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/js/tomee/view/ApplicationToolbar.js (original)
+++ openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/js/tomee/view/ApplicationToolbar.js Fri Jun 8 13:55:28 2012
@@ -21,144 +21,157 @@ TOMEE.ApplicationToolbar = function (cfg
var channel = cfg.channel;
- var btnClickHandler = function(event) {
+ var btnClickHandler = function (event) {
var el = $(event.currentTarget);
var btnkey = el.attr('btnkey');
channel.send('toolbar.click', {
- tab: btnkey
+ tab:btnkey
});
};
var elMapToolbar = TOMEE.el.getElMap({
elName:'main',
tag:'div',
- cls:'navbar navbar-fixed-top',
+ attributes:{
+ style:'background-color: #2C2C2C;'
+ },
children:[
{
tag:'div',
- cls:'navbar-inner',
+ cls:'navbar',
+ attributes:{
+ style:'margin-bottom: 0px;'
+ },
children:[
{
tag:'div',
+ cls:'navbar-inner',
+ attributes:{
+ style:'padding-left: 0px; padding-right: 0px;'
+ },
children:[
{
- elName: 'appName',
- tag:'a',
- cls:'brand',
- attributes:{
- href:'#',
- style:'padding-left: 20px; margin-left: 0px;'
- },
- html:TOMEE.I18N.get('application.name')
- },
- {
tag:'div',
- cls:'btn-group pull-right',
children:[
{
+ elName:'appName',
tag:'a',
- cls:'btn dropdown-toggle',
+ cls:'brand',
attributes:{
- 'data-toggle':'dropdown',
- href:'#'
+ href:'#',
+ style:'padding-left: 10px; margin-left: 0px;'
},
- children:[
- {
- tag:'i',
- cls:'icon-user'
- },
- {
- tag:'span',
- elName:'userNameSpan',
- attributes:{
- style:'padding-left: 5px; padding-right: 5px;'
- }
- },
- {
- tag:'span',
- cls:'caret'
- }
- ]
+ html:TOMEE.I18N.get('application.name')
},
{
- tag:'ul',
- cls:'dropdown-menu',
- attributes:{
- style:'right: 5px;'
- },
+ tag:'div',
+ cls:'btn-group pull-right',
children:[
{
- tag:'li',
+ tag:'a',
+ cls:'btn dropdown-toggle',
+ attributes:{
+ 'data-toggle':'dropdown',
+ href:'#'
+ },
children:[
{
- elName:'signoutLink',
- tag:'a',
- attributes:{
- href:'#'
- },
- html:TOMEE.I18N.get('application.logout')
- }
- ]
- }
- ]
-
- }
- ]
- },
- {
- tag:'div',
- cls:'nav-collapse',
- children:[
- {
- elName: 'tabs',
- tag:'ul',
- cls:'nav',
- children:[
- {
- tag:'li',
- children:[
+ tag:'i',
+ cls:'icon-user'
+ },
{
- tag:'a',
+ tag:'span',
+ elName:'userNameSpan',
attributes:{
- btnkey: 'home',
- href:'#'
- },
- html:TOMEE.I18N.get('application.home'),
- listeners: {
- 'click': btnClickHandler
+ style:'padding-left: 5px; padding-right: 5px;'
}
+ },
+ {
+ tag:'span',
+ cls:'caret'
}
]
},
{
- tag:'li',
+ tag:'ul',
+ cls:'dropdown-menu',
+ attributes:{
+ style:'right: 5px;'
+ },
children:[
{
- tag:'a',
- attributes:{
- btnkey: 'apps',
- href:'#'
- },
- html:TOMEE.I18N.get('application.apps'),
- listeners: {
- 'click': btnClickHandler
- }
+ tag:'li',
+ children:[
+ {
+ elName:'signoutLink',
+ tag:'a',
+ attributes:{
+ href:'#'
+ },
+ html:TOMEE.I18N.get('application.logout')
+ }
+ ]
}
]
- },
+
+ }
+ ]
+ },
+ {
+ tag:'div',
+ children:[
{
- tag:'li',
+ elName:'tabs',
+ tag:'ul',
+ cls:'nav',
children:[
{
- tag:'a',
- attributes:{
- btnkey: 'log',
- href:'#'
- },
- html:TOMEE.I18N.get('application.log'),
- listeners: {
- 'click': btnClickHandler
- }
+ tag:'li',
+ children:[
+ {
+ tag:'a',
+ attributes:{
+ btnkey:'home',
+ href:'#'
+ },
+ html:TOMEE.I18N.get('application.home'),
+ listeners:{
+ 'click':btnClickHandler
+ }
+ }
+ ]
+ },
+ {
+ tag:'li',
+ children:[
+ {
+ tag:'a',
+ attributes:{
+ btnkey:'apps',
+ href:'#'
+ },
+ html:TOMEE.I18N.get('application.apps'),
+ listeners:{
+ 'click':btnClickHandler
+ }
+ }
+ ]
+ },
+ {
+ tag:'li',
+ children:[
+ {
+ tag:'a',
+ attributes:{
+ btnkey:'log',
+ href:'#'
+ },
+ html:TOMEE.I18N.get('application.log'),
+ listeners:{
+ 'click':btnClickHandler
+ }
+ }
+ ]
}
]
}
@@ -185,43 +198,43 @@ TOMEE.ApplicationToolbar = function (cfg
channel.send('application.logout', {});
});
- var setActive = function(tab) {
+ var setActive = function (tab) {
var parent = elMapToolbar.tabs.children();
- parent.each(function(index, element) {
+ parent.each(function (index, element) {
var el = $(element);
el.removeClass('active');
var btnkey = el.children().first().attr('btnkey');
- if(!btnkey) {
+ if (!btnkey) {
return;
}
- if(btnkey === tab) {
+ if (btnkey === tab) {
el.addClass('active');
}
});
};
- elMapToolbar.tabs.delegate('a', 'click', function(event) {
+ elMapToolbar.tabs.delegate('a', 'click', function (event) {
elMapToolbar.tabs.find('li').removeClass('active');
var parent = $(event.currentTarget.parentElement);
parent.addClass('active');
});
return {
- getEl: function() {
+ getEl:function () {
return elMapToolbar.main;
},
setLoggedUser:function (name) {
- if(name) {
+ if (name) {
elMapToolbar.userNameSpan.text(name);
} else {
elMapToolbar.userNameSpan.text(TOMEE.I18N.get('application.guest'));
}
},
- setActive: setActive
+ setActive:setActive
};
};
\ No newline at end of file
Modified: openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/js/tomee/view/ApplicationView.js
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/js/tomee/view/ApplicationView.js?rev=1348072&r1=1348071&r2=1348072&view=diff
==============================================================================
--- openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/js/tomee/view/ApplicationView.js (original)
+++ openejb/trunk/openejb/tomee/tomee-webapp/src/main/webapp/js/tomee/view/ApplicationView.js Fri Jun 8 13:55:28 2012
@@ -77,7 +77,7 @@ TOMEE.ApplicationView = function (cfg) {
var availableSpace = (function () {
var windowSize = windowEl.height();
var footerSize = elMapFooter.main.height();
- return windowSize - footerSize - TOMEE.el.getBorderSize(myDiv) - TOMEE.el.getBorderSize($('body'));
+ return windowSize - footerSize - toolbar.getEl().outerHeight(true) - TOMEE.el.getBorderSize(myDiv) - TOMEE.el.getBorderSize($('body'));
})();
myDiv.height(availableSpace);