1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

add 'virus scan' icon to sidenav, modified 'repo setting/history/trash' ui code

This commit is contained in:
llj
2015-08-31 16:56:14 +08:00
parent fcc556836c
commit ad450d6df9
3 changed files with 14 additions and 16 deletions

View File

@@ -119,7 +119,7 @@
.sf2-icon-history:before { content:"\e014"; } .sf2-icon-history:before { content:"\e014"; }
.sf2-icon-settings:before { content:"\e015"; } .sf2-icon-settings:before { content:"\e015"; }
.sf2-icon-trash:before { content:"\e016"; } .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-edit:before { content:"\e018"; }
.sf2-icon-eye:before { content:"\e019"; } .sf2-icon-eye:before { content:"\e019"; }
@@ -3355,21 +3355,17 @@ textarea:-moz-placeholder {/* for FF */
} }
/* multi repo operation */ /* multi repo operation */
.repo-op .op-link { .repo-op .op-link {
width:30px; display:inline-block;
height:30px; height:30px;
text-align:center; margin-right:15px;
margin-right:10px;
color:#8a8a8a; color:#8a8a8a;
font-size:22px;
outline:none; /* removing the dotted outline for FireFox */ outline:none; /* removing the dotted outline for FireFox */
} }
.repo-op .op-link:hover { .repo-op .op-link:hover {
color:#eb8205; color:#eb8205;
text-decoration:none; text-decoration:none;
} }
.repo-op .op-link [class^="sf2-icon-"] {
font-size:22px;
line-height:31px;
}
/* multi dirents operation */ /* multi dirents operation */
#multi-dirents-op { #multi-dirents-op {
padding: 0 10px; padding: 0 10px;

View File

@@ -134,13 +134,15 @@
<button class="op-btn" id="share-cur-dir">{% trans "Share" %}</button> <button class="op-btn" id="share-cur-dir">{% trans "Share" %}</button>
<% } %> <% } %>
<% if (path == '/') { %> <% if (path == '/') { %>
<a class="op-link fright" href="<%= site_root %>repo/history/<%- repo_id %>/" target="_blank" title="{% trans 'History' %}"><span class="sf2-icon-history"></span></a> <div class="fright">
<% if (user_perm == 'rw') { %>
<a class="op-link fright" href="<%= site_root %>repo/recycle/<%- repo_id %>/" target="_blank" title="{% trans 'Trash' %}"><span class="sf2-icon-trash"></span></a>
<% } %>
<% if (is_repo_owner && !is_virtual) { %> <% if (is_repo_owner && !is_virtual) { %>
<a class="op-link fright" href="<%= site_root %>repo/<%- repo_id %>/settings/" target="_blank" title="{% trans 'Settings' %}"><span class="sf2-icon-settings"></span></a> <a class="op-link sf2-icon-settings" href="<%= site_root %>repo/<%- repo_id %>/settings/" target="_blank" title="{% trans 'Settings' %}"></a>
<% } %> <% } %>
<% if (user_perm == 'rw') { %>
<a class="op-link sf2-icon-trash" href="<%= site_root %>repo/recycle/<%- repo_id %>/" target="_blank" title="{% trans 'Trash' %}"></a>
<% } %>
<a class="op-link sf2-icon-history" href="<%= site_root %>repo/history/<%- repo_id %>/" target="_blank" title="{% trans 'History' %}"></a>
</div>
<% } %> <% } %>
</script> </script>
<script type="text/template" id="dir-path-bar-tmpl"> <script type="text/template" id="dir-path-bar-tmpl">

View File

@@ -40,7 +40,7 @@
{% endif %} {% endif %}
{% if events_enabled %} {% if events_enabled %}
<li class="tab {% block cur_virus_scan %}{% endblock %}"> <li class="tab {% block cur_virus_scan %}{% endblock %}">
<a href="{{ SITE_ROOT }}sys/virus_scan_records/" class="security">{% trans "Virus Scan" %}</a> <a href="{{ SITE_ROOT }}sys/virus_scan_records/"><span class="sf2-icon-security"></span>{% trans "Virus Scan" %}</a>
</li> </li>
{% endif %} {% endif %}
</ul> </ul>