diff --git a/media/css/seahub.css b/media/css/seahub.css index e10b11091c..3c8555b444 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -421,6 +421,26 @@ table img { vertical-align:middle; } color:#1f0600; text-align:center; } +.fixed-top-bar { + position: fixed; + top: 0; + left: 0; + right: 0; +} +.top-bar { + padding:7px 4px; + background:#fff1a8; + text-align:center; + border-bottom:1px solid #ccc; + margin:0; + z-index:3; +} +.top-bar-click { + display:inline-block; + margin-left:10px; + cursor:pointer; + color:#15c; +} .outstanding-tip { color:red; } .label { color:#333; font-size:12px; font-style:normal; } .italic { font-style:italic; } @@ -1694,10 +1714,6 @@ button.sf-dropdown-toggle:focus { color: #1f0600; padding:1px 25px 1px 10px; background: #fddaa4; - position: fixed; - top: 0; - left: 0; - right: 0; z-index: 2; } #info-bar .close { @@ -3279,19 +3295,6 @@ button.sf-dropdown-toggle:focus { #download-link-operations dt { margin: 0; } -#top-browser-tip { - padding:7px 4px; - background:#fff1a8; - text-align:center; - border-bottom:1px solid #ccc; - margin:0; -} -#top-browser-tip .close { - display:inline-block; - margin-left:10px; - cursor:pointer; - color:#15c; -} /* shared upload link */ #upload-link-panel { width:600px; diff --git a/seahub/templates/base_for_backbone.html b/seahub/templates/base_for_backbone.html index 5eb082b6bf..8f1d7fbb2a 100644 --- a/seahub/templates/base_for_backbone.html +++ b/seahub/templates/base_for_backbone.html @@ -24,11 +24,11 @@
{% block info_bar_message %} {% if request.user.is_authenticated and request.cur_note %} -
+

{{ request.cur_note.message|urlize }}

diff --git a/seahub/templates/sysadmin/sysadmin_backbone.html b/seahub/templates/sysadmin/sysadmin_backbone.html index f9c195f2e3..d573cb344f 100644 --- a/seahub/templates/sysadmin/sysadmin_backbone.html +++ b/seahub/templates/sysadmin/sysadmin_backbone.html @@ -21,9 +21,6 @@
- {% block info_bar_message %} {% if request.user.is_authenticated and request.cur_note %}
diff --git a/static/scripts/app/router.js b/static/scripts/app/router.js index 7ae3417781..cc67122e05 100644 --- a/static/scripts/app/router.js +++ b/static/scripts/app/router.js @@ -87,7 +87,7 @@ define([ this.currentView = this.myReposView; $('#info-bar .close').click(Common.closeTopNoticeBar); - $('#top-browser-tip .close').click(function () { + $('#top-browser-tip-close').click(function () { $('#top-browser-tip').addClass('hide'); }); },