diff --git a/profile/templates/profile/profile.html b/profile/templates/profile/profile.html index a0914166ad..365eb2204e 100644 --- a/profile/templates/profile/profile.html +++ b/profile/templates/profile/profile.html @@ -3,35 +3,16 @@ {% block left_panel %} {% endblock %} {% block right_panel %} -

当前头像

-{% load avatar_tags %} -{% avatar user 90 %} - - -

Ccnet 当前设置

+

Ccnet/Seafile 当前设置

Ccnet ID: {{ profile.ccnet_user_id }}

-{% if groups %} -

加入的组

-
- -
-{% endif %} - {% endblock %} diff --git a/profile/templates/profile/set_profile.html b/profile/templates/profile/set_profile.html index 7084ae46db..c342468538 100644 --- a/profile/templates/profile/set_profile.html +++ b/profile/templates/profile/set_profile.html @@ -1,15 +1,16 @@ {% extends "profile/profile_base.html" %} -{% block content %} +{% block right_panel %} +

绑定 Ccnet/Seafile 用户 ID

{% if error_msg %}

{{ error_msg }}

{% endif %} -
+

- +
{% endblock %} diff --git a/profile/views.py b/profile/views.py index 00e3571530..c776fee6f2 100644 --- a/profile/views.py +++ b/profile/views.py @@ -13,15 +13,13 @@ from seaserv import ccnet_rpc @login_required def show_profile(request): - groups = [] try: profile = request.user.get_profile() except UserProfile.DoesNotExist: profile = UserProfile(user=request.user) profile.save() return render_to_response('profile/profile.html', - { 'groups': groups, - 'profile': profile, }, + { 'profile': profile, }, context_instance=RequestContext(request)) diff --git a/templates/base.html b/templates/base.html index 5315c54a2c..a8cd1832b9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -21,8 +21,6 @@
{% if request.user.is_authenticated %} 欢迎, {{ request.user }}. - 我的页面 - 主页 设置 {% if request.user.is_staff %} 管理 diff --git a/templates/help.html b/templates/help.html deleted file mode 100644 index 49e6d87a93..0000000000 --- a/templates/help.html +++ /dev/null @@ -1,66 +0,0 @@ -{% extends "base.html" %} - -{% block left_panel %} -{% include "help_nav.html" %} -{% endblock %} - -{% block right_panel %} -
- -

基本概念

-

-Seafile 是一个文件版本管理和同步共享工具。Ccnet 则是一个网络连接管理工具,用于支持 Seafile 的同步共享功能。首先让我们来了解下 Seafile 的几个基本概念。 -

- - - -

-Seafile 中基本的管理单位是文件盒 (repo)。 一个文件盒存储了它所包含的文件的当前状态以及这些文件的所有历史。 所有的文件盒都保存在本地的存储仓库里, 其中的文件会被分割成小块保存, 相同的小块只会被保存一次。存储仓库的目录名是 seafile-data,可以在第一次运行程序的时候指定这个目录放置的位置。

- -

-每个文件盒有一个工作目录,工作目录显示了文件的当前状态。当你每次做了修改之后,文件的最新状态就会自动被记录到文件盒中,同时会创建一个历史记录。 通过界面, 你可以查看文件盒的任意一个历史状态。 -

- - -

基本流程

- -流程 1, 创建文件盒 -

-创建文件盒 --> 自动上传到服务器 --> 其他人可以通过文件盒 ID 来获取这个文件盒 -

- -流程 2, 获取他人文件盒: -

-通过文件盒 ID 来获取这个文件盒 --> 指定解密密码(可选) --> 导出到一个工作目录 -

- -

-之后你对文件盒的修改/添加/删除操作都会自动同步到服务器上。 -

- -

文件盒创建

-

-启动 Seafile 后通过右键菜单从任意一个目录创建文件盒,这个目录成为这个文件盒的工作目录。 -

- -

-创建的时候可以选择给文件盒加密,加密密码在本地保存,这个密码不会传到服务器上。 -

- -

文件盒获取

-

-通过本地 web 界面首页左侧的“获取文件盒菜单”菜单,按提示操作即可。 -

- -

帐号管理

- - - -Seafile 允许您在任意两台机器间同步数据,因此我们需要每台机器有一个唯一的计算机 ID 和唯一的帐号 ID,当您在一台机器上创建了一个帐号后,您需要导出帐号文件并通过 email 等方式发送到另一台计算机以便使用同一个帐号 ID。 -
-{% endblock %} diff --git a/templates/help_history.html b/templates/help_history.html deleted file mode 100644 index d510d58d07..0000000000 --- a/templates/help_history.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "base.html" %} - -{% block left_panel %} -{% include "help_nav.html" %} -{% endblock %} - -{% block right_panel %} -
- -

历史功能

-Seafile 提供的历史功能包括: - -这些操作均可以通过文件盒页面中的“历史”面板完成。 - -
-{% endblock %} diff --git a/templates/help_manual.html b/templates/help_manual.html deleted file mode 100644 index d30ef05744..0000000000 --- a/templates/help_manual.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "base.html" %} - -{% block left_panel %} -{% include "help_nav.html" %} -{% endblock %} - -{% block right_panel %} -
- -

手工管理文件盒

-文件盒的自动管理包括两部分 - -

这两部分都可以设置成手工模式。

- - - - -
-{% endblock %} diff --git a/templates/help_nav.html b/templates/help_nav.html deleted file mode 100644 index 72010bb54a..0000000000 --- a/templates/help_nav.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/templates/help_sync.html b/templates/help_sync.html deleted file mode 100644 index 5ed925d66a..0000000000 --- a/templates/help_sync.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "base.html" %} - -{% block left_panel %} -{% include "help_nav.html" %} -{% endblock %} - -{% block right_panel %} -
- -

同步原理

-

-下面我们来了解下 Seafile 同步的工作原理。 Seafile 的同步过程包含三个步骤 -

-默认情况下,上述的三个步骤都是自动的。当你对一个文件盒做了一次提交之后,对应的修改就会被传到服务器。当其他人对文件盒做了修改,这些修改会被下载到你的计算机上,并和你的文件的当前状态做一次合并。合并结束后,你的工作目录也会被加以更新。 -

- -
-{% endblock %} diff --git a/templates/myhome_base.html b/templates/myhome_base.html index d8f3021c5b..e9c233fedc 100644 --- a/templates/myhome_base.html +++ b/templates/myhome_base.html @@ -10,7 +10,7 @@ {% endif %}
  • - 使用帮助 + 使用帮助