mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 21:30:39 +00:00
Add ownerhome.html to display owner's repos
This commit is contained in:
@@ -15,11 +15,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if not owner %}
|
||||
<h3>我的同步目录</h3>
|
||||
{% else %}
|
||||
<h3>{{ owner }}的同步目录</h3>
|
||||
{% endif %}
|
||||
{% if owned_repos %}
|
||||
<table class="repo-list default">
|
||||
<tr>
|
||||
@@ -42,11 +38,7 @@
|
||||
<p>暂无</p>
|
||||
{% endif %}
|
||||
|
||||
{% if not owner %}
|
||||
<h3>我用过的同步目录</h3>
|
||||
{% else %}
|
||||
<h3>{{ owner }}用过的同步目录</h3>
|
||||
{% endif %}
|
||||
{% if fetched_repos %}
|
||||
<table class="repo-list default">
|
||||
<tr>
|
||||
|
2
views.py
2
views.py
@@ -175,7 +175,7 @@ def ownerhome(request, owner_id):
|
||||
quota_usage = seafserv_threaded_rpc.get_user_quota_usage(owner_id)
|
||||
fetched_repos = seafserv_threaded_rpc.list_fetched_repos(owner_id)
|
||||
|
||||
return render_to_response('myhome.html', {
|
||||
return render_to_response('ownerhome.html', {
|
||||
"owned_repos": owned_repos,
|
||||
"quota_usage": quota_usage,
|
||||
"fetched_repos": fetched_repos,
|
||||
|
Reference in New Issue
Block a user