##// END OF EJS Templates
Display shared versions in project settings (#4357)....
Jean-Philippe Lang -
r3019:efeebd427875
parent child
Show More
1 NO CONTENT: new file 100644, binary diff hidden
@@ -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 %>
@@ -125,6 +125,9 tr.message.locked td.subject a { background-image: url(../images/locked.png); }
125 125 tr.message.sticky td.subject a { background-image: url(../images/sticky.png); font-weight: bold; }
126 126
127 127 tr.version.closed, tr.version.closed a { color: #999; }
128 tr.version td.name { padding-left: 20px; }
129 tr.version.shared td.name { background: url(../images/link.png) no-repeat 0% 70%; }
130 tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; }
128 131
129 132 tr.user td { width:13%; }
130 133 tr.user td.email { width:18%; }
General Comments 0
You need to be logged in to leave comments. Login now