60 lines
2.5 KiB
Plaintext
60 lines
2.5 KiB
Plaintext
<% if @project.shared_versions.any? %>
|
|
<table class="pro_table">
|
|
<tbody>
|
|
<tr class="pro_table_tit">
|
|
<td class="w150"><%= l(:label_version) %></td>
|
|
<td class="w1150"> <%= l(:field_effective_date) %></td>
|
|
<td class="w210"><%= l(:field_description) %> </td>
|
|
<td class="w1150"><%= l(:field_status) %></td>
|
|
<td class="w190"><%= l(:field_sharing) %></td>
|
|
<td class="w190"><%= l(:label_wiki_page) %></td>
|
|
<td class="w1150"></td>
|
|
</tr>
|
|
<% for version in @project.shared_versions.sort %>
|
|
<tr class="pro_table_on">
|
|
<td >
|
|
<a class="c_blue02"><%= 'shared' if version.project != @project %> <%= link_to_version version %></a>
|
|
</td>
|
|
<td class="c_grey"><%= format_date(version.effective_date) %></td>
|
|
<td class="description" style="word-break:break-all"><%=h version.description %></td>
|
|
<td class="status"><%= l("version_status_#{version.status}") %></td>
|
|
<td class="sharing"><%=h format_version_sharing(version.sharing) %></td>
|
|
<td style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" title="">
|
|
<%= 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>
|
|
<td >
|
|
<% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %>
|
|
<%= link_to l(:button_edit), edit_version_path(version), :class => 'c_purple' %></a>
|
|
<a href="/versions/1" class=" c_purple" data-confirm="您确定要删除吗?" ><%= delete_link version_path(version) %></a>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end; reset_cycle %>
|
|
</tbody>
|
|
<% else %>
|
|
<p class="nodata">
|
|
<%= l(:label_no_data) %>
|
|
</p>
|
|
<% end %>
|
|
</table>
|
|
<% if @project.versions.any? %>
|
|
<%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put, :class =>"c_orange fr" %>
|
|
<% end %>
|
|
<a href="javascript:viod(0)" class="pic_add fl mr5" onclick="pro_st_show_ban();"></a>
|
|
<%= link_to l(:label_version_new), new_project_version_path(@project, :back_url => ''), :class => 'c_blue fl' if User.current.allowed_to?(:manage_versions, @project) %>
|
|
<div class="cl"></div>
|
|
<div id="pro_st_edit_ban" class="pro_st_edit_ban">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|