summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-08 14:19:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-08 14:19:38 +0000
commitefeebd427875707b8f625ed091f80a19d94c0db9 (patch)
tree8aa05e0538f0deb0c3968abb833d19eedd5d42d3 /app
parente823efc41fdc0c9a5c41e6a6646ef71c8efaa0f5 (diff)
downloadredmine-efeebd427875707b8f625ed091f80a19d94c0db9.tar.gz
redmine-efeebd427875707b8f625ed091f80a19d94c0db9.zip
Display shared versions in project settings (#4357).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3133 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/settings/_versions.rhtml22
1 files changed, 12 insertions, 10 deletions
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? %>
<table class="list versions">
<thead>
<th><%= l(:label_version) %></th>
@@ -10,17 +10,19 @@
<th style="width:15%"></th>
</thead>
<tbody>
-<% for version in @project.versions.sort %>
- <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %>">
- <td><%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => version %></td>
- <td align="center"><%= format_date(version.effective_date) %></td>
- <td><%=h version.description %></td>
- <td><%= l("version_status_#{version.status}") %></td>
- <td><%=h format_version_sharing(version.sharing) %></td>
+<% for version in @project.shared_versions.sort %>
+ <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>">
+ <td class="name"><%= link_to_version version %></td>
+ <td class="date"><%= format_date(version.effective_date) %></td>
+ <td class="description"><%=h version.description %></td>
+ <td class="status"><%= l("version_status_#{version.status}") %></td>
+ <td class="sharing"><%=h format_version_sharing(version.sharing) %></td>
<td><%= 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? %></td>
<td class="buttons">
- <%= 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 %>
</td>
</tr>
<% end; reset_cycle %>