1
0
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:
xiez
2012-03-23 11:25:13 +08:00
parent d98794b55c
commit f15fbfdf17
2 changed files with 1 additions and 9 deletions

View File

@@ -15,11 +15,7 @@
</div> </div>
{% endif %} {% endif %}
{% if not owner %}
<h3>我的同步目录</h3> <h3>我的同步目录</h3>
{% else %}
<h3>{{ owner }}的同步目录</h3>
{% endif %}
{% if owned_repos %} {% if owned_repos %}
<table class="repo-list default"> <table class="repo-list default">
<tr> <tr>
@@ -42,11 +38,7 @@
<p>暂无</p> <p>暂无</p>
{% endif %} {% endif %}
{% if not owner %}
<h3>我用过的同步目录</h3> <h3>我用过的同步目录</h3>
{% else %}
<h3>{{ owner }}用过的同步目录</h3>
{% endif %}
{% if fetched_repos %} {% if fetched_repos %}
<table class="repo-list default"> <table class="repo-list default">
<tr> <tr>

View File

@@ -175,7 +175,7 @@ def ownerhome(request, owner_id):
quota_usage = seafserv_threaded_rpc.get_user_quota_usage(owner_id) quota_usage = seafserv_threaded_rpc.get_user_quota_usage(owner_id)
fetched_repos = seafserv_threaded_rpc.list_fetched_repos(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, "owned_repos": owned_repos,
"quota_usage": quota_usage, "quota_usage": quota_usage,
"fetched_repos": fetched_repos, "fetched_repos": fetched_repos,