mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 15:19:06 +00:00
Modified unshare
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
{% if repo.user_perm == 'rw' %}
|
||||
<img src="{{ MEDIA_URL }}img/download-20.png" data="{{ repo.props.repo_id }}" class="download-btn op-icon vh" title="{% trans "Download" %}" alt="{% trans "Download" %}" />
|
||||
{% endif %}
|
||||
<img src="{{ MEDIA_URL }}img/delete-20.png" data="{{ SITE_ROOT }}shareadmin/removeshare/?repo_id={{ repo.props.repo_id }}&from={{ repo.props.user }}&to={{ request.user }}" class="unshare-btn op-icon vh" title="{% trans "Remove Share" %}" alt="{% trans "Remove Share" %}" />
|
||||
<img src="{{ MEDIA_URL }}img/delete-20.png" data="{{ SITE_ROOT }}shareadmin/removeshare/?repo_id={{ repo.props.repo_id }}&from={{ repo.props.user }}&to={{ request.user }}" class="unshare-btn op-icon vh" title="{% trans "Leave Share" %}" alt="{% trans "Leave Share" %}" />
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
@@ -28,9 +28,9 @@ $(function() {
|
||||
}
|
||||
});
|
||||
|
||||
addConfirmTo($('.repo-delete-btn'));
|
||||
addConfirmTo($('.repo-delete-btn'), '{% trans "Really want to delete?" %}');
|
||||
|
||||
addConfirmTo($('.unshare-btn'), '{% trans "Really remove this shared library?" %}');
|
||||
addConfirmTo($('.unshare-btn'), '{% trans "Really want to leave share?" %}');
|
||||
|
||||
$(".download-btn").click(function() {
|
||||
window.open('{{ SITE_ROOT }}seafile_access_check/?repo_id=' + $(this).attr('data'));
|
||||
|
@@ -4,9 +4,6 @@
|
||||
{#if !$T.err_msg}
|
||||
<div class="pic fleft">
|
||||
<img class="avatar" width="80" height="80" alt="{$T.email}" />
|
||||
{#if $T.new_user}
|
||||
<button id="add-as-contact">{% trans "Add as contact" %}</button>
|
||||
{#/if}
|
||||
</div>
|
||||
|
||||
<div class="txt fright">
|
||||
@@ -19,6 +16,10 @@
|
||||
{#if $T.user_intro}
|
||||
<p class="intro">{$T.user_intro}</p>
|
||||
{#/if}
|
||||
|
||||
{#if $T.new_user}
|
||||
<button id="add-as-contact">{% trans "Add to contacts" %}</button>
|
||||
{#/if}
|
||||
</div>
|
||||
|
||||
{#if $T.new_user}
|
||||
|
Reference in New Issue
Block a user