Commit 194de3cc authored by jplang's avatar jplang
Browse files

Display shared versions in project settings (#4357).

git-svn-id: https://svn.redmine.org/redmine/trunk@3133 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 16076404
<% if @project.versions.any? %> <% if @project.shared_versions.any? %>
<table class="list versions"> <table class="list versions">
<thead> <thead>
<th><%= l(:label_version) %></th> <th><%= l(:label_version) %></th>
...@@ -10,17 +10,19 @@ ...@@ -10,17 +10,19 @@
<th style="width:15%"></th> <th style="width:15%"></th>
</thead> </thead>
<tbody> <tbody>
<% for version in @project.versions.sort %> <% for version in @project.shared_versions.sort %>
<tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %>"> <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>">
<td><%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => version %></td> <td class="name"><%= link_to_version version %></td>
<td align="center"><%= format_date(version.effective_date) %></td> <td class="date"><%= format_date(version.effective_date) %></td>
<td><%=h version.description %></td> <td class="description"><%=h version.description %></td>
<td><%= l("version_status_#{version.status}") %></td> <td class="status"><%= l("version_status_#{version.status}") %></td>
<td><%=h format_version_sharing(version.sharing) %></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><%= 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"> <td class="buttons">
<% 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_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' %> <%= 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> </td>
</tr> </tr>
<% end; reset_cycle %> <% end; reset_cycle %>
......
...@@ -125,6 +125,9 @@ tr.message.locked td.subject a { background-image: url(../images/locked.png); } ...@@ -125,6 +125,9 @@ tr.message.locked td.subject a { background-image: url(../images/locked.png); }
tr.message.sticky td.subject a { background-image: url(../images/sticky.png); font-weight: bold; } tr.message.sticky td.subject a { background-image: url(../images/sticky.png); font-weight: bold; }
tr.version.closed, tr.version.closed a { color: #999; } tr.version.closed, tr.version.closed a { color: #999; }
tr.version td.name { padding-left: 20px; }
tr.version.shared td.name { background: url(../images/link.png) no-repeat 0% 70%; }
tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; }
tr.user td { width:13%; } tr.user td { width:13%; }
tr.user td.email { width:18%; } tr.user td.email { width:18%; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment