1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00
Files
seahub/templates/base.html

106 lines
3.6 KiB
HTML
Raw Normal View History

2011-03-19 13:15:02 +08:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
2012-01-01 23:45:09 +08:00
<title>SeaHub</title>
2011-03-19 13:15:02 +08:00
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="文件 共享" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub.css" />
<link rel="icon" type="image/png" href="{{ MEDIA_URL }}img/favicon.png" />
2011-10-18 15:41:48 +08: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>
2011-03-19 13:15:02 +08:00
{% block extra_style %}{% endblock %}
{% block extra_script %}{% endblock %}
</head>
<body>
<div id="wrapper">
2011-10-13 00:17:48 +08:00
<div id="top-bar">
<div class="top-bar">
<div class="top-bar-in">
{% if request.user.is_authenticated %}
欢迎, {{ request.user }}.
<a href="{{ SITE_ROOT }}home/my/">我的页面</a>
<a href="{{ SITE_ROOT }}home/">主页</a>
<a href="{{ SITE_ROOT }}profile/">设置</a>
{% if request.user.is_staff %}
<a href="{{ SITE_ROOT }}admin/">管理</a>
{% endif %}
<a href="{{ SITE_ROOT }}accounts/logout/">退出</a>
{% else %}
<a href="{{ SITE_ROOT }}accounts/login/">登录</a>
<a href="{{ SITE_ROOT }}accounts/register/">注册</a>
{% endif %}
</div>
</div>
</div>
2011-03-19 13:15:02 +08:00
<div id="header">
2011-10-13 00:17:48 +08:00
<div class="logo">
2011-12-03 14:43:33 +08:00
<img src="{{ MEDIA_URL }}img/logo.png" id="logo-img" title="Seafile" alt="Seafile logo" />
{% if request.user.is_authenticated %}
<div id="user-info">
<span>用户 ID:</span>{{user.user_id}}
</div>
2011-12-03 14:43:33 +08:00
{% else %}
2012-01-01 23:45:09 +08:00
<div id="logo-info">
Hope our efforts will bring you goodness.
</div>
{% endif %}
</div>
2011-03-19 13:15:02 +08:00
<div class="navs">
{% block nav %}
2011-03-19 13:15:02 +08:00
<ul class="nav">
<li>
2011-10-13 00:17:48 +08:00
<a href="{{ SITE_ROOT }}home/">主页</a>
2011-03-19 13:15:02 +08:00
</li>
2011-10-29 16:42:28 +08:00
<li>
<a href="{{ SITE_ROOT }}help/">使用帮助</a>
</li>
2011-11-25 13:06:01 +08:00
<li>
<a href="{{ SITE_ROOT }}download/">下载</a>
</li>
<li>
<a href="{{ SITE_ROOT }}download/">论坛</a>
</li>
<li>
<a href="{{ SITE_ROOT }}download/">开发</a>
</li>
2011-10-13 00:17:48 +08:00
<!--
2011-03-19 13:15:02 +08:00
<li>
2011-03-19 22:40:55 +08:00
<a href="{{ SITE_ROOT }}peers/">Peers</a>
2011-03-19 13:15:02 +08:00
</li>
2011-10-13 00:17:48 +08:00
-->
<!--
2011-03-19 13:15:02 +08:00
<li>
2011-03-19 22:40:55 +08:00
<a href="{{ SITE_ROOT }}groups/">Groups</a>
2011-03-19 13:15:02 +08:00
</li>
2011-10-13 00:17:48 +08:00
-->
2011-03-19 13:15:02 +08:00
</ul>
{% endblock %}
2011-03-19 13:15:02 +08:00
</div>
<div class="nav-separator"></div>
</div>
<div id="main">
<div id="left-panel">
2011-03-19 22:06:58 +08:00
{% block left_panel %}{% endblock %}
2011-03-19 13:15:02 +08:00
</div>
<div id="right-panel">
2011-03-19 22:06:58 +08:00
{% block right_panel %}{% endblock %}
2011-03-19 13:15:02 +08:00
</div>
<div id="main-panel">
2011-11-25 13:06:01 +08:00
{% block main_panel %}{% endblock %}
2011-03-19 13:15:02 +08:00
</div>
<div class="clear"></div>
</div>
<div id="footer">
2012-01-01 23:45:09 +08:00
<p class="fleft">Copyright © 2012 GongGeng. All rights reserved.</p>
2011-03-19 13:15:02 +08:00
<p class="fright">Contact | About</p>
<div class="clear"></div>
</div>
</div><!-- wrapper -->
</body>
</html>