|
|
|
@ -1,13 +1,13 @@ |
|
|
|
|
<% if @project.shared_versions.any? %> |
|
|
|
|
<table class="list versions"> |
|
|
|
|
<thead><tr> |
|
|
|
|
<th><%= l(:label_version) %></th> |
|
|
|
|
<th><%= l(:field_start_date) %></th> |
|
|
|
|
<th><%= l(:field_effective_date) %></th> |
|
|
|
|
<th><%= l(:field_description) %></th> |
|
|
|
|
<th><%= l(:field_status) %></th> |
|
|
|
|
<th><%= l(:field_sharing) %></th> |
|
|
|
|
<th><%= l(:label_wiki_page) %></th> |
|
|
|
|
<th><%= Version.model_name.human %></th> |
|
|
|
|
<th><%= Version.human_attribute_name(:start_date) %></th> |
|
|
|
|
<th><%= Version.human_attribute_name(:effective_date) %></th> |
|
|
|
|
<th><%= Version.human_attribute_name(:description) %></th> |
|
|
|
|
<th><%= Version.human_attribute_name(:status) %></th> |
|
|
|
|
<th><%= Version.human_attribute_name(:sharing) %></th> |
|
|
|
|
<th><%= WikiPage.model_name.human %></th> |
|
|
|
|
<th style="width:15%"></th> |
|
|
|
|
</tr></thead> |
|
|
|
|
<tbody> |
|
|
|
@ -23,7 +23,6 @@ |
|
|
|
|
<td class="buttons" style="text-align:left"> |
|
|
|
|
<% 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 => :delete, :class => 'icon icon-del' %> |
|
|
|
|
<% elsif @project.enabled_modules.collect(&:name).include?("backlogs") %> |
|
|
|
|
<%= link_to_if_authorized l(:button_edit), {:controller => '/versions', :action => 'edit', :id => version, :project_id => @project.id }, :class => 'icon icon-edit' %> |
|
|
|
|