mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
[font icon] modification
This commit is contained in:
@@ -53,28 +53,6 @@
|
||||
.icon-eye:before { content: "\f06e"; }
|
||||
.icon-eye-slash:before { content: "\f070"; }
|
||||
.icon-plus-square:before { content: "\f0fe"; }
|
||||
|
||||
.icon-font:before { content: "\f031"; }
|
||||
.icon-text-height:before { content: "\f034"; }
|
||||
.icon-tint:before { content: "\f043"; }
|
||||
.icon-bold:before { content: "\f032"; }
|
||||
.icon-italic:before { content: "\f033"; }
|
||||
.icon-strikethrough:before { content: "\f0cc"; }
|
||||
.icon-underline:before { content: "\f0cd"; }
|
||||
.icon-list-ul:before { content: "\f0ca"; }
|
||||
.icon-list-ol:before { content: "\f0cb"; }
|
||||
.icon-indent-left:before { content: "\f03b"; }
|
||||
.icon-indent-right:before { content: "\f03c"; }
|
||||
.icon-align-left:before { content: "\f036"; }
|
||||
.icon-align-center:before { content: "\f037"; }
|
||||
.icon-align-right:before { content: "\f038"; }
|
||||
.icon-align-justify:before { content: "\f039"; }
|
||||
.icon-link:before { content: "\f0c1"; }
|
||||
.icon-cut:before { content: "\f0c4"; }
|
||||
.icon-picture:before { content: "\f03e"; }
|
||||
.icon-undo:before { content: "\f0e2"; }
|
||||
.icon-repeat:before { content: "\f01e"; }
|
||||
.icon-question-sign:before { content: "\f059"; }
|
||||
.fa-1x {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
@@ -98,6 +76,7 @@
|
||||
}
|
||||
.sf-icon-share:before { content:"\e001"; }
|
||||
.sf-icon-removeformat:before { content:"\f1e7"; }
|
||||
|
||||
/****** sf2-icon-xx ********/
|
||||
@font-face {
|
||||
font-family: 'seafile-font2';
|
||||
@@ -108,7 +87,8 @@
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
[class^="sf2-icon-"] {
|
||||
[class^="sf2-icon-"],
|
||||
[class*=" sf2-icon-"] {
|
||||
font-family: 'seafile-font2';
|
||||
speak: none;
|
||||
font-weight: normal;
|
||||
@@ -119,7 +99,7 @@
|
||||
.sf2-icon-histograms:before { content:"\e000"; }
|
||||
.sf2-icon-system:before { content:"\e001"; }
|
||||
.sf2-icon-activities:before { content:"\e002"; }
|
||||
.sf2-icon-bells:before { content:"\e003"; }
|
||||
.sf2-icon-bell:before { content:"\e003"; }
|
||||
.sf2-icon-contacts:before { content:"\e004"; }
|
||||
.sf2-icon-trash:before { content:"\e005"; }
|
||||
.sf2-icon-delete:before { content:"\e006"; }
|
||||
@@ -136,6 +116,7 @@
|
||||
.sf2-icon-share:before { content:"\e011"; }
|
||||
.sf2-icon-starred:before { content:"\e012"; }
|
||||
.sf2-icon-wiki:before { content:"\e013"; }
|
||||
|
||||
/******* tags **********/
|
||||
html { background:#fff; }
|
||||
body,
|
||||
@@ -196,9 +177,6 @@ select {
|
||||
select {
|
||||
outline:none;
|
||||
}
|
||||
button span.icon-plus-square {
|
||||
color:#a3a3a3;
|
||||
}
|
||||
.btn-link {
|
||||
color:#333;
|
||||
line-height:19px;
|
||||
@@ -359,6 +337,10 @@ p { margin:0.5em 0; }
|
||||
margin-right:3px;
|
||||
vertical-align:middle;
|
||||
}
|
||||
.op-icon.sf2-x,
|
||||
.op-icon.sf2-x:hover {
|
||||
color:#f89a68;
|
||||
}
|
||||
.op-icon:hover {/** for <a> **/
|
||||
color:#888;
|
||||
text-decoration:none;
|
||||
@@ -409,7 +391,7 @@ input.btn-disabled:hover {/*for input*/
|
||||
background-position:0 3px;
|
||||
}
|
||||
.add {
|
||||
color:#555;
|
||||
color:#909090;
|
||||
margin-right:3px;
|
||||
}
|
||||
.jstree a {
|
||||
@@ -621,47 +603,37 @@ textarea:-moz-placeholder {/* for FF */
|
||||
border-radius:2px;
|
||||
overflow:hidden;
|
||||
}
|
||||
.side-tabnav-tabs .tab:hover {
|
||||
background-color:#feefb8;
|
||||
}
|
||||
.side-tabnav-tabs .tab a { /* for IE 11: no border-radius here */
|
||||
display:block;
|
||||
font-size:15px;
|
||||
padding:5px 4px 3px 6px;
|
||||
padding:4px 4px 4px 0;
|
||||
color:#333;
|
||||
font-weight:normal;
|
||||
}
|
||||
.side-tabnav-tabs .tab a:hover {
|
||||
background-color:#feefb8;
|
||||
text-decoration:none;
|
||||
}
|
||||
.side-tabnav-tabs .tab [class*="icon-"],
|
||||
.side-tabnav-tabs .tab [class*="sf2-icon-"] {
|
||||
.side-tabnav-tabs .tab [class^="sf2-icon-"] {
|
||||
display:inline-block;
|
||||
width:20px;
|
||||
font-size:16px;
|
||||
color:#999;
|
||||
line-height:24px;
|
||||
text-align:center;
|
||||
width:42px;
|
||||
margin-right:5px;
|
||||
text-align:center;
|
||||
vertical-align:middle;
|
||||
font-size:24px;
|
||||
line-height:1;
|
||||
color:#999;
|
||||
}
|
||||
.side-tabnav-tabs .tab-cur a,
|
||||
.side-tabnav-tabs .tab-cur a:hover {
|
||||
background-color:#feac74;
|
||||
}
|
||||
.side-tabnav-tabs .tab-cur [class*="icon-"],
|
||||
.side-tabnav-tabs .tab-cur [class*="sf2-icon-"],
|
||||
.side-tabnav-tabs .tab-cur [class^="sf2-icon-"],
|
||||
.side-tabnav-tabs .tab-cur a {
|
||||
font-weight:bold;
|
||||
color:#fff;
|
||||
}
|
||||
.side-tabnav-tabs .tab-cur [class*="sf2-icon-"] {
|
||||
font-weight:normal;
|
||||
}
|
||||
.side-tabnav-tabs .tab span {
|
||||
padding:0 13px 0 3px;
|
||||
}
|
||||
.side-tabnav-tabs .tab .sf2-medium {
|
||||
font-size:24px;
|
||||
.side-tabnav-tabs .tab-cur a {
|
||||
font-weight:bold;
|
||||
}
|
||||
.side-textnav .hd {
|
||||
margin:2em 0 .5em;
|
||||
@@ -1248,7 +1220,12 @@ textarea:-moz-placeholder {/* for FF */
|
||||
/* top-bar */
|
||||
#msg-count {
|
||||
position:relative;
|
||||
margin:3px 28px 0 25px;
|
||||
margin:10px 32px 0 25px;
|
||||
}
|
||||
#msg-count .sf2-icon-bell {
|
||||
font-size:24px;
|
||||
line-height:1;
|
||||
color:#999;
|
||||
}
|
||||
#msg-count .num {
|
||||
position:absolute;
|
||||
@@ -1414,10 +1391,6 @@ textarea:-moz-placeholder {/* for FF */
|
||||
color:#333;
|
||||
font-weight:normal;
|
||||
}
|
||||
.top-info-popup .sf2-icon-notifications {
|
||||
float:left;
|
||||
margin-top:-8px;
|
||||
}
|
||||
#top-nav-grp-list .item {
|
||||
padding:5px 10px;
|
||||
border:none;
|
||||
@@ -1428,7 +1401,7 @@ textarea:-moz-placeholder {/* for FF */
|
||||
}
|
||||
#top-nav-grp-list .name {
|
||||
display:inline-block;
|
||||
width:143px;
|
||||
width:142px;
|
||||
}
|
||||
.top-info-popup a.item:hover {
|
||||
background:#fafafa;
|
||||
@@ -1439,8 +1412,10 @@ textarea:-moz-placeholder {/* for FF */
|
||||
margin-right:5px;
|
||||
vertical-align:middle;
|
||||
}
|
||||
#top-nav-grp-info .a {
|
||||
margin-top:7px;
|
||||
#top-nav-grp-info .op-icon {
|
||||
font-size:24px;
|
||||
color:#999;
|
||||
margin:0;
|
||||
}
|
||||
#top-nav-grp-info .all-grp {
|
||||
padding-left:50px;
|
||||
@@ -2251,9 +2226,10 @@ textarea:-moz-placeholder {/* for FF */
|
||||
color:#666;
|
||||
}
|
||||
.group .fast .a {
|
||||
margin:0 8px -5px 0;
|
||||
margin:8px 12px 0 0;
|
||||
display:inline-block;
|
||||
vertical-align:middle;
|
||||
font-size:24px;
|
||||
color:#999;
|
||||
}
|
||||
.group .fast .a:hover {
|
||||
text-decoration:none;
|
||||
@@ -3528,10 +3504,6 @@ textarea:-moz-placeholder {/* for FF */
|
||||
vertical-align: middle;
|
||||
}
|
||||
/* sysadmin */
|
||||
#import-users-btn .icon-upload-alt {
|
||||
color:#a3a3a3;
|
||||
margin-right:3px;
|
||||
}
|
||||
#traffic-month-form {
|
||||
margin-top:10px;
|
||||
}
|
||||
@@ -3633,19 +3605,3 @@ img.thumbnail {
|
||||
max-width: 24px;
|
||||
max-height: 24px;
|
||||
}
|
||||
/****** sf2-icon-details ********/
|
||||
.sf2-orange, .sf2-orange:hover {
|
||||
color:#fd9b69;
|
||||
}
|
||||
.sf2-gray, .sf2-gray:hover {
|
||||
color:#a3a3a3;
|
||||
}
|
||||
.sf2-small {
|
||||
font-size:20px;
|
||||
}
|
||||
.sf2-medium {
|
||||
font-size:24px;
|
||||
}
|
||||
.sf2-huge {
|
||||
font-size:26px;
|
||||
}
|
||||
|
@@ -15,10 +15,10 @@
|
||||
<p><span class="item-name">{% trans "Creator: " %}</span>{{ group.props.creator_name }}</p>
|
||||
<p><span class="item-name">{% trans "Time: "%}</span>{{ group.props.timestamp|tsstr_sec }}</p>
|
||||
<div class="fast vh">
|
||||
<a href="{% url 'view_group' group.props.id %}" title="{% trans "Libraries" %}" class="a"><span class="sf2-icon-libraries sf2-gray sf2-huge"></span></a>
|
||||
<a href="{% url 'group_discuss' group.props.id %}" title="{% trans "Discussion" %}" class="a"><span class="sf2-icon-notifications sf2-gray sf2-huge"></span></a>
|
||||
<a href="{% url 'view_group' group.props.id %}" title="{% trans "Libraries" %}" class="a op-icon sf2-icon-libraries"></a>
|
||||
<a href="{% url 'group_discuss' group.props.id %}" title="{% trans "Discussion" %}" class="a op-icon sf2-icon-notifications"></a>
|
||||
{% if group.wiki_enabled %}
|
||||
<a href="{% url 'group_wiki' group.props.id %}" title="{% trans "Wiki" %}" class="a"><span class="sf2-icon-wiki sf2-gray sf2-huge"></span></a>
|
||||
<a href="{% url 'group_wiki' group.props.id %}" title="{% trans "Wiki" %}" class="a op-icon sf2-icon-wiki"></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -38,16 +38,16 @@
|
||||
</td>
|
||||
<td>
|
||||
{% if repo.props.share_type == 'group' %}
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ repo.props.repo_id }}&from={{ request.user.username|urlencode }}&gid={{ repo.props.group_id }}&permission={{ repo.props.permission }}" class="op-icon vh" title="{% trans "Unshare"%}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a>
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ repo.props.repo_id }}&from={{ request.user.username|urlencode }}&gid={{ repo.props.group_id }}&permission={{ repo.props.permission }}" class="op-icon sf2-icon-delete vh" title="{% trans "Unshare"%}"></a>
|
||||
{% endif %}
|
||||
{% if repo.props.share_type == 'personal' %}
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ repo.props.repo_id }}&from={{ request.user.username|urlencode }}&to={{ repo.props.user|urlencode }}&permission={{ repo.props.permission }}" class="op-icon vh" title="{% trans "Unshare"%}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a>
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ repo.props.repo_id }}&from={{ request.user.username|urlencode }}&to={{ repo.props.user|urlencode }}&permission={{ repo.props.permission }}" class="op-icon sf2-icon-delete vh" title="{% trans "Unshare"%}"></a>
|
||||
{% endif %}
|
||||
{% if repo.props.share_type == 'public' %}
|
||||
{% if not org %}
|
||||
<a href="{% url 'unsetinnerpub' repo.repo_id %}?permission={{ repo.props.permission }}" class="op-icon vh" title="{% trans "Unshare"%}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a>
|
||||
<a href="{% url 'unsetinnerpub' repo.repo_id %}?permission={{ repo.props.permission }}" class="op-icon sf2-icon-delete vh" title="{% trans "Unshare"%}"></a>
|
||||
{% else %}
|
||||
<a href="{{ SITE_ROOT }}organizations/{{ org.url_prefix }}/innerpubrepo/unset/{{ repo.props.repo_id }}" class="op-icon vh" title="{% trans "Unshare" %}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a>
|
||||
<a href="{{ SITE_ROOT }}organizations/{{ org.url_prefix }}/innerpubrepo/unset/{{ repo.props.repo_id }}" class="op-icon sf2-icon-delete vh" title="{% trans "Unshare" %}"></a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</td>
|
||||
|
@@ -42,13 +42,13 @@
|
||||
</td>
|
||||
<td>
|
||||
{% if repo.props.share_type == 'group' %}
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ repo.props.repo_id }}&from={{ request.user.username|urlencode }}&gid={{ repo.props.group_id }}&permission={{ repo.props.permission }}" class="cancel-share op-icon vh" title="{% trans "Unshare"%}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a>
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ repo.props.repo_id }}&from={{ request.user.username|urlencode }}&gid={{ repo.props.group_id }}&permission={{ repo.props.permission }}" class="cancel-share op-icon sf2-icon-delete vh" title="{% trans "Unshare"%}"></a>
|
||||
{% endif %}
|
||||
{% if repo.props.share_type == 'personal' %}
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ repo.props.repo_id }}&from={{ request.user.username|urlencode }}&to={{ repo.props.user|urlencode }}&permission={{ repo.props.permission }}" class="cancel-share op-icon vh" title="{% trans "Unshare"%}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a>
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ repo.props.repo_id }}&from={{ request.user.username|urlencode }}&to={{ repo.props.user|urlencode }}&permission={{ repo.props.permission }}" class="cancel-share op-icon sf2-icon-delete vh" title="{% trans "Unshare"%}"></a>
|
||||
{% endif %}
|
||||
{% if repo.props.share_type == 'public' %}
|
||||
<a href="{% url 'unsetinnerpub' repo.repo_id %}?permission={{ repo.props.permission }}" class="cancel-share op-icon vh" title="{% trans "Unshare"%}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a>
|
||||
<a href="{% url 'unsetinnerpub' repo.repo_id %}?permission={{ repo.props.permission }}" class="cancel-share op-icon sf2-icon-delete vh" title="{% trans "Unshare"%}"></a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
@@ -48,7 +48,7 @@
|
||||
|
||||
<div data-url="{% url 'unseen_notices_count' %}" id="msg-count" class="fleft">
|
||||
<div id="notice-icon" class="cspt" title="{% trans "Notifications" %}">
|
||||
<span class="sf2-icon-bells sf2-gray sf2-medium"></span>
|
||||
<span class="sf2-icon-bell"></span>
|
||||
<span class="num hide">0</span>
|
||||
</div>
|
||||
<div id="notice-popup" class="hide" data-url="{% url 'get_popup_notices' %}">
|
||||
@@ -187,17 +187,17 @@ $(function() {
|
||||
var popup = $('#top-nav-grp-info');
|
||||
var popup_con = '<div class="outer-caret up-outer-caret"><div class="inner-caret"></div></div><ul id="top-nav-grp-list">';
|
||||
{% for grp in grps %}
|
||||
popup_con += '<li class="item" data-url="{{SITE_ROOT}}#group/{{ grp.id }}/" title="{{ grp.group_name }}"> {% grp_avatar grp.id 36 %} <span class="name ellipsis vam">{{ grp.group_name }}</span> <a href="{% url 'group_discuss' grp.id %}" title="{% trans "Discussion" %}" class="a vh fright"><span class="sf2-icon-notifications sf2-gray sf2-huge"></span></a> </li>';
|
||||
popup_con += '<li class="item" data-url="{{SITE_ROOT}}#group/{{ grp.id }}/" title="{{ grp.group_name }}"> {% grp_avatar grp.id 36 %} <span class="name ellipsis vam">{{ grp.group_name }}</span> <a href="{% url 'group_discuss' grp.id %}" title="{% trans "Discussion" %}" class="op-icon sf2-icon-notifications vh"></a></li>';
|
||||
{% endfor %}
|
||||
popup_con += '</ul>';
|
||||
popup_con += '<a href="{% url 'group_list' %}" class="item all-grp">{% trans "All Groups" %}</a>';
|
||||
popup.html(popup_con);
|
||||
$('.item', popup).hover(
|
||||
function() {
|
||||
$(this).addClass('hl').children('.a').removeClass('vh');
|
||||
$(this).addClass('hl').children('a').removeClass('vh');
|
||||
},
|
||||
function() {
|
||||
$(this).removeClass('hl').children('.a').addClass('vh');
|
||||
$(this).removeClass('hl').children('a').addClass('vh');
|
||||
}
|
||||
)
|
||||
.click(function() {
|
||||
@@ -205,7 +205,6 @@ $(function() {
|
||||
});
|
||||
|
||||
popup.css({'right': (grp_nav.outerWidth() - popup.outerWidth())/6 * 5});
|
||||
|
||||
grp_nav.parent('.nav-item').hover(
|
||||
function() {
|
||||
popup.removeClass('hide');
|
||||
|
@@ -84,7 +84,7 @@
|
||||
|
||||
<div id="msg-count" class="fleft">
|
||||
<div id="notice-icon" class="cspt" title="{% trans "Notifications" %}">
|
||||
<span class="sf2-icon-bells sf2-gray sf2-medium"></span>
|
||||
<span class="sf2-icon-bell"></span>
|
||||
<span class="num hide">0</span>
|
||||
</div>
|
||||
<div id="notice-popup" class="hide">
|
||||
|
@@ -35,7 +35,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<a href="#" class="unlink-device op-icon vh" title="{% trans "Unlink" %}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a>
|
||||
<span class="unlink-device op-icon sf2-icon-delete vh" title="{% trans "Unlink" %}"></span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
@@ -36,8 +36,8 @@
|
||||
<td><a href="#my-libs/lib/<%= id %>"><%- name %></a></td>
|
||||
<td>
|
||||
<div class="op-container">
|
||||
<span class="sf2-icon-share sf2-orange sf2-small vam repo-share-btn op-icon vh" title="{% trans "Share" %}"></span>
|
||||
<span class="sf2-icon-delete sf2-orange sf2-small vam repo-delete-btn op-icon vh" title="{% trans "Delete" %}"></span>
|
||||
<span class="sf2-icon-share sf2-x repo-share-btn op-icon vh" title="{% trans "Share" %}"></span>
|
||||
<span class="sf2-icon-delete sf2-x repo-delete-btn op-icon vh" title="{% trans "Delete" %}"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td><%= size_formatted %></td>
|
||||
@@ -58,7 +58,7 @@
|
||||
<td><a href="#group/<%= group_id %>/lib/<%= id %>"><%- name %></a></td>
|
||||
<td class="alc">
|
||||
<% if (is_staff || share_from_me) { %>
|
||||
<span class="sf2-icon-delete sf2-orange sf2-small vam cancel-share op-icon vh" title="{% trans "Unshare" %}"></span>
|
||||
<span class="sf2-icon-delete sf2-x cancel-share op-icon vh" title="{% trans "Unshare" %}"></span>
|
||||
<% } %>
|
||||
</td>
|
||||
<td><%= size_formatted %></td>
|
||||
@@ -80,7 +80,7 @@
|
||||
<td><a href="#org/lib/<%= id %>"><%- name %></a></td>
|
||||
<td class="alc">
|
||||
<% if (app.pageOptions.is_staff || owner == app.pageOptions.username) { %>
|
||||
<span class="sf2-icon-delete sf2-orange sf2-small vam cancel-share op-icon vh" title="{% trans "Unshare" %}"></span>
|
||||
<span class="sf2-icon-delete sf2-x cancel-share op-icon vh" title="{% trans "Unshare" %}"></span>
|
||||
<% } %>
|
||||
</td>
|
||||
<td><%- size_formatted %></td>
|
||||
@@ -97,9 +97,7 @@
|
||||
<li class="item" data-url="#group/<%= groups[i].id %>/" title="<%= groups[i].name %>">
|
||||
<%= groups[i].avatar %>
|
||||
<span class="name ellipsis vam"><%= groups[i].name %></span>
|
||||
<a href="{{SITE_ROOT}}group/<%= groups[i].id %>/discuss/" title="{% trans "Discussion" %}" class="a fright vh">
|
||||
<span class="sf2-icon-notifications sf2-gray sf2-huge"></span>
|
||||
</a>
|
||||
<a href="{{SITE_ROOT}}group/<%= groups[i].id %>/discuss/" title="{% trans "Discussion" %}" class="op-icon sf2-icon-notifications vh"></a>
|
||||
</li>
|
||||
<% } %>
|
||||
</ul>
|
||||
@@ -204,12 +202,12 @@
|
||||
<td class="dirent-op">
|
||||
<div class="repo-file-op vh">
|
||||
<div class="displayed-op">
|
||||
<a class="op download" href="{{ SITE_ROOT }}repo/download_dir/<%= repo_id %>/?p=<% print(encodeURIComponent(dirent_path)); %>" title="{% trans "Download" %}"><span class="sf2-icon-download sf2-orange sf2-small vam"></span></a>
|
||||
<a class="op-icon download sf2-icon-download sf2-x" href="{{ SITE_ROOT }}repo/download_dir/<%= repo_id %>/?p=<% print(encodeURIComponent(dirent_path)); %>" title="{% trans "Download" %}"></a>
|
||||
<% if (!repo_encrypted && can_generate_shared_link) { %>
|
||||
<a class="op share" href="#" title="{% trans "Share" %}"><span class="sf2-icon-share sf2-orange sf2-small vam"></span></a>
|
||||
<span class="op-icon share sf2-icon-share sf2-x" title="{% trans "Share" %}"></span>
|
||||
<% } %>
|
||||
<% if (dirent.perm == 'rw') { %>
|
||||
<a class="op delete" href="#" title="{% trans "Delete" %}"><span class="sf2-icon-delete sf2-orange sf2-small vam"></span></a>
|
||||
<span class="op-icon delete sf2-icon-delete sf2-x" title="{% trans "Delete" %}"></span>
|
||||
<% } %>
|
||||
</div>
|
||||
<% if (dirent.perm == 'rw') { %>
|
||||
@@ -280,12 +278,12 @@
|
||||
<td class="dirent-op">
|
||||
<div class="repo-file-op vh">
|
||||
<div class="displayed-op">
|
||||
<a class="op download" href="{{ SITE_ROOT }}repo/<%= repo_id %>/<%= dirent.obj_id %>/download/?p=<% print(encodeURIComponent(dirent_path)); %>" title="{% trans "Download" %}"><span class="sf2-icon-download sf2-orange sf2-small vam"></span></a>
|
||||
<a class="op-icon download sf2-icon-download sf2-x" href="{{ SITE_ROOT }}repo/<%= repo_id %>/<%= dirent.obj_id %>/download/?p=<% print(encodeURIComponent(dirent_path)); %>" title="{% trans "Download" %}"></a>
|
||||
<% if (!repo_encrypted && can_generate_shared_link) { %>
|
||||
<a class="op share" href="#" title="{% trans "Share" %}"><span class="sf2-icon-share sf2-orange sf2-small vam"></span></a>
|
||||
<span class="op-icon share sf2-icon-share sf2-x" title="{% trans "Share" %}"></span>
|
||||
<% } %>
|
||||
<% if (dirent.perm == 'rw') { %>
|
||||
<a class="op delete" href="#" title="{% trans "Delete" %}"><span class="sf2-icon-delete sf2-orange sf2-small vam"></span></a>
|
||||
<span class="op-icon delete sf2-icon-delete sf2-x" title="{% trans "Delete" %}"></span>
|
||||
<% } %>
|
||||
</div>
|
||||
<% if (dirent.perm == 'rw') { %>
|
||||
@@ -516,7 +514,7 @@
|
||||
</td>
|
||||
<td><a href="#shared-libs/lib/<%= id %>"><%- name %></a></td>
|
||||
<td class="alc">
|
||||
<span class="sf2-icon-delete sf2-orange sf2-small vam unshare-btn op-icon vh" title="{% trans "Leave Share" %}"></span>
|
||||
<span class="sf2-icon-delete sf2-x unshare-btn op-icon vh" title="{% trans "Leave Share" %}"></span>
|
||||
</td>
|
||||
<td><%= size_formatted %></td>
|
||||
<td><%= mtime_relative %></td>
|
||||
@@ -547,28 +545,28 @@
|
||||
<% } %>
|
||||
</div>
|
||||
<ul class="side-tabnav-tabs">
|
||||
<li class="tab<% if (cur_tab == 'libs') { %> tab-cur<% } %>"><a href="{{ SITE_ROOT }}#"><span class="sf2-icon-libraries sf2-medium vam"></span>{% trans "Libraries" %}</a></li>
|
||||
<li class="tab<% if (cur_tab == 'starred') { %> tab-cur<% } %>"><a href="{{ SITE_ROOT }}#starred/"><span class="sf2-icon-starred sf2-medium vam"></span>{% trans "Starred" %}</a></li>
|
||||
<li class="tab<% if (cur_tab == 'libs') { %> tab-cur<% } %>"><a href="{{ SITE_ROOT }}#"><span class="sf2-icon-libraries"></span>{% trans "Libraries" %}</a></li>
|
||||
<li class="tab<% if (cur_tab == 'starred') { %> tab-cur<% } %>"><a href="{{ SITE_ROOT }}#starred/"><span class="sf2-icon-starred"></span>{% trans "Starred" %}</a></li>
|
||||
<% if (events_enabled) { %>
|
||||
<li class="tab<% if (cur_tab == 'activities') { %> tab-cur<% } %>"><a href="{{ SITE_ROOT }}#activities/"><span class="sf2-icon-activities sf2-medium vam"></span>{% trans "Activities" %}</a></li>
|
||||
<li class="tab<% if (cur_tab == 'activities') { %> tab-cur<% } %>"><a href="{{ SITE_ROOT }}#activities/"><span class="sf2-icon-activities"></span>{% trans "Activities" %}</a></li>
|
||||
<% } %>
|
||||
|
||||
<% for (var i = 0, len = mods_enabled.length; i < len; i++) { %>
|
||||
<% if (mods_enabled[i] == 'personal wiki') { %>
|
||||
<li class="tab"><a href="{{ SITE_ROOT }}home/wiki/"><span class="sf2-icon-wiki sf2-medium vam"></span>{% trans "Personal Wiki" %}</a></li>
|
||||
<li class="tab"><a href="{{ SITE_ROOT }}home/wiki/"><span class="sf2-icon-wiki"></span>{% trans "Personal Wiki" %}</a></li>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
<li class="tab"><a href="{{ SITE_ROOT }}devices/"><span class="sf2-icon-devices sf2-medium vam"></span>{% trans "Devices" %}</a></li>
|
||||
<li class="tab"><a href="{{ SITE_ROOT }}devices/"><span class="sf2-icon-devices"></span>{% trans "Devices" %}</a></li>
|
||||
</ul>
|
||||
|
||||
<h3 class="hd">{% trans "Share Admin" %}</h3>
|
||||
<ul class="side-tabnav-tabs">
|
||||
<% if (can_add_repo) { %>
|
||||
<li class="tab"><a href="{{ SITE_ROOT }}share/"><span class="sf2-icon-libraries sf2-medium vam"></span>{% trans "Libraries" %}</a></li>
|
||||
<li class="tab"><a href="{{ SITE_ROOT }}share/folders/"><span class="sf2-icon-folders sf2-medium vam"></span>{% trans "Folders" %}</a></li>
|
||||
<li class="tab"><a href="{{ SITE_ROOT }}share/"><span class="sf2-icon-libraries"></span>{% trans "Libraries" %}</a></li>
|
||||
<li class="tab"><a href="{{ SITE_ROOT }}share/folders/"><span class="sf2-icon-folders"></span>{% trans "Folders" %}</a></li>
|
||||
<% } %>
|
||||
<li class="tab"><a href="{{ SITE_ROOT }}share/links/"><span class="sf2-icon-links sf2-medium vam"></span>{% trans "Links" %}</a></li>
|
||||
<li class="tab"><a href="{{ SITE_ROOT }}share/links/"><span class="sf2-icon-links"></span>{% trans "Links" %}</a></li>
|
||||
</ul>
|
||||
</script>
|
||||
<script type="text/template" id="myhome-mods-enable-form-tmpl">
|
||||
|
@@ -69,7 +69,7 @@
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ share.repo_id }}&from={{ request.user.username|urlencode }}&to={{ share.user|urlencode }}&permission={{ share.permission }}" class="cancel-share op-icon vh" title="{% trans "Unshare"%}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a>
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ share.repo_id }}&from={{ request.user.username|urlencode }}&to={{ share.user|urlencode }}&permission={{ share.permission }}" class="cancel-share op-icon sf2-icon-delete vh" title="{% trans "Unshare"%}"></a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
@@ -102,7 +102,7 @@
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ share.repo_id }}&from={{ request.user.username|urlencode }}&gid={{ share.group_id }}&permission={{ share.permission }}" class="cancel-share op-icon vh" title="{% trans "Unshare"%}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a>
|
||||
<a href="{% url 'repo_remove_share' %}?repo_id={{ share.repo_id }}&from={{ request.user.username|urlencode }}&gid={{ share.group_id }}&permission={{ share.permission }}" class="cancel-share op-icon sf2-icon-delete vh" title="{% trans "Unshare"%}"></a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
@@ -56,7 +56,7 @@
|
||||
<td>{{ repo.size|filesizeformat }}</td>
|
||||
<td><a href="{% url 'user_info' repo.user %}">{{ repo.user }}</a></td>
|
||||
<td data-id="{{ repo.id }}" data-name="{{repo.name}}">
|
||||
<div><a href="#" class="repo-delete-btn op-icon vh" title="{% trans "Delete" %}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a></div>
|
||||
<div><span class="sf2-icon-delete repo-delete-btn op-icon vh" title="{% trans "Delete" %}"></span></div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
@@ -22,9 +22,7 @@
|
||||
<td>{{ publink.ctime|translate_seahub_time }} </td>
|
||||
<td>{{ publink.view_cnt }}</td>
|
||||
<td>
|
||||
<a class="op-icon vh" href="{% url 'remove_shared_link' %}?t={{ publink.token }}" title="{% trans "Remove" %}">
|
||||
<span class="sf2-icon-delete sf2-gray sf2-small vam"></span>
|
||||
</a>
|
||||
<a class="op-icon sf2-icon-delete vh" href="{% url 'remove_shared_link' %}?t={{ publink.token }}" title="{% trans "Remove" %}"></a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
@@ -19,7 +19,7 @@
|
||||
<li class="tabnav-tab"><a href="{% url 'sys_useradmin_admins' %}">{% trans "Admins" %}</a></li>
|
||||
</ul>
|
||||
<div class="fright">
|
||||
<button id="import-users-btn"><span class="icon-upload-alt"></span>{% trans "Import users" %}</button>
|
||||
<button id="import-users-btn"><span class="icon-upload-alt add vam"></span><span class="vam">{% trans "Import users" %}</span></button>
|
||||
<button id="add-user-btn"><span class="icon-plus-square add vam"></span><span class="vam">{% trans "Add user" %}</span></button>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -93,7 +93,7 @@
|
||||
<td>{{ repo.size|filesizeformat }}</td>
|
||||
<td>{{ repo.last_modify|translate_seahub_time }}</td>
|
||||
<td data-id="{{ repo.props.id }}" data-name="{{repo.name}}">
|
||||
<div><a href="#" class="repo-delete-btn op-icon vh" title="{% trans "Delete" %}"><span class="sf2-icon-delete sf2-gray sf2-small vam"></span></a></div>
|
||||
<div><span class="repo-delete-btn op-icon sf2-icon-delete vh" title="{% trans "Delete" %}"></span></div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
@@ -35,11 +35,11 @@ define([
|
||||
},
|
||||
|
||||
highlightGroupItem: function(e) {
|
||||
$(e.currentTarget).addClass('hl').children('.a').removeClass('vh');
|
||||
$(e.currentTarget).addClass('hl').children('a').removeClass('vh');
|
||||
},
|
||||
|
||||
rmHighlightGroupItem: function(e) {
|
||||
$(e.currentTarget).removeClass('hl').children('.a').addClass('vh');
|
||||
$(e.currentTarget).removeClass('hl').children('a').addClass('vh');
|
||||
},
|
||||
|
||||
visitGroup: function(e) {
|
||||
|
Reference in New Issue
Block a user