2012-10-26 19:15:52 +08:00
{% load seahub_tags avatar_tags i18n %}
2012-09-04 12:11:26 +08:00
{% load url from future %}
2012-07-13 17:26:33 +08:00
<!DOCTYPE html>
2011-03-19 13:15:02 +08:00
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
2013-03-28 16:42:16 +08:00
< title > {% block sub_title %}{% endblock %}{{ site_title }}< / title >
2011-03-19 13:15:02 +08:00
< meta http-equiv = "Content-type" content = "text/html; charset=utf-8" / >
2012-10-29 21:43:52 +08:00
< meta name = "keywords" content = "{% trans " File Collaboration Team Organization " % } " / >
2012-03-30 13:49:32 +08:00
< link rel = "stylesheet" type = "text/css" href = "{{ MEDIA_URL }}css/ui-lightness/jquery-ui-1.8.16.custom.css" / >
2013-04-06 17:18:20 +08:00
< link rel = "stylesheet" type = "text/css" href = "{{ MEDIA_URL }}css/font-awesome.css" / >
2013-04-16 13:37:07 +08:00
< 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" / >
2012-11-21 21:24:51 +08:00
<!-- [if IE]>
2013-04-16 13:37:07 +08:00
< link rel = "shortcut icon" href = "{{ MEDIA_URL }}img/favicon.ico?t=1366090560" / >
2012-11-21 21:24:51 +08:00
<![endif]-->
2011-03-19 13:15:02 +08:00
{% block extra_style %}{% endblock %}
2013-04-19 11:50:57 +02:00
{% if branding_css != '' %}< style > { { b r a n d i n g _ c s s } } < / style > {% endif %}
2011-03-19 13:15:02 +08:00
< / head >
2012-05-29 17:26:00 +08:00
< body >
2013-01-04 17:15:37 +08:00
< div id = "wrapper" class = "{{ LANGUAGE_CODE }}" >
2012-12-26 14:59:37 +08:00
{% 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 %}
2012-06-12 10:13:14 +08:00
2012-12-26 14:59:37 +08:00
< 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 >
2011-10-13 00:17:48 +08:00
< / div >
< / div >
2012-05-29 17:26:00 +08:00
2012-12-26 14:59:37 +08:00
< div id = "header" >
< div id = "header-inner" >
2013-03-01 11:27:58 +08:00
{% block notice_panel %}{% endblock %}
2013-04-15 04:01:28 -07:00
< a href = "{{logo_url}}" id = "logo" class = "fleft" >
< img src = "{{ MEDIA_URL }}{{ logo_path }}" title = "Seafile" alt = "Seafile logo" / >
2012-12-26 14:59:37 +08:00
< / a >
{% block nav %}{% endblock %}
2013-03-04 17:25:47 +08:00
2013-03-09 14:15:53 +08:00
{% if enable_file_search and request.user.is_authenticated %}
2013-03-08 16:45:04 +08:00
< 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 }}" / >
2013-04-13 17:30:42 +08:00
< button type = "submit" class = "search-submit" > < span class = "icon-search" > < / span > < / button >
2013-03-04 17:25:47 +08:00
< / form >
{% endif %}
2012-12-26 14:59:37 +08:00
< / div >
2012-11-09 19:16:31 +08:00
< / div >
2012-05-29 17:26:00 +08:00
2012-12-26 14:59:37 +08:00
< div id = "main" >
< div id = "title-panel" class = "w100 ovhd" >
{% block title_panel %}{% endblock %}
2012-07-04 17:06:25 +08:00
< / div >
2012-12-26 14:59:37 +08:00
< div id = "left-panel" >
{% block left_panel %}{% endblock %}
< / div >
< div id = "right-panel" >
{% block right_panel %}{% endblock %}
2012-07-04 17:06:25 +08:00
< / div >
2012-12-26 14:59:37 +08:00
< 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 %}
2012-07-04 17:06:25 +08:00
< / ul >
2012-12-26 14:59:37 +08:00
{% 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 >
2012-07-04 17:06:25 +08:00
< / div >
< / div >
2011-03-19 13:15:02 +08:00
2012-12-26 14:59:37 +08:00
< div id = "footer" class = "ovhd" >
< div class = "items fleft" >
< div class = "item" >
< h4 > Seafile< / h4 >
< ul >
2013-04-09 15:38:49 +02:00
< li > < a href = "http://seafile.com/{% if LANGUAGE_CODE != 'zh-cn' %}en/{% endif %}home/" target = "_blank" > {% trans "Introduction" %}< / a > < / li >
2012-12-26 14:59:37 +08:00
< li > < a href = "https://github.com/haiwen/seafile/wiki{% if LANGUAGE_CODE == 'zh-cn' %}/Seafile-服务器手册中文版{% endif %}" target = "_blank" > Wiki< / a > < / li >
2013-04-02 19:56:44 +08:00
{% 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 >
2012-12-26 14:59:37 +08:00
< / ul >
< / div >
< div class = "item" >
< h4 > {% trans "Client" %}< / h4 >
< ul >
2013-04-09 15:38:49 +02:00
< li > < a href = "http://www.seafile.com/{% if LANGUAGE_CODE != 'zh-cn' %}en/{% endif %}download/" > {% trans "Seafile for Windows, Mac and Linux" %}< / a > < / li >
2012-12-26 14:59:37 +08:00
< / ul >
< / div >
< div class = "item" >
< h4 > {% trans "Documents" %}< / h4 >
< ul >
2013-04-09 15:38:49 +02:00
< li > < a href = "http://www.seafile.com/{% if LANGUAGE_CODE != 'zh-cn' %}en/{% endif %}help/" target = "_blank" > {% trans "Help" %}< / a > < / li >
2012-12-26 14:59:37 +08:00
< / ul >
< / div >
< / div >
< div class = "other-info fright" >
< p > {% trans "Server Version: " %}{{ seafile_version }}< / p >
2013-01-09 11:49:43 +08:00
< p > © 2013 {% trans "Seafile" %}< / p >
2013-04-09 15:38:49 +02:00
< p > < a href = "http://seafile.com/{% if LANGUAGE_CODE != 'zh-cn' %}en/{% endif %}contact/" target = "_blank" > {% trans "Contact Us" %}< / a > < / p >
2012-12-26 14:59:37 +08:00
< / div >
< / div >
2011-03-19 13:15:02 +08:00
< / div > <!-- wrapper -->
2013-04-16 13:37:07 +08:00
< 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 >
2012-07-26 20:57:51 +08:00
< script type = "text/javascript" >
2012-08-18 17:00:44 +08:00
{% if request.user.is_authenticated %}
{% if request.cur_note %}
$('#info-bar .close').click(function() {
$('#info-bar').addClass('hide');
2012-08-18 21:53:32 +08:00
if (navigator.cookieEnabled) {
2012-08-22 16:22:10 +08:00
var date = new Date(),
cookies = document.cookie.split('; '),
2012-10-16 15:05:58 +08:00
info_id_exist = false,
new_info_id = $(this).attr('data') + '_';
2012-08-22 16:22:10 +08:00
date.setTime(date.getTime() + 14*24*60*60*1000);
2013-03-04 17:25:47 +08:00
new_info_id += '; expires=' + date.toGMTString() + '; path=' + '{{ SITE_ROOT }}';
2012-08-18 21:30:13 +08:00
for (var i = 0, len = cookies.length; i < len ; i + + ) {
2012-10-16 15:05:58 +08:00
if (cookies[i].split('=')[0] == 'info_id') {
info_id_exist = true;
2013-03-04 17:25:47 +08:00
document.cookie = 'info_id=' + cookies[i].split('=')[1] + new_info_id;
2012-08-18 21:30:13 +08:00
break;
}
}
2012-10-16 15:05:58 +08:00
if (!info_id_exist) {
2013-03-04 17:25:47 +08:00
document.cookie = 'info_id=' + new_info_id;
2012-08-18 21:30:13 +08:00
}
}
2012-08-18 17:00:44 +08:00
});
{% endif %}
2012-08-01 17:35:33 +08:00
{% endif %}
2012-07-26 20:57:51 +08:00
< / script >
2012-02-21 17:11:58 +08:00
{% block extra_script %}{% endblock %}
2013-04-13 17:30:42 +08:00
< 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 >
2011-03-19 13:15:02 +08:00
< / body >
< / html >