|
@@
-1,4
+1,4
|
|
1
|
|
<% if @project.versions.any? %>
|
|
|
1
|
<% if @project.shared_versions.any? %>
|
|
2
|
2
|
<table class="list versions">
|
|
3
|
3
|
<thead>
|
|
4
|
4
|
<th><%= l(:label_version) %></th>
|
|
@@
-10,17
+10,19
|
|
10
|
10
|
<th style="width:15%"></th>
|
|
11
|
11
|
</thead>
|
|
12
|
12
|
<tbody>
|
|
13
|
|
<% for version in @project.versions.sort %>
|
|
14
|
|
<tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %>">
|
|
15
|
|
<td><%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => version %></td>
|
|
16
|
|
<td align="center"><%= format_date(version.effective_date) %></td>
|
|
17
|
|
<td><%=h version.description %></td>
|
|
18
|
|
<td><%= l("version_status_#{version.status}") %></td>
|
|
19
|
|
<td><%=h format_version_sharing(version.sharing) %></td>
|
|
|
13
|
<% for version in @project.shared_versions.sort %>
|
|
|
14
|
<tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>">
|
|
|
15
|
<td class="name"><%= link_to_version version %></td>
|
|
|
16
|
<td class="date"><%= format_date(version.effective_date) %></td>
|
|
|
17
|
<td class="description"><%=h version.description %></td>
|
|
|
18
|
<td class="status"><%= l("version_status_#{version.status}") %></td>
|
|
|
19
|
<td class="sharing"><%=h format_version_sharing(version.sharing) %></td>
|
|
20
|
20
|
<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>
|
|
21
|
21
|
<td class="buttons">
|
|
|
22
|
<% if version.project == @project %>
|
|
22
|
23
|
<%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %>
|
|
23
|
24
|
<%= 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' %>
|
|
|
25
|
<% end %>
|
|
24
|
26
|
</td>
|
|
25
|
27
|
</tr>
|
|
26
|
28
|
<% end; reset_cycle %>
|