annotate app/views/projects/settings/.svn/text-base/_versions.rhtml.svn-base @ 117:af80e5618e9b redmine-1.1

* Update to Redmine 1.1-stable branch (Redmine SVN rev 4707)
author Chris Cannam
date Thu, 13 Jan 2011 12:53:21 +0000
parents 94944d00e43c
children
rev   line source
Chris@0 1 <% if @project.shared_versions.any? %>
Chris@0 2 <table class="list versions">
Chris@0 3 <thead><tr>
Chris@0 4 <th><%= l(:label_version) %></th>
Chris@0 5 <th><%= l(:field_effective_date) %></th>
Chris@0 6 <th><%= l(:field_description) %></th>
Chris@0 7 <th><%= l(:field_status) %></th>
Chris@0 8 <th><%= l(:field_sharing) %></th>
chris@37 9 <th><%= l(:label_wiki_page) %></th>
Chris@0 10 <th style="width:15%"></th>
Chris@0 11 </tr></thead>
Chris@0 12 <tbody>
Chris@0 13 <% for version in @project.shared_versions.sort %>
Chris@0 14 <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>">
Chris@0 15 <td class="name"><%= link_to_version version %></td>
Chris@0 16 <td class="date"><%= format_date(version.effective_date) %></td>
Chris@0 17 <td class="description"><%=h version.description %></td>
Chris@0 18 <td class="status"><%= l("version_status_#{version.status}") %></td>
Chris@0 19 <td class="sharing"><%=h format_version_sharing(version.sharing) %></td>
chris@37 20 <td><%= link_to_if_authorized(h(version.wiki_page_title), {:controller => 'wiki', :action => 'show', :project_id => version.project, :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %></td>
Chris@0 21 <td class="buttons">
Chris@0 22 <% if version.project == @project %>
Chris@0 23 <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %>
chris@22 24 <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
Chris@0 25 <% end %>
Chris@0 26 </td>
Chris@0 27 </tr>
Chris@0 28 <% end; reset_cycle %>
Chris@0 29 </tbody>
Chris@0 30 </table>
Chris@0 31 <% else %>
Chris@0 32 <p class="nodata"><%= l(:label_no_data) %></p>
Chris@0 33 <% end %>
Chris@0 34
Chris@0 35 <div class="contextual">
Chris@0 36 <% if @project.versions.any? %>
chris@22 37 <%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %>
Chris@0 38 <% end %>
Chris@0 39 </div>
Chris@0 40
Chris@0 41 <p><%= link_to_if_authorized l(:label_version_new), :controller => 'versions', :action => 'new', :project_id => @project %></p>