socialforge/app/views/issues/show.html.erb

89 lines
3.9 KiB
Plaintext

<%= content_for(:header_tags) do %>
<%= import_ke(enable_at: true) %>
<%= javascript_include_tag 'create_kindeditor'%>
<% end %>
<script>
sd_create_editor_from_data(<%= @issue.id%>, null, "100%", "<%= @issue.class.name %>");
</script>
<div class="mt10 mb10" id =issue_show_total"">
<div class="banner-big f16 fontGrey3">
问题跟踪
<a href="<%= new_project_issue_path(@project)%>" class="sy_btn_green fr" >新建</a>
</div>
<div class="resources mt10" style="float:left;">
<div class="pro_page_box">
<div class="problem_main borderBottomNone">
<div id="issue_detail_show">
<%= render :partial => 'issues/detail'%>
</div>
</div>
<!--problem_main end-->
<div style="clear: both;"></div>
<div class="homepagePostReply">
<div class="topBorder" style="display: <%= @issue.journals.count>0 ? 'none': '' %>"></div>
<div class="homepagePostReplyBanner" >
<div class="homepagePostReplyBannerCount">
<%=render :partial => 'issue_reply_banner' %>
</div>
<div class="homepagePostReplyBannerTime"></div>
</div>
<div class="" id="reply_div_<%= @issue.id %>" >
<%= render :partial => 'issue_replies',:locals => {:issue => @issue, :replies_all_i => 0} %>
</div>
</div>
</div>
</div>
<ul class="fr pro_new_conbox_right mt10" id="project_issue_info_show">
<li class="clear">
<span class="pro_new_conbox_leftspan fl">当前状态</span>
<span class="pro_new_conbox_rightspan fl ml10"><%= @issue.status.name %></span>
</li>
<li class="clear">
<span class="pro_new_conbox_leftspan fl">选定优先级</span>
<span class="pro_new_conbox_rightspan fl ml10"><%= @issue.priority.name %></span>
</li>
<% unless @issue.disabled_core_fields.include?('assigned_to_id') %>
<li class="clear">
<span class="pro_new_conbox_leftspan fl">指派给</span>
<span class="pro_new_conbox_rightspan fl ml10">
<a href="<%= @issue.assigned_to_id.nil? ? "javascript:void(0)" : user_path(@issue.assigned_to) %>" class="c_blue" ><%= @issue.assigned_to ? @issue.assigned_to.show_name : "--" %></a></span>
</li>
<% end %>
<% unless @issue.disabled_core_fields.include?('fixed_version_id') %>
<li class="clear">
<span class="pro_new_conbox_leftspan fl">里程碑</span>
<span class="pro_new_conbox_rightspan fl ml10"><%= @issue.fixed_version ? @issue.fixed_version : "--" %></span>
</li>
<%end%>
<% unless @issue.disabled_core_fields.include?('start_date') %>
<li class="clear"><span class="pro_new_conbox_leftspan fl">开始日期</span>
<span class="pro_new_conbox_rightspan fl ml10"><%= format_date(@issue.start_date) %></span>
</li>
<% end %>
<% unless @issue.disabled_core_fields.include?('due_date') %>
<li class="clear"><span class="pro_new_conbox_leftspan fl">结束日期</span>
<span class="pro_new_conbox_rightspan fl ml10"><%= format_date(@issue.due_date) %></span>
</li>
<% end %>
<% unless @issue.disabled_core_fields.include?('estimated_hours') %>
<li class="clear"><span class="pro_new_conbox_leftspan fl">预计工时(H)</span>
<span class="pro_new_conbox_rightspan fl ml10"><%= l_hours(@issue.estimated_hours) %></span>
</li>
<% end %>
<% unless @issue.disabled_core_fields.include?('done_ratio') %>
<li class="clear"><span class="pro_new_conbox_leftspan fl">完成度</span>
<span class="pro_new_conbox_rightspan fl ml10"><%= @issue.done_ratio %>%</span>
</li>
<% end %>
<li class="clear">
<%= render :partial => "issues/issue_commit_ids_show" %>
</li>
</ul>
<div class="cl"></div>
</div>