1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 08:16:07 +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-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;

View File

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

View File

@@ -40,7 +40,7 @@
{% endif %}
{% if events_enabled %}
<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>
{% endif %}
</ul>