From ad450d6df9ea88dc588824d024ecf7eca8570e3b Mon Sep 17 00:00:00 2001 From: llj Date: Mon, 31 Aug 2015 16:56:14 +0800 Subject: [PATCH] add 'virus scan' icon to sidenav, modified 'repo setting/history/trash' ui code --- media/css/seahub.css | 12 ++++-------- seahub/templates/js/templates.html | 16 +++++++++------- seahub/templates/sysadmin/base.html | 2 +- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/media/css/seahub.css b/media/css/seahub.css index b7f0ad2bb7..9d6c6ffc9f 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -119,7 +119,7 @@ .sf2-icon-history:before { content:"\e014"; } .sf2-icon-settings:before { content:"\e015"; } .sf2-icon-trash:before { content:"\e016"; } -.sf2-icon-anti-virus:before { content:"\e017"; } +.sf2-icon-security:before { content:"\e017"; } .sf2-icon-edit:before { content:"\e018"; } .sf2-icon-eye:before { content:"\e019"; } @@ -3355,21 +3355,17 @@ textarea:-moz-placeholder {/* for FF */ } /* multi repo operation */ .repo-op .op-link { - width:30px; + display:inline-block; height:30px; - text-align:center; - margin-right:10px; + margin-right:15px; color:#8a8a8a; + font-size:22px; outline:none; /* removing the dotted outline for FireFox */ } .repo-op .op-link:hover { color:#eb8205; text-decoration:none; } -.repo-op .op-link [class^="sf2-icon-"] { - font-size:22px; - line-height:31px; -} /* multi dirents operation */ #multi-dirents-op { padding: 0 10px; diff --git a/seahub/templates/js/templates.html b/seahub/templates/js/templates.html index 6ad165c107..02c152a3cb 100644 --- a/seahub/templates/js/templates.html +++ b/seahub/templates/js/templates.html @@ -134,13 +134,15 @@ <% } %> <% if (path == '/') { %> - - <% if (user_perm == 'rw') { %> - - <% } %> - <% if (is_repo_owner && !is_virtual) { %> - - <% } %> +
+ <% if (is_repo_owner && !is_virtual) { %> + + <% } %> + <% if (user_perm == 'rw') { %> + + <% } %> + +
<% } %>