mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 08:16:07 +00:00
228 lines
10 KiB
HTML
228 lines
10 KiB
HTML
{% load seahub_tags avatar_tags i18n %}
|
|
{% load url from future %}
|
|
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>{% block sub_title %}{% endblock %}{{ site_title }}</title>
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
|
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
|
|
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/ui-lightness/jquery-ui-1.8.16.custom.css" />
|
|
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/font-awesome.css" />
|
|
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub.css?t=1366090560" />
|
|
<link rel="icon" type="image/x-icon" href="{{ MEDIA_URL }}img/favicon.ico?t=1366090560" />
|
|
<!--[if IE]>
|
|
<link rel="shortcut icon" href="{{ MEDIA_URL }}img/favicon.ico?t=1366090560"/>
|
|
<![endif]-->
|
|
{% block extra_style %}{% endblock %}
|
|
{% if branding_css != '' %}<style>{{branding_css}}</style>{% endif %}
|
|
</head>
|
|
|
|
<body>
|
|
<div id="wrapper" class="{{ LANGUAGE_CODE }}">
|
|
{% block info_bar_message %}
|
|
{% if request.user.is_authenticated and request.cur_note %}
|
|
<div id="info-bar">
|
|
<p id="info-bar-info">{{ request.cur_note.message|urlize|url_target_blank }}</p>
|
|
<img src="{{ MEDIA_URL }}img/close-16.png" class="close" data="{{ request.cur_note.id }}" />
|
|
</div>
|
|
{% endif %}
|
|
{% endblock info_bar_message %}
|
|
|
|
<div id="top-bar">
|
|
<div class="top-bar-inner">
|
|
<div class="top-bar-con">
|
|
<div class="manage fleft">
|
|
{% if request.user.is_staff %}
|
|
<a href="{{ SITE_ROOT }}sys/useradmin/"{% block top_bar_sys_manager_class %}{% endblock %}>{% trans "System Admin" %}</a>
|
|
<a href="{{ SITE_ROOT }}home/my/"{% block top_bar_myaccount_class %}{% endblock %}>{% trans "Workspace" %}</a>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="account fright">
|
|
{% if request.user.is_authenticated %}
|
|
<a href="{% url 'edit_profile' %}" class="avatar-link" title="{% trans 'Profile Setting' %}">{% avatar request.user 16 %}</a> <span>{{ request.user }}</span>
|
|
<a href="{{ SITE_ROOT }}accounts/logout/">{% trans "Log out" %}</a>
|
|
{% else %}
|
|
<a href="{{ SITE_ROOT }}accounts/login/">{% trans "Log In" %}</a>
|
|
{% if cloud_mode or enable_signup %}
|
|
<a href="{{ SITE_ROOT }}accounts/register/">{% trans "Signup" %}</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
<a href="#" id="lang-context" data="no-popup" data-lang="{{ LANGUAGE_CODE }}">{{ LANGUAGE_CODE|language_name_local }} <span class="tri-bg tri-down-bg"></span></a>
|
|
<ul class="hide" id="lang-context-selector">
|
|
{% for LANG in LANGUAGES %}
|
|
<li><a href="{% url 'i18n' %}?lang={{ LANG.0 }}">{{ LANG.1 }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="header">
|
|
<div id="header-inner">
|
|
{% block notice_panel %}{% endblock %}
|
|
<a href="{{logo_url}}" id="logo" class="fleft">
|
|
<img src="{{ MEDIA_URL }}{{ logo_path }}" title="Seafile" alt="Seafile logo" />
|
|
</a>
|
|
{% block nav %}{% endblock %}
|
|
|
|
{% if enable_file_search and request.user.is_authenticated %}
|
|
<form id="top-search-form" method="get" action="{% url 'search' %}" class="search-form fright">
|
|
<input class="search-input" name="q" placeholder="{% trans 'Search Files' %}" value="{{ keyword }}" />
|
|
<button type="submit" class="search-submit"><span class="icon-search"></span></button>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div id="main">
|
|
<div id="title-panel" class="w100 ovhd">
|
|
{% block title_panel %}{% endblock %}
|
|
</div>
|
|
<div id="left-panel">
|
|
{% block left_panel %}{% endblock %}
|
|
</div>
|
|
<div id="right-panel">
|
|
{% block right_panel %}{% endblock %}
|
|
</div>
|
|
<div id="main-panel" class="clear w100 ovhd">
|
|
{% if messages %}
|
|
{% autoescape off %}
|
|
<ul class="messages hide">
|
|
{% for message in messages %}
|
|
<li class="{{ message.tags }}">{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endautoescape %}
|
|
{% endif %}
|
|
|
|
{% block main_panel %} {% endblock %}
|
|
</div>
|
|
<div id="confirm-popup" class="hide">
|
|
<div id="confirm-con"></div>
|
|
<button id="confirm-yes">{% trans "Yes"%}</button>
|
|
<button class="simplemodal-close">{% trans "No"%}</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="footer" class="ovhd">
|
|
<div class="items fleft">
|
|
<div class="item">
|
|
<h4>Seafile</h4>
|
|
<ul>
|
|
<li><a href="http://seafile.com/{% if LANGUAGE_CODE != 'zh-cn' %}en/{% endif %}home/" target="_blank">{% trans "Introduction" %}</a></li>
|
|
<li><a href="https://github.com/haiwen/seafile/wiki{% if LANGUAGE_CODE == 'zh-cn' %}/Seafile-服务器手册中文版{% endif %}" target="_blank">Wiki</a></li>
|
|
{% if LANGUAGE_CODE == 'zh-cn' %}<li><a href="http://bbs.seafile.com/" target="_blank"> {% else %}<li><a href="https://groups.google.com/forum/#!forum/seafile" target="_blank"> {% endif %}{% trans "Forum" %}</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="item">
|
|
<h4>{% trans "Client" %}</h4>
|
|
<ul>
|
|
<li><a href="http://www.seafile.com/{% if LANGUAGE_CODE != 'zh-cn' %}en/{% endif %}download/">{% trans "Seafile for Windows, Mac and Linux" %}</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="item">
|
|
<h4>{% trans "Documents" %}</h4>
|
|
<ul>
|
|
<li><a href="http://www.seafile.com/{% if LANGUAGE_CODE != 'zh-cn' %}en/{% endif %}help/" target="_blank">{% trans "Help" %}</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="other-info fright">
|
|
<p>{% trans "Server Version: " %}{{ seafile_version }}</p>
|
|
<p>© 2013 {% trans "Seafile" %}</p>
|
|
<p><a href="http://seafile.com/{% if LANGUAGE_CODE != 'zh-cn' %}en/{% endif %}contact/" target="_blank">{% trans "Contact Us" %}</a></p>
|
|
</div>
|
|
</div>
|
|
</div><!-- wrapper -->
|
|
<script type="text/javascript" src="{{ MEDIA_URL }}js/jq.min.js?t=1366090560"></script>
|
|
<script type="text/javascript" src="{{ MEDIA_URL }}js/base.js?t=1366090560"></script>
|
|
<script type="text/javascript">
|
|
{% if request.user.is_authenticated %}
|
|
{% if request.cur_note %}
|
|
$('#info-bar .close').click(function() {
|
|
$('#info-bar').addClass('hide');
|
|
if (navigator.cookieEnabled) {
|
|
var date = new Date(),
|
|
cookies = document.cookie.split('; '),
|
|
info_id_exist = false,
|
|
new_info_id = $(this).attr('data') + '_';
|
|
date.setTime(date.getTime() + 14*24*60*60*1000);
|
|
new_info_id += '; expires=' + date.toGMTString() + '; path=' + '{{ SITE_ROOT }}';
|
|
for (var i = 0, len = cookies.length; i < len; i++) {
|
|
if (cookies[i].split('=')[0] == 'info_id') {
|
|
info_id_exist = true;
|
|
document.cookie = 'info_id=' + cookies[i].split('=')[1] + new_info_id;
|
|
break;
|
|
}
|
|
}
|
|
if (!info_id_exist) {
|
|
document.cookie = 'info_id=' + new_info_id;
|
|
}
|
|
}
|
|
});
|
|
{% endif %}
|
|
{% endif %}
|
|
</script>
|
|
{% block extra_script %}{% endblock %}
|
|
<script type="text/javascript">
|
|
//font icons: for browsers that don't support ':before'
|
|
var sf_icons = [{'name':'share', 'con':'e001'}];
|
|
var fa_icons = [
|
|
{'name':'trash', 'con':'f014'},
|
|
{'name':'cog', 'con':'f013'},
|
|
{'name':'cloud-download', 'con':'f0ed'},
|
|
{'name':'search', 'con':'f002'},
|
|
{'name':'minus', 'con':'f068'},
|
|
{'name':'plus', 'con':'f067'},
|
|
{'name':'pencil', 'con':'f040'},
|
|
{'name':'eye-open', 'con':'f06e'},
|
|
{'name':'comment-alt', 'con':'f0e5'},
|
|
{'name':'double-angle-right', 'con':'f101'},
|
|
{'name':'font', 'con':'f031'},
|
|
{'name':'text-height', 'con':'f034'},
|
|
{'name':'tint', 'con':'f043'},
|
|
{'name':'bold', 'con':'f032'},
|
|
{'name':'italic', 'con':'f033'},
|
|
{'name':'strikethrough', 'con':'f0cc'},
|
|
{'name':'underline', 'con':'f0cd'},
|
|
{'name':'list-ul', 'con':'f0ca'},
|
|
{'name':'list-ol', 'con':'f0cb'},
|
|
{'name':'indent-left', 'con':'f03b'},
|
|
{'name':'indent-right', 'con':'f03c'},
|
|
{'name':'align-left', 'con':'f036'},
|
|
{'name':'align-center', 'con':'f037'},
|
|
{'name':'align-right', 'con':'f038'},
|
|
{'name':'align-justify', 'con':'f039'},
|
|
{'name':'link', 'con':'f0c1'},
|
|
{'name':'cut', 'con':'f0c4'},
|
|
{'name':'picture', 'con':'f03e'},
|
|
{'name':'undo', 'con':'f0e2'},
|
|
{'name':'repeat', 'con':'f01e'},
|
|
{'name':'star', 'con':'f005'},
|
|
{'name':'star-empty', 'con':'f006'}
|
|
];
|
|
function setCon(icon, icon_class_prefix, icon_list) {
|
|
for (var i = 0, len = icon_list.length; i < len; i++) {
|
|
if (icon.hasClass(icon_class_prefix + icon_list[i].name)) {
|
|
icon.html('&#x' + icon_list[i].con + ';');
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
var pseudo_test = $('body').append('<span class="sf-icon-share pseudo-test" style="color:#fff;position:fixed;left:0;bottom:0;"></span>').children('.pseudo-test');
|
|
if (pseudo_test.width() == 0) {
|
|
$('[class^="sf-icon-"]').each(function() {
|
|
setCon($(this), 'sf-icon-', sf_icons);
|
|
});
|
|
$('[class^="icon-"], [class$=" icon-"]').each(function() {
|
|
setCon($(this), 'icon-', fa_icons);
|
|
});
|
|
}
|
|
pseudo_test.remove();
|
|
</script>
|
|
</body>
|
|
</html>
|