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:
@@ -1768,13 +1768,13 @@ textarea:-moz-placeholder {/* for FF */
|
||||
width:400px;
|
||||
}
|
||||
.repo-file-list .dirent-size {
|
||||
width:89px;
|
||||
width:114px;
|
||||
}
|
||||
.repo-file-list .dirent-update {
|
||||
width:108px;
|
||||
width:133px;
|
||||
}
|
||||
.repo-file-list .dirent-op {
|
||||
width:250px;
|
||||
width:200px;
|
||||
}
|
||||
.repo-file-list .checkbox-label,
|
||||
.repo-file-list .checkbox {
|
||||
@@ -1810,6 +1810,13 @@ textarea:-moz-placeholder {/* for FF */
|
||||
display:inline;
|
||||
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 {
|
||||
position:absolute;
|
||||
background:#fff;
|
||||
|
BIN
media/img/download.png
Normal file
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
BIN
media/img/share_20.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 462 B |
@@ -21,9 +21,13 @@
|
||||
<td class="dirent-op">
|
||||
<div class="repo-file-op vh">
|
||||
<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 %}
|
||||
<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 %}
|
||||
</div>
|
||||
{% if user_perm == 'rw' %}
|
||||
@@ -71,19 +75,20 @@
|
||||
<td class="dirent-op">
|
||||
<div class="repo-file-op vh">
|
||||
<div class="displayed-op">
|
||||
<a class="op file-download" href="{{dirent.dl_link}}" data-fileid="{{ dirent.props.obj_id }}">{% trans "Download"%}</a>
|
||||
{% if user_perm == 'rw' %}
|
||||
<a class="op file-update" href="#">{% trans "Update"%}</a>
|
||||
{% endif %}
|
||||
|
||||
<a class="op file-download" href="{{dirent.dl_link}}" data-fileid="{{ dirent.props.obj_id }}" title="{% trans "Download"%}">
|
||||
<img src="{{MEDIA_URL}}img/download.png" alt="" />
|
||||
</a>
|
||||
{% 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 %}
|
||||
</div>
|
||||
{% 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" />
|
||||
<ul class="hidden-op hide">
|
||||
<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-mv" href="#">{% trans "Move" %}</a></li>
|
||||
<li><a class="op file-cp" href="#">{% trans "Copy" %}</a></li>
|
||||
|
Reference in New Issue
Block a user