diff --git a/base/templatetags/__init__.py b/base/templatetags/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/base/templatetags/seahub_tags.py b/base/templatetags/seahub_tags.py new file mode 100644 index 0000000000..420a6892d5 --- /dev/null +++ b/base/templatetags/seahub_tags.py @@ -0,0 +1,9 @@ +from datetime import datetime +from django import template + +register = template.Library() + +@register.filter(name='tsstr_sec') +def tsstr_sec(value): + """Turn a timestamp to string""" + return datetime.utcfromtimestamp(value).strftime("%Y-%m-%d %H:%M:%S") diff --git a/media/css/seahub.css b/media/css/seahub.css index a4647b446d..d6e4245e37 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -21,13 +21,19 @@ table.default tr.even { background-color: #FAFAFA; } table.default tr.odd { background-color: #E0E0E0; } table.default tr.first { background-color: #00FF00; } /* container */ -#wrapper { margin:0 auto; width:950px; - font-family: 宋体, Arial, Helvetica, sans-serif; font-size:13px; } -#header { font-size: 14px;font-weight: bold;min-height: 60px;} -#main { padding-top:10px; } +#wrapper { font: 13px/1.5 宋体, Arial, Helvetica, sans-serif; } +#header, #main, #footer { width:950px; } +#header, #main { margin:0 auto; } +#header { font-size: 14px; font-weight: bold; } #left-panel { float:left; width:120px; } #right-panel { float:right; width:800px; } -#footer { color:#999; padding-top:2px; margin:25px 0; border-top:1px solid #DDD; } +#footer { color:#999; padding-top:2px; margin:25px auto; border-top:1px solid #DDD; } +/* top-bar */ +#top-bar { height:20px; padding-bottom:21px; background:#fff url('../img/dropshadow.png') repeat-x center bottom; } +.top-bar { height:20px; color:#fff; text-align:right; font-weight:bold; background:#606; } +.top-bar-in { width:950px; margin:0 auto; } +.top-bar a { color:#ddd; font-weight:normal; } +.top-bar a:hover { background:#A0A; } /* #header */ #header .top_operation { float:right; margin:2px 10px 0 0; color:#ddd; font-size:13px; } #header .top_operation a { font-weight:normal; font-size:13px; margin-left:2px; text-decoration: none; } @@ -45,8 +51,8 @@ div.nav-separator { clear: both; border-top: #FF8C00 1px solid; border-bottom: n /* footer */ #footer a { color:#333; text-decoration:none; } /* main */ -h2 { font-size:16px; color:#292; padding:4px 0 2px 0px; margin:10px 0; } -h3 { font-size: 14px; color: #808; margin: 10px 0px 4px 0; } +h2 { font-size:18px; color:#808; padding:4px 0 2px 0px; margin: 0; } +h3 { font-size:14px; color:#808; margin-top:10px; font-weight:normal; } p { line-height: 22px; } ol { margin:0; padding:0px 0 0 2em; list-style-position:inside; } ul { padding:4px 0 0 0; } diff --git a/media/img/dropshadow.png b/media/img/dropshadow.png new file mode 100644 index 0000000000..108a743600 Binary files /dev/null and b/media/img/dropshadow.png differ diff --git a/templates/base.html b/templates/base.html index 4343f103f3..eb60ef522f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -14,35 +14,45 @@
Ccnet is a group oriented communication and file sharing tool.
++Seafile 是一个海量文件同步和共享软件。 它非常适合于一个小组来同步和共享大量的文件,比如建立一个电子书的仓库。 它也适合于个人在多台电脑间同步数据。 +
-It provide two basic functions:
-
+使用上, seafile 允许用户创建多个文件盒, 每个文件盒可以单独的设置权限、加密、共享和同步。 +
+ ++与其他的文件同步软件不同, seafile 强调用户对自身数据的控制。 用户的数据和数据的操作历史完整的保存在用户的电脑上, 服务器只是作为数据的中转站。 如果用户选择对数据加密, 加密的过程完全在用户的电脑上进行, 服务器上不知道文件是否加密。 +
-Features:
-Seafile ID | +{{ ccnet_user_id }} | +
名字 | +ID | +描述 | +
---|---|---|
{{ repo.props.name }} | +{{ repo.props.id }} | +{{ repo.props.desc }} | +
Name: {{repo.props.name}}
-ID: {{repo.props.id}}
-Description: {{repo.props.desc}}
+ID | +{{repo.props.id}} | +
描述 | +{{repo.props.desc}} | +
Name | +分支名 | Head Commit | |
---|---|---|---|
{{ commit.props.id }} | -{{ commit.props.ctime }} | +{{ commit.props.ctime|tsstr_sec }} | {{ commit.props.desc }} |