From 7ad3c2d578fd92932cbadcd5b94f46365af452c8 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Sat, 11 Apr 2015 16:17:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E9=85=8D?= =?UTF-8?q?=E7=BD=AEjs=20=E5=A2=9E=E5=8A=A0=E9=A1=B9=E7=9B=AE=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=9B=B8=E5=85=B3=E5=AD=90=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/projects/settings.html.erb | 510 ++---------------- .../settings/_new_activities.html.erb | 23 + .../projects/settings/_new_edit.html.erb | 40 ++ .../settings/_new_issue_categories.html.erb | 57 ++ .../projects/settings/_new_members.html.erb | 67 +++ .../projects/settings/_new_modules.html.erb | 19 + .../settings/_new_repositories.html.erb | 69 +++ .../projects/settings/_new_versions.html.erb | 140 +++++ public/javascripts/project.js | 19 +- 9 files changed, 485 insertions(+), 459 deletions(-) create mode 100644 app/views/projects/settings/_new_activities.html.erb create mode 100644 app/views/projects/settings/_new_edit.html.erb create mode 100644 app/views/projects/settings/_new_issue_categories.html.erb create mode 100644 app/views/projects/settings/_new_members.html.erb create mode 100644 app/views/projects/settings/_new_modules.html.erb create mode 100644 app/views/projects/settings/_new_repositories.html.erb create mode 100644 app/views/projects/settings/_new_versions.html.erb diff --git a/app/views/projects/settings.html.erb b/app/views/projects/settings.html.erb index f57b62465..8598422b9 100644 --- a/app/views/projects/settings.html.erb +++ b/app/views/projects/settings.html.erb @@ -5,14 +5,14 @@
@@ -20,471 +20,69 @@
-
    -
    -
  • - 上传图片 - -
    -
  • -
  • - - -
  • -
    - -
  • - - -
    -
  • -
  • - - -
  • -
    -
  • - - -
    -
  • -
  • - - -
    -
  • -
    -
- 保存 -
+ <%= render :partial=>"projects/settings/new_edit" %>
-
-

请选择此项目可以使用的模块:

-
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
-
-

全选   |   清除

-

保存

+ <%= render :partial=>"projects/settings/new_modules" %>
-
- - -
- -
-
-

+申请加入

- -
    -
  • 角色:
  • -
  • -
  • -
  • -
-
- 批准拒绝 - -
-
-
-

添加成员

- -
-
+ <%= render :partial=>"projects/settings/new_members" %>
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
版本 日期描述 状态共享Wiki 页面
- 暑期版(Summer Beta) V0.8 - 2013-08-30打开 - 编辑 - 删除 -
- 正式版(First Release) V1.0 - 2013-11-01正式对外提供服务的版本打开 - 编辑 - 删除 -
- 商业版(Second Release) V2.0 - 2013-08-30增加在线支付、实名认证等功能,界面更加美化,用户交互更加友好!打开 - 编辑 - 删除 -
- JACK SUMMER V0.8 - 2014-08-25试用人员的开发版本打开 - 编辑 - 删除 -
- LongJun Contest - V1.0 - contest网站的开发分支打开 - 编辑 - 删除 -
- SZZH V1.1 (Supported by BJSZZH) - 神舟公司外包开发版本打开 - 编辑 - 删除 -
- 关闭已完成的版本 - - 新建版本 -
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - - -
  • -
    -
  • - - -
  • - 保存 -
- -
+ <%= render :partial=>"projects/settings/new_versions" %>
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
问题类别 指派给
思路 编辑 - 删除
思路suntao 编辑 - 删除
思路gugu 编辑 - 删除
思路 编辑 - 删除
- - 新建问题类别 -
-
-
    -
  • - - -
  • -
    -
  • - - -
  • -
    -
- 保存 -
+ <%= render :partial=>"projects/settings/new_issue_categories" %>
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
标识 主版本库管理系统 库路径
trustie2Githttp://xianbo_trustie2用户列表
microsGithttp://xianbo_trustie2用户列表
socialforgeGithttp://xianbo_trustie2用户列表删除
- - 新建版本库 -
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - - 长度必须在 1 到 254 个字符之间。 仅小写字母(a-z)、数字、破折号(-)和下划线(_)可以使用。 -一旦保存,标识无法修改。 -
  • -
  • - - - 该密码在项目组内可共享 -
  • -
    -
- 保存 - 取消 -
+ <%= render :partial=>"projects/settings/new_repositories" %>
+
- - - - - - - - - - - - - - - - - - - - -
名称 系统活动活动
Design
Development
- 保存 - 重置 + <%= render :partial=>"projects/settings/new_activities" %>
-
-
-
    -
  • -
  • 设置代码评审的默认跟踪标签:
  • -
  • -
  • -
  • - - -
  • -
  • - - - 与之相关的评审问题 - - 与之无关的评审问题 + + + + + + + + + + + + + + + + + + + + + - - 什么也不做 -
  • -
  • - - 激活 -
  • -
- 保存 -
-
+ + + + + + + + + + + + + +
\ No newline at end of file diff --git a/app/views/projects/settings/_new_activities.html.erb b/app/views/projects/settings/_new_activities.html.erb new file mode 100644 index 000000000..8f0cbbf49 --- /dev/null +++ b/app/views/projects/settings/_new_activities.html.erb @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + +
名称 系统活动活动
Design
Development
+保存 +重置 \ No newline at end of file diff --git a/app/views/projects/settings/_new_edit.html.erb b/app/views/projects/settings/_new_edit.html.erb new file mode 100644 index 000000000..92d52e5b6 --- /dev/null +++ b/app/views/projects/settings/_new_edit.html.erb @@ -0,0 +1,40 @@ + +保存 +
\ No newline at end of file diff --git a/app/views/projects/settings/_new_issue_categories.html.erb b/app/views/projects/settings/_new_issue_categories.html.erb new file mode 100644 index 000000000..b690b11ce --- /dev/null +++ b/app/views/projects/settings/_new_issue_categories.html.erb @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
问题类别 指派给
思路 编辑 + 删除
思路suntao 编辑 + 删除
思路gugu 编辑 + 删除
思路 编辑 + 删除
+ +新建问题类别 +
+
+ + 保存 +
\ No newline at end of file diff --git a/app/views/projects/settings/_new_members.html.erb b/app/views/projects/settings/_new_members.html.erb new file mode 100644 index 000000000..a38b462e2 --- /dev/null +++ b/app/views/projects/settings/_new_members.html.erb @@ -0,0 +1,67 @@ +
+ + +
+ +
+
+

+申请加入

+ + +
+ 批准拒绝 + +
+
+
+

添加成员

+ +
+
\ No newline at end of file diff --git a/app/views/projects/settings/_new_modules.html.erb b/app/views/projects/settings/_new_modules.html.erb new file mode 100644 index 000000000..e2696a23e --- /dev/null +++ b/app/views/projects/settings/_new_modules.html.erb @@ -0,0 +1,19 @@ +
+

请选择此项目可以使用的模块:

+ +
+

全选   |   清除

+

保存

\ No newline at end of file diff --git a/app/views/projects/settings/_new_repositories.html.erb b/app/views/projects/settings/_new_repositories.html.erb new file mode 100644 index 000000000..d964c8f22 --- /dev/null +++ b/app/views/projects/settings/_new_repositories.html.erb @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
标识 主版本库管理系统 库路径
trustie2Githttp://xianbo_trustie2用户列表
microsGithttp://xianbo_trustie2用户列表
socialforgeGithttp://xianbo_trustie2用户列表删除
+ +新建版本库 +
+
+ + 保存 + 取消 +
\ No newline at end of file diff --git a/app/views/projects/settings/_new_versions.html.erb b/app/views/projects/settings/_new_versions.html.erb new file mode 100644 index 000000000..28c3c42ef --- /dev/null +++ b/app/views/projects/settings/_new_versions.html.erb @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
版本 日期描述 状态共享Wiki 页面
+ 暑期版(Summer Beta) V0.8 + 2013-08-30打开 + 编辑 + 删除 +
+ 正式版(First Release) V1.0 + 2013-11-01正式对外提供服务的版本打开 + 编辑 + 删除 +
+ 商业版(Second Release) V2.0 + 2013-08-30增加在线支付、实名认证等功能,界面更加美化,用户交互更加友好!打开 + 编辑 + 删除 +
+ JACK SUMMER V0.8 + 2014-08-25试用人员的开发版本打开 + 编辑 + 删除 +
+ LongJun Contest - V1.0 + contest网站的开发分支打开 + 编辑 + 删除 +
+ SZZH V1.1 (Supported by BJSZZH) + 神舟公司外包开发版本打开 + 编辑 + 删除 +
+关闭已完成的版本 + +新建版本 +
+
+ + +
\ No newline at end of file diff --git a/public/javascripts/project.js b/public/javascripts/project.js index 20ef731d7..148fe44cc 100644 --- a/public/javascripts/project.js +++ b/public/javascripts/project.js @@ -162,7 +162,20 @@ function close_window(type){ //弹框l ///////////////////////////////////////////// -function g(o){return document.getElementById(o);} -function HoverLi(n){ - for(var i=1;i<=8;i++){g('pro_st_tb_'+i).className='pro_st_normaltab';g('pro_st_tbc_0'+i).className='pro_st_undis';}g('pro_st_tbc_0'+n).className='pro_st_dis';g('pro_st_tb_'+n).className='pro_st_hovertab'; +//项目配置 +function project_setting(n) +{ + for(var i = 1;i < 9; i++) + { + if(i == n) + { + $("#pro_st_tb_"+i).removeClass().addClass("pro_st_hovertab"); + $("#pro_st_tbc_0"+i).removeClass().addClass("pro_st_dis"); + } + else + { + $("#pro_st_tb_"+i).removeClass().addClass("pro_st_dis"); + $("#pro_st_tbc_0"+i).removeClass().addClass("pro_st_undis"); + } + } } \ No newline at end of file