1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

Modify url

This commit is contained in:
xiez
2012-04-25 13:21:40 +08:00
parent 74d5325fe4
commit 83e50e29bc
2 changed files with 3 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
<td>{{ repo.props.shared_email }}</td>
<td>{{ repo.props.desc }}</td>
<td>
<a href="{{ SITE_ROOT }}shareadmin/remove/{{ repo.props.id }}/{{ repo.props.shared_email }}/">取消共享</a>
<a href="{{ SITE_ROOT }}shareadmin/removeshare/{{ repo.props.id }}/{{ repo.props.shared_email }}/">取消共享</a>
</td>
</tr>
{% endfor %}

View File

@@ -31,7 +31,8 @@ urlpatterns = patterns('',
url(r'^home/owner/(?P<owner_name>[^/]+)/$', ownerhome, name='ownerhome'),
url(r'^shareadmin/$', repo_list_share, name='repo_list_share'),
url(r'^shareadmin/addshare/$', repo_add_share, name='repo_add_share'), (r'^shareadmin/remove/(?P<repo_id>[^/]+)/(?P<to_email>[^/]+)/$', repo_remove_share),
url(r'^shareadmin/addshare/$', repo_add_share, name='repo_add_share'),
(r'^shareadmin/removeshare/(?P<repo_id>[^/]+)/(?P<to_email>[^/]+)/$', repo_remove_share),
(r'^download/$', direct_to_template, { 'template': 'download.html' } ),
(r'^repo/(?P<repo_id>[^/]+)/$', repo),