From efeebd427875707b8f625ed091f80a19d94c0db9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 8 Dec 2009 14:19:38 +0000 Subject: Display shared versions in project settings (#4357). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3133 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/settings/_versions.rhtml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'app') diff --git a/app/views/projects/settings/_versions.rhtml b/app/views/projects/settings/_versions.rhtml index 4fb5e9375..2a6acc37c 100644 --- a/app/views/projects/settings/_versions.rhtml +++ b/app/views/projects/settings/_versions.rhtml @@ -1,4 +1,4 @@ -<% if @project.versions.any? %> +<% if @project.shared_versions.any? %> @@ -10,17 +10,19 @@ -<% for version in @project.versions.sort %> - - - - - - +<% for version in @project.shared_versions.sort %> + + + + + + <% end; reset_cycle %> -- cgit v1.2.3
<%= l(:label_version) %>
<%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => version %><%= format_date(version.effective_date) %><%=h version.description %><%= l("version_status_#{version.status}") %><%=h format_version_sharing(version.sharing) %>
<%= link_to_version version %><%= format_date(version.effective_date) %><%=h version.description %><%= l("version_status_#{version.status}") %> <%= link_to(h(version.wiki_page_title), :controller => 'wiki', :page => Wiki.titleize(version.wiki_page_title)) unless version.wiki_page_title.blank? || @project.wiki.nil? %> - <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %> - <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> + <% if version.project == @project %> + <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %> + <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> + <% end %>