diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index fc2afe0f7..1d47e8bcc 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -21,7 +21,7 @@ include AvatarHelper module ProjectsHelper def link_to_version(version, options = {}) return '' unless version && version.is_a?(Version) - link_to_if version.visible?, format_version_name(version), { :controller => 'versions', :action => 'show', :id => version }, options + link_to_if version.visible?, format_version_name(version), { :controller => 'versions', :action => 'show', :id => version }, :class => "c_blue02" end def project_settings_tabs diff --git a/app/views/projects/settings/_new_versions.html.erb b/app/views/projects/settings/_new_versions.html.erb index 28c3c42ef..06e704495 100644 --- a/app/views/projects/settings/_new_versions.html.erb +++ b/app/views/projects/settings/_new_versions.html.erb @@ -1,140 +1,59 @@ +<% if @project.shared_versions.any? %>
版本 | -日期 | -描述 | -状态 | -共享 | -Wiki 页面 | +<%= l(:label_version) %> | +<%= l(:field_effective_date) %> | +<%= l(:field_description) %> | +<%= l(:field_status) %> | +<%= l(:field_sharing) %> | +<%= l(:label_wiki_page) %> | |
- 暑期版(Summer Beta) V0.8 + <%= 'shared' if version.project != @project %> <%= link_to_version version %> | -2013-08-30 | -- | 打开 | -不共享 | - -- 编辑 - 删除 - | -|||||||
- 正式版(First Release) V1.0 - | -2013-11-01 | -正式对外提供服务的版本 | -打开 | -不共享 | - -- 编辑 - 删除 - | -|||||||
- 商业版(Second Release) V2.0 - | -2013-08-30 | -增加在线支付、实名认证等功能,界面更加美化,用户交互更加友好! | -打开 | -不共享 | - -- 编辑 - 删除 - | -|||||||
- JACK SUMMER V0.8 - | -2014-08-25 | -试用人员的开发版本 | -打开 | -不共享 | - -- 编辑 - 删除 + | <%= format_date(version.effective_date) %> | +<%=h version.description %> | +<%= l("version_status_#{version.status}") %> | +<%=h format_version_sharing(version.sharing) %> | + -|||
- LongJun Contest - V1.0 - | -- | contest网站的开发分支 | -打开 | -不共享 | - -- 编辑 - 删除 - | -|||||||
- SZZH V1.1 (Supported by BJSZZH) - | -- | 神舟公司外包开发版本 | -打开 | -不共享 | -- 编辑 - 删除 + <% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %> + <%= link_to l(:button_edit), edit_version_path(version), :class => 'c_purple' %> + <%= delete_link version_path(version) %> + <% end %> |