diff --git a/contacts/templates/contacts/contact_add.html b/contacts/templates/contacts/contact_add.html index 8c2abef370..f99957b0c6 100644 --- a/contacts/templates/contacts/contact_add.html +++ b/contacts/templates/contacts/contact_add.html @@ -11,18 +11,18 @@ {% block right_panel %}

添加联系人

-
+ {% if error_msg %}

{{ error_msg }}

{% endif %} {{ form.user_email.as_hidden }} - + {{ form.contact_email }}
- + {{ form.contact_name }}
- + {{ form.note }}
- +
{% endblock %} diff --git a/contacts/templates/contacts/contact_edit.html b/contacts/templates/contacts/contact_edit.html index 63dcf879da..55f80cade7 100644 --- a/contacts/templates/contacts/contact_edit.html +++ b/contacts/templates/contacts/contact_edit.html @@ -11,20 +11,20 @@ {% block right_panel %}

编辑联系人

-
+ {% if error_msg %}

{{ error_msg }}

{% endif %} {{ form.user_email.as_hidden }} - + {{ form.contact_email }}
- + {{ form.contact_name }}
- + {{ form.note }}
- +
{% endblock %} diff --git a/contacts/templates/contacts/contact_list.html b/contacts/templates/contacts/contact_list.html index 48c88e1d91..8bc92d5625 100644 --- a/contacts/templates/contacts/contact_list.html +++ b/contacts/templates/contacts/contact_list.html @@ -10,12 +10,12 @@ {% block right_panel %}

联系人列表

- +
- + - + {% for contact in contacts %} @@ -23,7 +23,7 @@ diff --git a/media/css/seahub.css b/media/css/seahub.css index 7d41cfad3d..ef75fd0b04 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -15,6 +15,12 @@ ul > li { list-style:none; } .mgt10 { margin-top:10px; } .center { text-align:center; } .label { color:#333; font-size:12px; font-style:normal; } +.notification { + padding:5px; + width:580px; + background:#FDF; + margin:10px 0; +} a { color:#ee8833; text-decoration:none; font-weight:bold; } a:hover { color: #ff9933; text-decoration: underline; } img { border:none; } @@ -31,7 +37,12 @@ tr.first { background-color: #00FF00; } #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; margin-bottom:12px; } +#header { + font-size: 14px; + font-weight: bold; + border-bottom: 1px solid #ddd; + margin-bottom: 12px; +} #left-panel { float:left; width:120px; } #right-panel { float:right; width:800px; } #footer { color:#999; padding-top:2px; margin:25px auto; border-top:1px solid #DDD; } @@ -42,10 +53,11 @@ tr.first { background-color: #00FF00; } .top-bar a { color:#ddd; font-weight:normal; } .top-bar a:hover { background:#A0A; } /* #header */ +#header .top-info { margin-bottom:8px;} #other-info { color: #ccc; text-align:right; } #other-info .wish { font-style:italic; margin-bottom:10px; } #other-info .version { font-size: 12px; } -#header .nav { border-bottom: 1px solid #ddd; margin-top:8px; } +#header .nav { } #header .nav li { float: left; height: 18px; padding: 0px 25px 4px 0; background: none; } #header .nav a, #header .nav a:visited { color:#8A948F; font-weight:bold; text-decoration:none; } #header .nav a.cur { color: #000; } @@ -124,9 +136,6 @@ label { display: inline-block; margin:2px 0px; } .pwd_change .submit { margin-left:6em; } -/* form */ -/* forms */ - /* popup dialog */ #basic-modal-content {display:none;} #simplemodal-overlay {background-color:#000; cursor:wait;} @@ -136,68 +145,7 @@ label { display: inline-block; margin:2px 0px; } #simplemodal-container a.modalCloseImg {background:url(../img/x.png) no-repeat; width:25px; height:29px; display:inline; z-index:3200; position:absolute; top:-15px; right:-16px; cursor:pointer;} #simplemodal-container h3 {color:#84b8d9;} -/* home */ -#home-snapshot { border:1px solid #000; float:right; margin:0 0 0 20px; } -strong { color:#808; font-weight: normal; } -.home-page h2 { color: #e83; } -#main-show { - margin: 0 0 25px 50px; padding: 10px 10px; - border-radius: 3px; -moz-border-radius: 3px; - box-shadow: rgba(0, 0, 0, 0.0976562) 0px 8px 16px; - -webkit-box-shadow: rgba(0, 0, 0, 0.0976562) 0px 8px 16px; - -moz-box-shadow: rgba(0, 0, 0, 0.0976562) 0px 8px 16px; - width: 800px; - height: 235px; -} -#main-show #feature-list { - margin: 0 0 0 20px; - font-size: 16px; - color: #808; -} -#main-show #feature-list li { - background-position:left 11px; - line-height: 32px; -} -#seafile-show .show-item { - margin: 20px 0 0 0; - width: 420px; height: 140px; float: left; - padding: 10px; - border: 1px solid #f0f0f0; - border-radius: 10px; -moz-border-radius: 10px; -} -#seafile-show .show-item2 { - margin: 20px 0 0 50px; width: 420px; height: 140px; float: left; - padding: 10px; - border: 1px solid #f0f0f0; - border-radius: 10px; -moz-border-radius: 10px; -} -#seafile-show img { float: left; margin: 0 8px 8px 0; } -#seafile-show p { color: #444; font-size: 15px; margin-left: 10px; } -#seafile-what { - margin-top: 20px; - float: left; - width: 440px; -} -#seafile-history { - float: left; - margin: 20px 0 0 70px; - width: 440px; -} -div.home-page h2 { font-style: italic; } -/* help pages */ -.help-page { width: 550px; } -.help-page img { display: block; margin: 20px auto; } - -#id_repo_id { width:300px; } - -span.small-action-link { font-size: 9px; } -input.ccnet_id { width: 400px; } -.notification { - padding:5px; - width:580px; - background:#FDF; - margin:10px 0; -} +/*myhome*/ .repo-list { margin-bottom: 12px; } @@ -254,3 +202,11 @@ input.ccnet_id { width: 400px; } color:#e83; font-weight:normal; } +/*contact*/ +.contact-op-form label { + width:6em; + text-align:right; +} +.contact-op-form .submit { + margin-left:6em; +} diff --git a/templates/base.html b/templates/base.html index 9cdec9fe71..451af3b845 100644 --- a/templates/base.html +++ b/templates/base.html @@ -41,32 +41,7 @@

服务器版本: {{ seafile_version }}

- {% block nav %} - - {% endblock %} + {% block nav %}{% endblock %}
diff --git a/templates/download.html b/templates/download.html deleted file mode 100644 index e1acad02f4..0000000000 --- a/templates/download.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "base.html" %} - -{% block left_panel %} -{% endblock %} - -{% block right_panel %} - -{% endblock %} diff --git a/templates/home.html b/templates/home.html deleted file mode 100644 index dc9c32c35c..0000000000 --- a/templates/home.html +++ /dev/null @@ -1,94 +0,0 @@ -{% extends "base.html" %} - - -{% block main_panel %} -
- -
- - -

- Seafile: 我自己的云存储 -

- -

-

    -
  • 本地完整的版本历史: 查看文件的任一版本
  • -
  • 安全可靠的同步功能: 不会弄丢文件或修改
  • -
  • 安全方便的协同工作: 安全的合并他人修改
  • -
  • 数据安全可随时迁移: 可以搭建个人服务器
  • -
-

- -
-
- -
-
-

P2P 同步

- -

用户可以创建多个文件盒。每个文件盒可以放置任意的文件和目录。每个文件盒可以在任意两台计算机间同步,无需借助服务器。

-
- -
-

多服务器

- -

每台计算机都可以配置成服务器。可为每个文件盒选择不同的服务器。每次同步会做一个新的版本记录,原来的文件状态得到完整的保存,不用担心同步过程丢失文件或丢失对文件的修改。

-
- -
- -
-

版本历史

- -

完整的本地版本历史。不用联网,用户就可以浏览文件的任意一个版本,可以找回任意一个删除的文件。也可以把整个目录恢复到任意一个历史状态。

-
- -
-

安全协作

- -

多人协作,自动进行修改的合并,完整的版本历史保证绝不会丢失自己的修改。

-
- -
-
- -
-

什么是 Ccnet/Seafile

-

- Seafile 是一个文件版本管理和同步共享工具。 Ccnet 则是一个网络连接管理工具, 用于支持 Seafile 的同步共享功能。 -

- -

- Seafile 适合于以下的应用场合: -

    -
  • 对文件资料进行版本管理。
  • -
  • 个人在多台电脑间同步数据。
  • -
  • 一个小组共同维护一个文件仓库, 比如建立一个电子书的仓库。
  • -
-

- -

- Seafile 采用了以用户个人计算机为中心的设计方法。 我们提供了一个本地的文件资料管理工具。 用户可以从任意一个文件夹创建一个 Seafile 文件盒。 文件盒记下了文件夹每一个历史状态, 可以加密、导出历史文件。 这些操作均无需联网。 -

- -

联网后, 用户可以在任意两台计算机之间进行数据同步。 为了支持非同时在线的用户间的数据同步, 用户可以选择一台服务器为文件的中转站(我们也把服务器叫做中继)。 通过中继, 多个用户就可以更加方便的进行文件的同步。 -

-
- -
-

Ccnet/Seafile 历史

- -

Ccnet/Seafile 项目的最初目标是让用户(包括我们自己)能够方便而安全的在多台机器之间同步数据。

- -

设想, 假如你有一台电脑, 我有一台电脑, 我们能够建立网络连接(比如在同一个局域网内), 原理上说, 进行数据同步的基本条件都具备了。 但是为什么我们之间的数据同步就这么难呢?

- -

Ccnet/Seafile 项目就是为了接近这样的一个目标: 只要我们能联网, 不一定要借助于服务器, 我们就能方便的进行信息的传递和数据同步。 Ccnet 解决按照用户所需进行互联的问题, Seafile 解决同步的问题。

- -

从 2009 年开始, 经过三年多的摸索和开发, 我们终于做出了一个可以工作的产品, 并提供给大众使用。

-
- - -
- -{% endblock %} diff --git a/templates/myhome.html b/templates/myhome.html index 6a24d23625..443e8b8f7c 100644 --- a/templates/myhome.html +++ b/templates/myhome.html @@ -1,6 +1,6 @@ {% extends "myhome_base.html" %} -{% block nav_home_class %}class="cur"{% endblock %} +{% block nav_myhome_class %}class="cur"{% endblock %} {% block left_panel %}

已用空间

{{ quota_usage|filesizeformat }} / 2 GB

diff --git a/templates/myhome_base.html b/templates/myhome_base.html index 3f8fc711c4..9dab70e46c 100644 --- a/templates/myhome_base.html +++ b/templates/myhome_base.html @@ -2,7 +2,7 @@ {% block nav %}
邮箱邮箱 名字 备注操作操作
{{ contact.contact_name }} {{ contact.note }} - +
- - - - - - - - {% for user in users %} - - - - - - - - {% endfor %} -
NameIDRolesMy Roles On UserAction
{{ user.props.name }}{{ user.props.id }}{{ user.props.role_list }}{{ user.props.my_role_list }}
- - -

Peers

- - - - - - - - - - {% for peer in peers %} - - - - - - - - {% endfor %} -
NameIDRolesMy Roles On PeerAction
{{ peer.props.name }}{{ peer.props.id }}{{ peer.props.role_list }}{{ peer.props.my_role_list }}
-{% endblock %} diff --git a/urls.py b/urls.py index 1fc55343a7..487432d73a 100644 --- a/urls.py +++ b/urls.py @@ -27,6 +27,7 @@ urlpatterns = patterns('', (r'^accounts/', include('base.registration_urls')), (r'^$', root), + #url(r'^home/$', direct_to_template, { 'template': 'home.html' } ), url(r'^home/my/$', myhome, name='myhome'), url(r'^home/owner/(?P[^/]+)/$', ownerhome, name='ownerhome'), @@ -34,7 +35,6 @@ urlpatterns = patterns('', url(r'^shareadmin/addshare/$', repo_add_share, name='repo_add_share'), (r'^shareadmin/removeshare/$', repo_remove_share), - (r'^download/$', direct_to_template, { 'template': 'download.html' } ), (r'^repo/(?P[^/]+)/$', repo), (r'^repo/history/(?P[^/]+)/$', repo_history), (r'^repo/token/modify/(?P[^/]+)/$', modify_token),