1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

Modified unshare

This commit is contained in:
zhengxie
2012-11-05 11:55:02 +08:00
parent 4fddb196c1
commit 893f2fffcf
11 changed files with 92 additions and 49 deletions

View File

@@ -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 %}

View File

@@ -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'));

View File

@@ -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}