1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-28 11:41:18 +00:00
seahub/templates/base.html

85 lines
2.9 KiB
HTML
Raw Normal View History

2011-03-19 05:15:02 +00: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>
<title>{% block title %}{% endblock %} - SeaHub</title>
<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 07:41:48 +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>
2011-03-19 05:15:02 +00:00
{% block extra_style %}{% endblock %}
{% block extra_script %}{% endblock %}
</head>
<body>
<div id="wrapper">
2011-10-12 16:17:48 +00: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 05:15:02 +00:00
<div id="header">
2011-10-12 16:17:48 +00:00
<div class="logo">
<a href="/home/" id="logo"><img src="{{ MEDIA_URL }}img/logo.png" title="Seafile" alt="Seafile logo" /></a>
</div>
2011-03-19 05:15:02 +00:00
<div class="navs">
{% block nav %}
2011-03-19 05:15:02 +00:00
<ul class="nav">
<li>
2011-10-12 16:17:48 +00:00
<a href="{{ SITE_ROOT }}home/">主页</a>
2011-03-19 05:15:02 +00:00
</li>
2011-10-12 16:17:48 +00:00
<!--
2011-03-19 05:15:02 +00:00
<li>
2011-03-19 14:40:55 +00:00
<a href="{{ SITE_ROOT }}peers/">Peers</a>
2011-03-19 05:15:02 +00:00
</li>
2011-10-12 16:17:48 +00:00
-->
<!--
2011-03-19 05:15:02 +00:00
<li>
2011-03-19 14:40:55 +00:00
<a href="{{ SITE_ROOT }}groups/">Groups</a>
2011-03-19 05:15:02 +00:00
</li>
2011-10-12 16:17:48 +00:00
-->
2011-03-19 05:15:02 +00:00
</ul>
{% endblock %}
2011-03-19 05:15:02 +00:00
</div>
<div class="nav-separator"></div>
</div>
<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>
<div id="main-panel">
{% block content %}{% endblock %}
2011-03-19 05:15:02 +00:00
</div>
<div class="clear"></div>
</div>
<div id="footer">
<p class="fleft">Copyright © 2011 GongGeng. All rights reserved.</p>
<p class="fright">Contact | About</p>
<div class="clear"></div>
</div>
</div><!-- wrapper -->
</body>
</html>