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