2011-04-30 13:18:32 +08:00
|
|
|
{% extends "myhome_base.html" %}
|
2012-10-26 19:15:52 +08:00
|
|
|
{% load seahub_tags avatar_tags group_avatar_tags i18n %}
|
2012-08-30 20:15:17 +08:00
|
|
|
{% load url from future %}
|
2011-05-08 15:19:58 +08:00
|
|
|
|
2012-05-12 15:52:07 +08:00
|
|
|
{% block nav_myhome_class %}class="cur"{% endblock %}
|
2012-05-24 20:19:14 +08:00
|
|
|
|
2012-09-28 21:51:04 +08:00
|
|
|
{% block left_panel %}
|
2012-10-09 14:59:42 +08:00
|
|
|
<div class="info-item">
|
2012-11-02 19:45:51 +08:00
|
|
|
<h3 class="info-item-top">{% trans "Account" %}</h3>
|
2012-10-29 21:43:52 +08:00
|
|
|
<div class="info-item-bottom home-profile ovhd">
|
2012-12-26 14:59:37 +08:00
|
|
|
<a href="{{ SITE_ROOT }}profile/" class="pic no-deco fleft" title="{% trans "Edit" %}">{% avatar request.user 48 %}</a>
|
|
|
|
<div class="txt fright">
|
|
|
|
<p>{% if nickname %}{{ nickname }}{% else %}{% trans "No Nickname" %}{% endif %}</p>
|
|
|
|
<a href="{{ SITE_ROOT }}profile/" class="edit">{% trans "Edit" %}</a>
|
|
|
|
</div>
|
2012-10-29 21:43:52 +08:00
|
|
|
</div>
|
2012-10-09 14:59:42 +08:00
|
|
|
</div>
|
2012-06-20 14:18:23 +08:00
|
|
|
|
2012-09-27 16:05:07 +08:00
|
|
|
{% if grpmsg_list or grpmsg_reply_list or orgmsg_list %}
|
2012-10-09 14:59:42 +08:00
|
|
|
<div class="info-item">
|
2012-10-26 20:23:21 +08:00
|
|
|
<h3 class="info-item-top">{% trans "Reminding..." %}</h3>
|
2012-10-26 19:50:36 +08:00
|
|
|
<ul class="info-item-bottom">
|
|
|
|
{% if grpmsg_list %}
|
|
|
|
<li>
|
2012-10-31 10:02:00 +08:00
|
|
|
{% for grp in grpmsg_list %}<a href="{% url 'group_info' grp.id %}" class="no-bold">{{ grp.group_name }} </a>{% endfor %}
|
|
|
|
{% blocktrans count counter=grpmsg_list|length %}
|
|
|
|
has new message
|
|
|
|
{% plural %}
|
2012-10-31 11:36:49 +08:00
|
|
|
have new messages
|
2012-10-31 10:02:00 +08:00
|
|
|
{% endblocktrans %}
|
2012-10-26 19:50:36 +08:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
2012-10-31 10:02:00 +08:00
|
|
|
|
2012-10-26 19:50:36 +08:00
|
|
|
{% if grpmsg_reply_list %}
|
2012-10-31 10:02:00 +08:00
|
|
|
<li><a href="{{ SITE_ROOT }}group/reply/new/" class="no-bold">{% blocktrans count counter=grpmsg_reply_list|length %}
|
|
|
|
one group message has new reply
|
|
|
|
{% plural %}
|
2012-10-31 11:36:49 +08:00
|
|
|
{{ counter }} group messages have new replies
|
2012-10-31 10:02:00 +08:00
|
|
|
{% endblocktrans %}</a></li>
|
2012-10-26 19:50:36 +08:00
|
|
|
{% endif %}
|
2012-10-31 10:02:00 +08:00
|
|
|
|
2012-10-26 19:50:36 +08:00
|
|
|
{% if orgmsg_list %}
|
2012-10-31 10:02:00 +08:00
|
|
|
<li><a href="{% url 'org_msg' %}" class="no-bold">
|
|
|
|
{% blocktrans count counter=orgmsg_list|length %}
|
|
|
|
one org message
|
|
|
|
{% plural %}
|
|
|
|
{{ counter }} org messages
|
|
|
|
{% endblocktrans %}</a></li>
|
2012-10-26 19:50:36 +08:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2012-10-09 14:59:42 +08:00
|
|
|
</div>
|
2012-09-27 16:05:07 +08:00
|
|
|
{% endif %}
|
2012-06-27 19:56:11 +08:00
|
|
|
|
2012-10-09 14:59:42 +08:00
|
|
|
<div class="info-item">
|
2012-10-27 11:42:13 +08:00
|
|
|
<h3 class="info-item-top">{% trans "Space used" %}</h3>
|
2012-10-26 20:23:21 +08:00
|
|
|
<p class="info-item-bottom">{{ quota_usage|filesizeformat }} {% if quota > 0 %}/ {{ quota|filesizeformat }} {% endif %}</p>
|
2012-10-09 14:59:42 +08:00
|
|
|
</div>
|
2012-06-20 14:18:23 +08:00
|
|
|
|
2012-09-22 19:17:22 +08:00
|
|
|
{% with groups=joined_groups %}
|
2012-09-05 11:03:15 +08:00
|
|
|
{% include "snippets/my_groups.html" %}
|
2012-09-22 19:17:22 +08:00
|
|
|
{% endwith %}
|
2011-11-01 22:21:01 +08:00
|
|
|
{% endblock %}
|
|
|
|
|
2011-05-08 15:19:58 +08:00
|
|
|
{% block right_panel %}
|
2013-01-12 17:44:08 +08:00
|
|
|
<!--mine shared stared -->
|
2012-09-05 11:03:15 +08:00
|
|
|
{% include "snippets/my_owned_repos.html" %}
|
2011-10-13 00:17:48 +08:00
|
|
|
|
2012-09-28 21:51:04 +08:00
|
|
|
{% if events %}
|
2012-10-15 21:03:42 +08:00
|
|
|
{% include "snippets/events.html" %}
|
2012-09-28 21:51:04 +08:00
|
|
|
{% endif %}
|
|
|
|
|
2012-09-01 17:46:46 +08:00
|
|
|
{% url 'share_repo' as repo_share_url %}
|
2012-10-23 17:46:15 +08:00
|
|
|
{% with post_url=repo_share_url %}
|
2012-07-28 16:41:24 +08:00
|
|
|
{% include "snippets/repo_share_form.html" %}
|
2012-09-01 17:46:46 +08:00
|
|
|
{% endwith %}
|
|
|
|
|
2012-07-28 16:41:24 +08:00
|
|
|
{% include "snippets/repo_create_form.html" %}
|
2012-03-26 16:52:10 +08:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extra_script %}
|
|
|
|
<script type="text/javascript">
|
2012-10-10 19:20:10 +08:00
|
|
|
{% with groups=autocomp_groups %}
|
2012-07-28 16:41:24 +08:00
|
|
|
{% include "snippets/myhome_extra_script.html" %}
|
2012-10-10 19:20:10 +08:00
|
|
|
{% endwith %}
|
2012-10-15 21:03:42 +08:00
|
|
|
|
2012-09-01 17:46:46 +08:00
|
|
|
{% url 'seahub.views.repo_create' as repo_create_url %}
|
|
|
|
{% with post_url=repo_create_url %}
|
2012-08-18 18:00:21 +08:00
|
|
|
{% include "snippets/repo_create_js.html" %}
|
2012-09-01 17:46:46 +08:00
|
|
|
{% endwith %}
|
2012-09-28 21:51:04 +08:00
|
|
|
|
|
|
|
{% if events %}
|
2012-10-15 21:03:42 +08:00
|
|
|
{% include "snippets/events_js.html" %}
|
2012-09-28 21:51:04 +08:00
|
|
|
{% endif %}
|
2012-03-26 16:52:10 +08:00
|
|
|
</script>
|
2011-05-08 15:19:58 +08:00
|
|
|
{% endblock %}
|