1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-22 03:16:34 +00:00

[repo] use icons for dirent download & share.

This commit is contained in:
llj
2014-10-28 15:17:47 +08:00
parent 6756b48c14
commit e1e5e885a5
4 changed files with 23 additions and 11 deletions

View File

@@ -1768,13 +1768,13 @@ textarea:-moz-placeholder {/* for FF */
width:400px; width:400px;
} }
.repo-file-list .dirent-size { .repo-file-list .dirent-size {
width:89px; width:114px;
} }
.repo-file-list .dirent-update { .repo-file-list .dirent-update {
width:108px; width:133px;
} }
.repo-file-list .dirent-op { .repo-file-list .dirent-op {
width:250px; width:200px;
} }
.repo-file-list .checkbox-label, .repo-file-list .checkbox-label,
.repo-file-list .checkbox { .repo-file-list .checkbox {
@@ -1810,6 +1810,13 @@ textarea:-moz-placeholder {/* for FF */
display:inline; display:inline;
margin-right:8px; margin-right:8px;
} }
.displayed-op .dir-download,
.displayed-op .file-download {
margin-right:5px;
}
.displayed-op .op:hover {
text-decoration:none;
}
.repo-file-list .hidden-op { .repo-file-list .hidden-op {
position:absolute; position:absolute;
background:#fff; background:#fff;

BIN
media/img/download.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

BIN
media/img/share_20.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 B

View File

@@ -21,9 +21,13 @@
<td class="dirent-op"> <td class="dirent-op">
<div class="repo-file-op vh"> <div class="repo-file-op vh">
<div class="displayed-op"> <div class="displayed-op">
<a class="op dir-download" href="{{dirent.dl_link}}">{% trans 'Download' %}</a> <a class="op dir-download" href="{{dirent.dl_link}}" title="{% trans "Download" %}">
<img src="{{MEDIA_URL}}img/download.png" alt="" />
</a>
{% if not repo.encrypted %} {% if not repo.encrypted %}
<a class="op dir-share" href="#" data-link="{{ dirent.sharelink }}" data-token="{{ dirent.sharetoken }}" data-upload-link="{{ dirent.uploadlink }}" data-upload-token="{{ dirent.uploadtoken }}">{% trans "Share" %}</a> <a class="op dir-share" href="#" data-link="{{ dirent.sharelink }}" data-token="{{ dirent.sharetoken }}" data-upload-link="{{ dirent.uploadlink }}" data-upload-token="{{ dirent.uploadtoken }}" title="{% trans "Share" %}">
<img src="{{MEDIA_URL}}img/share_20.png" alt="" />
</a>
{% endif %} {% endif %}
</div> </div>
{% if user_perm == 'rw' %} {% if user_perm == 'rw' %}
@@ -71,19 +75,20 @@
<td class="dirent-op"> <td class="dirent-op">
<div class="repo-file-op vh"> <div class="repo-file-op vh">
<div class="displayed-op"> <div class="displayed-op">
<a class="op file-download" href="{{dirent.dl_link}}" data-fileid="{{ dirent.props.obj_id }}">{% trans "Download"%}</a> <a class="op file-download" href="{{dirent.dl_link}}" data-fileid="{{ dirent.props.obj_id }}" title="{% trans "Download"%}">
{% if user_perm == 'rw' %} <img src="{{MEDIA_URL}}img/download.png" alt="" />
<a class="op file-update" href="#">{% trans "Update"%}</a> </a>
{% endif %}
{% if not repo.encrypted %} {% if not repo.encrypted %}
<a class="op file-share" href="#" data-link="{{ dirent.sharelink }}" data-token="{{ dirent.sharetoken }}">{% trans "Share" %}</a> <a class="op file-share" href="#" data-link="{{ dirent.sharelink }}" data-token="{{ dirent.sharetoken }}" title="{% trans "Share" %}">
<img src="{{MEDIA_URL}}img/share_20.png" alt="" />
</a>
{% endif %} {% endif %}
</div> </div>
{% if user_perm == 'rw' %} {% if user_perm == 'rw' %}
<img src="{{ MEDIA_URL }}img/dropdown-arrow.png" title="{% trans "More Operations"%}" alt="{% trans "More Operations"%}" class="more-op-icon cspt" data="no-popup" /> <img src="{{ MEDIA_URL }}img/dropdown-arrow.png" title="{% trans "More Operations"%}" alt="{% trans "More Operations"%}" class="more-op-icon cspt" data="no-popup" />
<ul class="hidden-op hide"> <ul class="hidden-op hide">
<li><a class="op file-del" href="#">{% trans "Delete"%}</a></li> <li><a class="op file-del" href="#">{% trans "Delete"%}</a></li>
<li><a class="op file-update" href="#">{% trans "Update"%}</a></li>
<li><a class="op file-rename" href="#">{% trans "Rename" %}</a></li> <li><a class="op file-rename" href="#">{% trans "Rename" %}</a></li>
<li><a class="op file-mv" href="#">{% trans "Move" %}</a></li> <li><a class="op file-mv" href="#">{% trans "Move" %}</a></li>
<li><a class="op file-cp" href="#">{% trans "Copy" %}</a></li> <li><a class="op file-cp" href="#">{% trans "Copy" %}</a></li>