diff --git a/VERSION b/VERSION index 7ba0fb63..fa8769ff 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-18 13:39:12) stable +Version 2.0.9 (2012-09-20 13:25:48) stable diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index 0cb2e8de..a4d527a6 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -1652,7 +1652,6 @@ def git_pull(): session.flash = T("Application updated via git pull") redirect(URL('site')) except CheckoutError, message: - logging.error(message) session.flash = T("Pull failed, certain files could not be checked out. Check logs for details.") redirect(URL('site')) except UnmergedEntriesError: @@ -1662,11 +1661,9 @@ def git_pull(): session.flash = T("Pull is not possible because you have unmerged files. Fix them up in the work tree, and then try again.") redirect(URL('site')) except GitCommandError, status: - logging.error(str(status)) session.flash = T("Pull failed, git exited abnormally. See logs for details.") redirect(URL('site')) except Exception,e: - logging.error("Unexpected error:", sys.exc_info()[0]) session.flash = T("Pull failed, git exited abnormally. See logs for details.") redirect(URL('site')) elif 'cancel' in request.vars: @@ -1698,7 +1695,6 @@ def git_push(): session.flash = T("Push failed, there are unmerged entries in the cache. Resolve merge issues manually and try again.") redirect(URL('site')) except Exception, e: - logging.error("Unexpected error:", sys.exc_info()[0]) session.flash = T("Push failed, git exited abnormally. See logs for details.") redirect(URL('site')) return dict(app=app,form=form) diff --git a/applications/admin/views/default/edit.html b/applications/admin/views/default/edit.html index 755dd0b2..6555ab50 100644 --- a/applications/admin/views/default/edit.html +++ b/applications/admin/views/default/edit.html @@ -19,6 +19,10 @@ + + + + {{elif TEXT_EDITOR == 'ace':}} @@ -246,6 +250,11 @@ window.onload = function() { {{elif TEXT_EDITOR == 'codemirror':}} @@ -253,6 +262,11 @@ window.onload = function() { {{else:}}

{{=T("Key bindings")}}

diff --git a/applications/welcome/models/menu.py b/applications/welcome/models/menu.py index 784f4a4a..dcf1c275 100644 --- a/applications/welcome/models/menu.py +++ b/applications/welcome/models/menu.py @@ -33,9 +33,9 @@ def _(): # shortcuts app = request.application ctr = request.controller - # useful links to internal and external resources + # useful links to internal and external resources response.menu+=[ - (SPAN('web2py',_style='color:yellow'),False, 'http://web2py.com', [ + (SPAN('web2py',_class='highlighted'),False, 'http://web2py.com', [ (T('My Sites'),False,URL('admin','default','site')), (T('This App'),False,URL('admin','default','design/%s' % app), [ (T('Controller'),False, diff --git a/applications/welcome/static/css/web2py_bootstrap.css b/applications/welcome/static/css/web2py_bootstrap.css index 0c2cf74c..74534cb3 100644 --- a/applications/welcome/static/css/web2py_bootstrap.css +++ b/applications/welcome/static/css/web2py_bootstrap.css @@ -70,7 +70,15 @@ div.controls .error{ //display:inline; /* uncommenting this, the animation effect is lost */ } div.controls .inline-help{color:#3A87AD;} -div.controls .error_wrapper+.inline-help{margin-left:-99999px} +div.controls .error_wrapper+.inline-help{margin-left:-99999px;} +/* beautify brand */ +.navbar-inverse .brand{color:#c6cecc;} +.navbar-inverse .brand b{display:inline-block;margin-top:-1px;} +.navbar-inverse .brand b>span{font-size:22px;color:white} +.navbar-inverse .brand:hover b>span{color:white} +/* beautify web2py link in navbar */ +span.highlighted{color:#d8d800;} +.open span.highlighted{color:#ffff00;} /*============================================================= OVERRIDING WEB2PY.CSS RULES @@ -185,6 +193,8 @@ td.w2p_fw ul{margin-left:0px;} margin:3px 0 0 2px; } .web2py_grid form table{width:auto;} +/* auth_user_remember checkbox extrapadding in IE fix */ +.ie-lte9 input#auth_user_remember.checkbox {padding-left:0;} /*============================================================= MEDIA QUERIES diff --git a/applications/welcome/static/css/web2py_bootstrap_nojs.css b/applications/welcome/static/css/web2py_bootstrap_nojs.css index 2b75915e..0ec7312f 100644 --- a/applications/welcome/static/css/web2py_bootstrap_nojs.css +++ b/applications/welcome/static/css/web2py_bootstrap_nojs.css @@ -1,3 +1,23 @@ +/*============================================================= + BOOTSTRAP DROPDOWN MENU +==============================================================*/ + +.dropdown-menu ul{ + left:100%; + position:absolute; + top:0; + visibility:hidden; + margin-top:-1px; +} +.dropdown-menu li:hover ul{visibility:visible;} +.navbar .dropdown-menu ul:before{ + border-bottom:7px solid transparent; + border-left:none; + border-right:7px solid rgba(0, 0, 0, 0.2); + border-top:7px solid transparent; + left:-7px; + top:5px; +} .nav > li.dropdown > a:after { border-left: 4px solid transparent; border-right: 4px solid transparent; @@ -15,8 +35,7 @@ border-bottom-color: #FFFFFF; border-top-color: #FFFFFF; } - - +.dropdown-menu span{display:inline-block;} ul.dropdown-menu li.dropdown > a:after { border-left: 4px solid #000; border-right: 4px solid transparent; @@ -35,4 +54,69 @@ ul.dropdown-menu li.dropdown > a:after { ul.nav li.dropdown:hover ul.dropdown-menu { display: block; -} \ No newline at end of file +} + +.open >.dropdown-menu ul{display:block;} /* fix menu issue when BS2.0.4 is applied */ + +/*============================================================= + BOOTSTRAP SUBMIT BUTTON +==============================================================*/ + +input[type='submit']:not(.btn) { +display: inline-block; +padding: 4px 14px; +margin-bottom: 0; +font-size: 14px; +line-height: 20px; +color: #333; +text-align: center; +text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); +vertical-align: middle; +cursor: pointer; +background-color: whiteSmoke; +background-image: -webkit-gradient(linear,0 0,0 100%,from(white),to(#E6E6E6)); +background-image: -webkit-linear-gradient(top,white,#E6E6E6); +background-image: -o-linear-gradient(top,white,#E6E6E6); +background-image: linear-gradient(to bottom,white,#E6E6E6); +background-image: -moz-linear-gradient(top,white,#E6E6E6); +background-repeat: repeat-x; +border: 1px solid #BBB; +border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); +border-bottom-color: #A2A2A2; +-webkit-border-radius: 4px; +-moz-border-radius: 4px; +border-radius: 4px; +filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0); +filter: progid:dximagetransform.microsoft.gradient(enabled=false); +-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05); +-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05); +box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05); +} + +input[type='submit']:not(.btn):hover { +color: #333; +text-decoration: none; +background-color: #E6E6E6; +background-position: 0 -15px; +-webkit-transition: background-position .1s linear; +-moz-transition: background-position .1s linear; +-o-transition: background-position .1s linear; +transition: background-position .1s linear; +} + +input[type='submit']:not(.btn).active, input[type='submit']:not(.btn):active { +background-color: #E6E6E6; +background-color: #D9D9D9 9; +background-image: none; +outline: 0; +-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05); +-moz-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05); +box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05); +} + +/*============================================================= + OTHER +==============================================================*/ + +.ie-lte8 .navbar-fixed-top {position:static;} + diff --git a/applications/welcome/views/layout.html b/applications/welcome/views/layout.html index d0a2fd2f..19225730 100644 --- a/applications/welcome/views/layout.html +++ b/applications/welcome/views/layout.html @@ -76,7 +76,7 @@ - web2py™  + web2py™