2012-07-13 09:26:33 +00:00
|
|
|
<!DOCTYPE html>
|
2011-03-19 05:15:02 +00:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
2012-05-30 14:42:21 +00:00
|
|
|
<title>{{ seahub_title }}</title>
|
2011-03-19 05:15:02 +00:00
|
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
|
|
|
<meta name="keywords" content="文件 共享" />
|
2012-03-30 05:49:32 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/ui-lightness/jquery-ui-1.8.16.custom.css" />
|
2011-03-19 05:15:02 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub.css" />
|
|
|
|
<link rel="icon" type="image/png" href="{{ MEDIA_URL }}img/favicon.png" />
|
|
|
|
{% block extra_style %}{% endblock %}
|
2012-07-03 15:05:35 +00:00
|
|
|
{% load seahub_tags avatar_tags %}
|
2011-03-19 05:15:02 +00:00
|
|
|
</head>
|
|
|
|
|
2012-05-29 09:26:00 +00:00
|
|
|
<body>
|
2011-03-19 05:15:02 +00:00
|
|
|
<div id="wrapper">
|
2012-06-12 02:13:14 +00:00
|
|
|
{% block info_bar_message %}
|
2012-06-04 13:27:32 +00:00
|
|
|
{% if request.user.is_authenticated and request.cur_note %}
|
|
|
|
<div id="info-bar">
|
2012-08-18 09:00:44 +00:00
|
|
|
<p>{{ request.cur_note.message|urlize|url_target_blank }}</p>
|
2012-08-18 13:30:13 +00:00
|
|
|
<img src="{{ MEDIA_URL }}img/close-16.png" class="close" data="{{ request.cur_note.id }}" />
|
2012-06-04 13:27:32 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2012-06-12 02:13:14 +00:00
|
|
|
{% endblock info_bar_message %}
|
|
|
|
|
2011-10-12 16:17:48 +00:00
|
|
|
<div id="top-bar">
|
|
|
|
<div class="top-bar">
|
2012-07-26 12:57:51 +00:00
|
|
|
<div class="top-bar-in">
|
2012-08-02 06:27:09 +00:00
|
|
|
<div class="manage fleft">
|
2012-07-27 06:12:25 +00:00
|
|
|
{% if request.user.is_authenticated %}
|
2012-08-01 14:34:35 +00:00
|
|
|
{% if cloud_mode %}
|
2012-08-01 09:35:33 +00:00
|
|
|
<a href="#" id="team-account" data="no-popup">
|
|
|
|
{% if org %} {{ org.org_name }} {% else %} 个人帐号 {% endif %}
|
2012-07-27 09:54:07 +00:00
|
|
|
<span class="bg"></span></a>
|
2012-07-26 12:57:51 +00:00
|
|
|
<ul class="hide" id="team-list">
|
2012-07-27 06:12:25 +00:00
|
|
|
<li><a href="{% url myhome %}">个人帐号</a></li>
|
|
|
|
{% for org in request.user.orgs %}
|
|
|
|
<li><a href="{% url org_info org.url_prefix %}">{{ org.org_name }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
<li><a href="{% url create_org %}">新建团体</a></li>
|
2012-07-26 12:57:51 +00:00
|
|
|
</ul>
|
2012-08-01 09:35:33 +00:00
|
|
|
{% endif %}
|
2012-07-27 06:12:25 +00:00
|
|
|
{% endif %}
|
2012-08-02 09:50:16 +00:00
|
|
|
|
|
|
|
{% if request.user.is_staff %}
|
|
|
|
<a href="{{ SITE_ROOT }}sys/useradmin/"{% block top_bar_sys_manager_class %}{% endblock %}>系统管理</a>
|
|
|
|
<a href="{{ SITE_ROOT }}home/my/"{% block top_bar_myaccount_class %}{% endblock %}>个人工作台</a>
|
|
|
|
{% endif %}
|
2012-07-27 06:12:25 +00:00
|
|
|
|
2012-08-02 09:50:16 +00:00
|
|
|
{% if request.user.org.is_staff %}
|
|
|
|
<a href="{% url org_useradmin request.user.org.url_prefix %}"{% block top_bar_org_manager_class %}{% endblock %}>管理员工作台</a>
|
|
|
|
<a href="{% url organizations.views.org_info request.user.org.url_prefix %}"{% block top_bar_org_myaccount_class %}{% endblock %}>个人工作台</a>
|
2012-05-17 06:02:47 +00:00
|
|
|
{% endif %}
|
2012-07-27 06:18:47 +00:00
|
|
|
</div>
|
2012-05-25 09:15:15 +00:00
|
|
|
|
2012-08-02 06:27:09 +00:00
|
|
|
<div class="account fright">
|
2011-10-12 16:17:48 +00:00
|
|
|
{% if request.user.is_authenticated %}
|
2012-05-30 05:51:25 +00:00
|
|
|
<span>欢迎,</span> <a href="{% url avatar_add %}" class="avatar-link">{% avatar request.user 16 %}</a> <span>{{ request.user }}</span>
|
2011-10-12 16:17:48 +00:00
|
|
|
<a href="{{ SITE_ROOT }}profile/">设置</a>
|
|
|
|
<a href="{{ SITE_ROOT }}accounts/logout/">退出</a>
|
|
|
|
{% else %}
|
2012-06-20 11:39:21 +00:00
|
|
|
<a href="{{ SITE_ROOT }}accounts/login/">登录</a>
|
|
|
|
{% if account_type == 'business' %}
|
|
|
|
<a href="{{ SITE_ROOT }}accounts/business/register/">注册</a>
|
|
|
|
{% else %}
|
2011-10-12 16:17:48 +00:00
|
|
|
<a href="{{ SITE_ROOT }}accounts/register/">注册</a>
|
|
|
|
{% endif %}
|
2012-06-20 11:39:21 +00:00
|
|
|
{% endif %}
|
2012-05-25 09:15:15 +00:00
|
|
|
</div>
|
2011-10-12 16:17:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-05-29 09:26:00 +00:00
|
|
|
|
2011-03-19 05:15:02 +00:00
|
|
|
<div id="header">
|
2012-07-12 08:05:43 +00:00
|
|
|
<img src="{{ MEDIA_URL }}img/logo.png" title="SeaCloud" alt="SeaCloud logo" id="logo" class="fleft" />
|
|
|
|
{% block nav %}{% endblock %}
|
2011-03-19 05:15:02 +00:00
|
|
|
</div>
|
2012-05-29 09:26:00 +00:00
|
|
|
|
2011-03-19 05:15:02 +00:00
|
|
|
<div id="main">
|
|
|
|
<div id="left-panel">
|
2011-03-19 14:06:58 +00:00
|
|
|
{% block left_panel %}{% endblock %}
|
2011-03-19 05:15:02 +00:00
|
|
|
</div>
|
|
|
|
<div id="right-panel">
|
2011-03-19 14:06:58 +00:00
|
|
|
{% block right_panel %}{% endblock %}
|
2011-03-19 05:15:02 +00:00
|
|
|
</div>
|
2012-07-04 09:06:25 +00:00
|
|
|
<div id="main-panel" class="clear w100 ovhd">
|
2011-11-25 05:06:01 +00:00
|
|
|
{% block main_panel %}{% endblock %}
|
2011-03-19 05:15:02 +00:00
|
|
|
</div>
|
2012-05-18 09:48:20 +00:00
|
|
|
<div id="dialog-confirm" class="hide">
|
2012-05-29 09:26:00 +00:00
|
|
|
<p id="confirm-con">确定要删除?</p>
|
2012-03-27 09:42:08 +00:00
|
|
|
<button id="yes-btn">确定</button>
|
|
|
|
<button class="simplemodal-close">取消</button>
|
|
|
|
</div>
|
2011-03-19 05:15:02 +00:00
|
|
|
</div>
|
2012-05-29 09:26:00 +00:00
|
|
|
|
2012-03-22 12:33:27 +00:00
|
|
|
<div id="footer" class="ovhd">
|
2012-07-04 09:06:25 +00:00
|
|
|
<div class="items fleft">
|
|
|
|
<div class="item">
|
|
|
|
<h4>SeaCloud</h4>
|
|
|
|
<ul>
|
2012-07-04 09:57:16 +00:00
|
|
|
<li><a href="http://seafile.com/" target="_blank">介绍</a></li>
|
2012-07-04 09:06:25 +00:00
|
|
|
<li><a href="http://wiki.seafile.com.cn/" target="_blank">Wiki</a></li>
|
|
|
|
<li><a href="http://gonggeng.org/vanilla/" target="_blank">论坛</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="item">
|
|
|
|
<h4>客户端</h4>
|
|
|
|
<ul>
|
|
|
|
<li><a href="http://www.seafile.com/download/">Seafile for Windows</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="item">
|
|
|
|
<h4>文档</h4>
|
|
|
|
<ul>
|
|
|
|
<li><a href="http://www.seafile.com/help/" target="_blank">使用帮助</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="other-info fright">
|
|
|
|
<p>服务器版本:{{ seafile_version }}</p>
|
2012-07-04 09:57:16 +00:00
|
|
|
<p>© 2012 海文互知</p>
|
|
|
|
<p><a href="http://seafile.com/contact/" target="_blank">联系我们</a>
|
2012-07-04 09:06:25 +00:00
|
|
|
</div>
|
2011-03-19 05:15:02 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div><!-- wrapper -->
|
2012-03-22 12:33:27 +00:00
|
|
|
<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.min.js"></script>
|
|
|
|
<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.simplemodal.1.4.1.min.js"></script>
|
2012-03-30 05:49:32 +00:00
|
|
|
<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-ui-1.8.16.custom.min.js"></script>
|
2012-03-27 09:42:08 +00:00
|
|
|
<script type="text/javascript" src="{{ MEDIA_URL }}js/utils.js"></script>
|
2012-07-26 12:57:51 +00:00
|
|
|
<script type="text/javascript">
|
2012-08-02 06:27:09 +00:00
|
|
|
$('.top-bar-in .manage').css('width', $('.top-bar-in').width() - $('.top-bar-in .account').width() - 30);
|
2012-08-18 09:00:44 +00:00
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
|
|
|
|
{% if request.cur_note %}
|
|
|
|
$('#info-bar .close').click(function() {
|
|
|
|
$('#info-bar').addClass('hide');
|
2012-08-18 13:53:32 +00:00
|
|
|
if (navigator.cookieEnabled) {
|
2012-08-18 13:30:13 +00:00
|
|
|
var cookies = document.cookie.split('; '),
|
2012-08-21 03:27:09 +00:00
|
|
|
note_id_exist = false,
|
|
|
|
new_note_id = $(this).attr('data') + ',' + '; max-age=' + 14*24*60*60 + '; path=' + '{{ SITE_ROOT }}';
|
2012-08-18 13:30:13 +00:00
|
|
|
for (var i = 0, len = cookies.length; i < len; i++) {
|
2012-08-21 03:27:09 +00:00
|
|
|
if (cookies[i].split('=')[0] == 'note_id') {
|
|
|
|
note_id_exist = true;
|
|
|
|
document.cookie = 'note_id=' + cookies[i].split('=')[1] + new_note_id;
|
2012-08-18 13:30:13 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2012-08-21 03:27:09 +00:00
|
|
|
if (!note_id_exist) {
|
|
|
|
document.cookie = 'note_id=' + new_note_id;
|
2012-08-18 13:30:13 +00:00
|
|
|
}
|
|
|
|
}
|
2012-08-18 09:00:44 +00:00
|
|
|
});
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if request.cloud_mode %}
|
2012-07-26 12:57:51 +00:00
|
|
|
$('#team-account').click(function() {
|
|
|
|
if ($(this).attr('data') == 'no-popup') {
|
|
|
|
$(this).parent().css('position', 'relative');
|
|
|
|
$('#team-list').removeClass('hide');
|
|
|
|
$(this).attr('data', 'has-popup');
|
|
|
|
} else {
|
|
|
|
$('#team-list').addClass('hide');
|
|
|
|
$(this).attr('data', 'no-popup');
|
|
|
|
}
|
|
|
|
return false;
|
2012-08-01 05:47:56 +00:00
|
|
|
}).focus(function() { $(this).blur(); });
|
|
|
|
|
|
|
|
$(document).click(function(e) {
|
|
|
|
var element = e.target || e.srcElement;
|
|
|
|
if (element.id != 'team-list' && element.attrid != 'team-account') {
|
|
|
|
$('#team-list').addClass('hide');
|
|
|
|
$('#team-account').attr('data', 'no-popup');
|
|
|
|
}
|
|
|
|
});
|
2012-08-18 09:00:44 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2012-08-01 09:35:33 +00:00
|
|
|
{% endif %}
|
2012-07-26 12:57:51 +00:00
|
|
|
</script>
|
2012-02-21 09:11:58 +00:00
|
|
|
{% block extra_script %}{% endblock %}
|
2011-03-19 05:15:02 +00:00
|
|
|
</body>
|
|
|
|
</html>
|