1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-28 08:06:56 +00:00

Improve icon for grid/list mode switch in folder share link

This commit is contained in:
Daniel Pan
2016-03-09 14:05:01 +08:00
parent 8c59095071
commit ca2bef6e73
4 changed files with 11 additions and 3 deletions

View File

@@ -3730,7 +3730,7 @@ img.thumbnail {
border-right:0; border-right:0;
} }
.cur-mode-link { .cur-mode-link {
background:#eee; background:#ccc;
} }
.shared-dir-zip { .shared-dir-zip {
margin-left:5px; margin-left:5px;

BIN
media/img/grid-white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

BIN
media/img/list-white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

View File

@@ -25,9 +25,17 @@
<div class="fright"> <div class="fright">
<a href="?p={{ path|urlencode }}&mode=list" title="{% trans "List" %}" class="mode-link vam{% if mode == 'list' %} cur-mode-link{% endif %} list-mode-link"> <a href="?p={{ path|urlencode }}&mode=list" title="{% trans "List" %}" class="mode-link vam{% if mode == 'list' %} cur-mode-link{% endif %} list-mode-link">
{% if mode == 'list' %}
<img src="{{ MEDIA_URL }}img/list-white.png" alt="" width="20" />
{% else %}
<img src="{{ MEDIA_URL }}img/list.png" alt="" width="20" /> <img src="{{ MEDIA_URL }}img/list.png" alt="" width="20" />
{% endif %}
</a><a href="?p={{ path|urlencode }}&mode=grid" title="{% trans "Grid" %}" class="mode-link vam{% if mode == 'grid' %} cur-mode-link{% endif %}"> </a><a href="?p={{ path|urlencode }}&mode=grid" title="{% trans "Grid" %}" class="mode-link vam{% if mode == 'grid' %} cur-mode-link{% endif %}">
{% if mode == 'grid' %}
<img src="{{ MEDIA_URL }}img/grid-white.png" alt="" width="20" />
{% else %}
<img src="{{ MEDIA_URL }}img/grid.png" alt="" width="20" /> <img src="{{ MEDIA_URL }}img/grid.png" alt="" width="20" />
{% endif %}
</a> </a>
{% if not traffic_over_limit %} {% if not traffic_over_limit %}
<a href="?p={{ path|urlencode }}&dl=1" class="obv-btn vam shared-dir-zip">{% trans "ZIP"%}</a> <a href="?p={{ path|urlencode }}&dl=1" class="obv-btn vam shared-dir-zip">{% trans "ZIP"%}</a>