1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-20 18:32:41 +00:00

Modify repo share.

* Email unregistered user when sharing repo.
* Add email to contacts when share repo/file and add group user.
* Remove org repo share link.
This commit is contained in:
xiez
2012-07-31 14:58:47 +08:00
parent 1779ecfa3d
commit 7a850c7953
15 changed files with 127 additions and 112 deletions

View File

@@ -0,0 +1,11 @@
{% autoescape off %}
亲爱的 {{ to_email }}
{{ user }} 在SeaCloud上共享了一个同步目录给你。注册帐号后请点击以下链接查看
{{ protocol }}://{{ domain }}{% url myhome %}
感谢使用我们的网站!
Seafile团队
{% endautoescape %}

View File

@@ -32,34 +32,6 @@
<p>暂无</p>
{% endif %}
<h3>我管理的共享链接</h3>
{% if out_links %}
<table class="link-list">
<tr>
<th width="25%">目录名</th>
<th width="35%">共享给</th>
<th width="20%">有效期</th>
<th width="20%">操作</th>
</tr>
{% for link in out_links %}
<tr>
<td><a href="{{ SITE_ROOT }}repo/{{ link.repo_id }}/">{{ link.repo_name }}</a></td>
<td>{{ link.anonymous_email }}</td>
{% if link.remain_time %}
<td>{{ link.remain_time|translate_remain_time }}</td>
{% else %}
<td>已过期</td>
{% endif %}
<td><a href="#" class="op view-link" data="{{ link.token }}">查看链接</a>
<a class="op" href="{{ SITE_ROOT }}share/remove/{{ link.token }}/">删除</a></td>
</tr>
{% endfor %}
</table>
{% else %}
<p>暂无</p>
{% endif %}
<h3>我管理的文件外链</h3>
{% if fileshares %}
<table class="sharelink-list">
@@ -84,7 +56,7 @@
<p>暂无</p>
{% endif %}
<div id="view-link" name="view-link" class="hide">
<span class="view-link-alert" style="float:left; margin-left: 120px; "></span>
<span class="view-link-alert" style="float:left; "></span>
</div>
{% endblock %}
@@ -104,15 +76,6 @@ $("table tr:gt(0)").hover(
}
);
$(".view-link").click(function() {
var t = $(this).attr('data');
var l = '{{ protocol }}://' + '{{ domain }}{{ SITE_ROOT }}share/' + t + '/';
$('.view-link-alert').html("共享链接为:<p>" + l + "</p>");
$("#view-link").modal({appendTo: "#main", containerCss:{padding:18}});
return false;
});
$(".view-file-link").click(function() {
var t = $(this).attr('data');