diff --git a/share/templates/repo/share_admin.html b/share/templates/repo/share_admin.html
index a03fd27693..d6e9110fa6 100644
--- a/share/templates/repo/share_admin.html
+++ b/share/templates/repo/share_admin.html
@@ -50,7 +50,7 @@
{% else %}
-
+
最新修改
+ {% if request.user.is_authenticated %}
+ (更多)
+ {% endif %}
+
{{ latest_commit.props.desc|translate_commit_desc }}
by
diff --git a/views.py b/views.py
index 94e300e57b..f3447a889e 100644
--- a/views.py
+++ b/views.py
@@ -252,10 +252,10 @@ def repo(request, repo_id):
return render_repo(request, repo_id)
+@login_required
def repo_history(request, repo_id):
"""
- If repo is public, anyone can view repo history;
- If repo is not public, only persons who repo is share to can view.
+ View repo history
"""
repo_ap = seafserv_threaded_rpc.repo_query_access_property(repo_id)
if not repo_ap:
@@ -310,6 +310,7 @@ def repo_history(request, repo_id):
'is_owner': is_owner,
}, context_instance=RequestContext(request))
+@login_required
def repo_history_dir(request, repo_id):
# get repo web access property, if no repo access property in db, then
# assume repo ap is 'own'