2016-10-18 15:17:36 +08:00
|
|
|
<% if @project.shared_versions.empty? %>
|
2016-12-27 16:18:23 +08:00
|
|
|
<div class="pro_new_prompt ml15 mr15 mb10"><p><%= l(:milestone_no_data) %></p></div>
|
2016-10-18 15:17:36 +08:00
|
|
|
<% end %>
|
|
|
|
<div class=" sy_new_tchbox clear " >
|
2016-11-01 10:11:17 +08:00
|
|
|
<a href="javascript:void(0);" class=" sy_btn_green mb10 fr" onclick="pro_st_show_ban1();">新建里程碑</a>
|
2016-11-01 17:39:43 +08:00
|
|
|
<div class="cl"></div>
|
2016-10-26 18:04:12 +08:00
|
|
|
<%= render :partial => 'projects/settings/new_versions_form', :locals => {:project => @project} %>
|
2016-10-18 15:17:36 +08:00
|
|
|
</div>
|
2015-04-13 21:08:26 +08:00
|
|
|
|
2016-10-18 15:17:36 +08:00
|
|
|
<% if @project.shared_versions.any? %>
|
2016-12-27 16:18:23 +08:00
|
|
|
<div class=" clear ml15 mr15" >
|
|
|
|
<table class="sy_new_table clear mb15" cellpadding="0" cellspacing="0">
|
|
|
|
<thead>
|
2016-10-18 15:17:36 +08:00
|
|
|
<tr>
|
2016-12-27 16:18:23 +08:00
|
|
|
<th class="fl" style="width:156px;">名称</th>
|
|
|
|
<th class="w80 fl">结束日期</th>
|
|
|
|
<th class="w350 fl">描述</th>
|
|
|
|
<th class="w50 fl">状态</th>
|
|
|
|
<th class="w150 fl">操作</th>
|
2016-10-18 15:17:36 +08:00
|
|
|
</tr>
|
2016-12-27 16:18:23 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @project.shared_versions.reverse.each do |version| %>
|
|
|
|
<tr>
|
|
|
|
<th class="fl hidden" style="width:156px;" title="<%= version.name %>" >
|
|
|
|
<%= link_to version.name, version_path(version), :class => "c_blue02" %>
|
|
|
|
</th>
|
|
|
|
<th class="fl w80"><%= format_date(version.effective_date) %></th>
|
|
|
|
<th class="fl w350 hidden"><%=h version.description %></th>
|
|
|
|
<th class="fl w50"><%= l("version_status_#{version.status}") %></th>
|
|
|
|
<th class="fl w150">
|
|
|
|
<% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %>
|
|
|
|
<%= link_to l(:button_edit), edit_version_path(version, :is_setting => true), :class => 'sy_btn_blue mr5', :remote => true %>
|
|
|
|
<%= delete_link_version version_path(version, :is_setting => true), :class=>"sy_btn_grey mr5", :remote => true %>
|
|
|
|
<% end %>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2016-10-18 15:17:36 +08:00
|
|
|
<% end %>
|
2015-04-13 21:08:26 +08:00
|
|
|
|
2016-10-24 16:36:08 +08:00
|
|
|
<script>
|
|
|
|
function pro_st_show_ban1()
|
|
|
|
{
|
|
|
|
$("#pro_st_edit_ban1").toggle();
|
2016-12-27 16:18:23 +08:00
|
|
|
$("#project_setting_create_version_title").val("");
|
2016-10-26 15:18:07 +08:00
|
|
|
$("#setting_version_description").val("");
|
|
|
|
$("#setting_version_effective_date").val("");
|
2016-10-24 16:36:08 +08:00
|
|
|
}
|
|
|
|
</script>
|