1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 16:36:15 +00:00
Files
seahub/templates/myhome.html

73 lines
2.0 KiB
HTML
Raw Normal View History

{% extends "myhome_base.html" %}
{% load seahub_tags avatar_tags group_avatar_tags %}
{% load url from future %}
2011-05-08 15:19:58 +08:00
{% block nav_myhome_class %}class="cur"{% endblock %}
{% block left_panel %}
2012-05-24 20:19:14 +08:00
<h3>我的基本信息</h3>
<div class="home-profile w100 ovhd">
<a href="{{ SITE_ROOT }}profile/" class="no-deco">{% avatar myname 48 %}</a>
2012-06-21 15:26:03 +08:00
{% if nickname %}
<p class="fleft">{{ nickname }}</p>
{% else %}
<p class="fleft">暂无昵称 <a href="{{ SITE_ROOT }}profile/"><img src="{{ MEDIA_URL }}img/edit_12.png" alt="编辑" title="编辑" /></a></p>
{% endif %}
</div>
{% if notes %}
<h3>提醒...</h3>
<ul>
{% if grpmsg_list %}
<li>
2012-09-24 10:10:01 +08:00
群组
{% for grp in grpmsg_list %}
<a href="{% url 'group_info' grp.id %}" class="no-bold">{{ grp.group_name }}</a>
{% endfor %}
有新留言
</li>
{% endif %}
2012-06-28 19:24:27 +08:00
{% if grpmsg_reply_list %}
2012-09-24 10:10:01 +08:00
<li><a href="{{ SITE_ROOT }}group/reply/new/" class="no-bold">{{ grpmsg_reply_list|length }}条群组留言有新回复</a></li>
2012-06-27 19:56:11 +08:00
{% endif %}
2012-07-27 17:54:07 +08:00
{% if orgmsg_list %}
<li><a href="{% url 'org_msg' %}" class="no-bold">{{ orgmsg_list|length }}条团体消息</a></li>
{% endif %}
2012-07-27 17:54:07 +08:00
{% endif %}
2012-08-01 23:16:53 +08:00
</ul>
2012-06-27 19:56:11 +08:00
<h3>已用空间</h3>
2012-08-01 22:34:35 +08:00
<p>{{ quota_usage|filesizeformat }} {% if cloud_mode %}/ 2 GB {% endif %}</p>
2012-09-24 10:10:01 +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 %}
{% endblock %}
2011-05-08 15:19:58 +08:00
{% block right_panel %}
2012-09-05 11:03:15 +08:00
<!-- 我拥有的同步目录 -->
{% include "snippets/my_owned_repos.html" %}
2011-10-13 00:17:48 +08:00
2012-09-05 11:03:15 +08:00
<!-- 共享给我的同步目录 -->
2012-09-05 10:22:30 +08:00
{% include "snippets/shared_in_repos.html" %}
2012-04-24 14:21:52 +08:00
{% url 'share_repo' as repo_share_url %}
{% with post_url=repo_share_url tips='' %}
{% include "snippets/repo_share_form.html" %}
{% endwith %}
{% include "snippets/repo_create_form.html" %}
{% endblock %}
{% block extra_script %}
<script type="text/javascript">
{% include "snippets/myhome_extra_script.html" %}
{% url 'seahub.views.repo_create' as repo_create_url %}
{% with post_url=repo_create_url %}
{% include "snippets/repo_create_js.html" %}
{% endwith %}
</script>
2011-05-08 15:19:58 +08:00
{% endblock %}