mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 00:00:00 +00:00
83 lines
2.2 KiB
HTML
83 lines
2.2 KiB
HTML
{% extends "myhome_base.html" %}
|
|
{% load seahub_tags avatar_tags group_avatar_tags %}
|
|
{% load url from future %}
|
|
|
|
{% block nav_myhome_class %}class="cur"{% endblock %}
|
|
{% block left_panel %}
|
|
|
|
<h3>我的基本信息</h3>
|
|
<div class="home-profile w100 ovhd">
|
|
<a href="{{ SITE_ROOT }}profile/" class="no-deco">{% avatar myname 48 %}</a>
|
|
{% 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>
|
|
小组
|
|
{% for grp in grpmsg_list %}
|
|
<a href="{% url 'group_info' grp.id %}" class="no-bold">{{ grp.group_name }}</a>
|
|
{% endfor %}
|
|
有新留言
|
|
</li>
|
|
{% endif %}
|
|
{% if grpmsg_reply_list %}
|
|
<li><a href="{{ SITE_ROOT }}group/reply/new/" class="no-bold">{{ grpmsg_reply_list|length }}条留言有新回复</a></li>
|
|
{% endif %}
|
|
{% if orgmsg_list %}
|
|
<li><a href="{% url 'org_msg' %}" class="no-bold">{{ orgmsg_list|length }}条团体消息</a></li>
|
|
{% endif %}
|
|
{% endif %}
|
|
</ul>
|
|
|
|
<h3>已用空间</h3>
|
|
<p>{{ quota_usage|filesizeformat }} {% if cloud_mode %}/ 2 GB {% endif %}</p>
|
|
|
|
<!-- 我的小组 -->
|
|
{% include "snippets/my_groups.html" %}
|
|
{% endblock %}
|
|
|
|
{% block right_panel %}
|
|
{% if messages %}
|
|
{% autoescape off %}
|
|
<ul class="messages hide">
|
|
{% for message in messages %}
|
|
<li class="info">{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endautoescape %}
|
|
{% endif %}
|
|
|
|
<!-- 我拥有的同步目录 -->
|
|
{% include "snippets/my_owned_repos.html" %}
|
|
|
|
<!-- 共享给我的同步目录 -->
|
|
{% include "snippets/shared_in_repos.html" %}
|
|
|
|
{% 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>
|
|
{% endblock %}
|