46 lines
2.0 KiB
Plaintext
46 lines
2.0 KiB
Plaintext
<div id="issue_detail" style="display: block">
|
|
<div class="ping_dispic">
|
|
<%= link_to image_tag(url_to_avatar(@issue.author), :width => 46, :height => 46), user_path(@issue.author), :class => "ping_dispic" %>
|
|
</div>
|
|
<div class="talk_txt fl">
|
|
<p class="pro_page_tit" style="word-break:break-all;">
|
|
<% case @issue.tracker_id %>
|
|
<% when 1%>
|
|
<span class="issues fl" title="缺陷"></span>
|
|
<% when 2%>
|
|
<span class="function fl" title="功能"></span>
|
|
<% when 3%>
|
|
<span class="support fl" title="支持"></span>
|
|
<% when 4%>
|
|
<span class="duty fl" title="任务"></span>
|
|
<% when 5%>
|
|
<span class="weekly fl" title="周报"></span>
|
|
<% end %>
|
|
</span> <span style="padding-left: 5px;"><%= @issue.subject %></span>
|
|
<span class='<%= "#{get_issue_priority(@issue.priority_id)[0]} " %>'><%= get_issue_priority(@issue.priority_id)[1] %></span></p>
|
|
<br>
|
|
<div class="cl"></div>
|
|
由<a href="javascript:void(0)" class="problem_name"><%= @issue.author %></a>添加于 <%= format_time(@issue.created_on).html_safe %>
|
|
</div>
|
|
|
|
<!--talk_txt end-->
|
|
<a href="javascript:void(0)" class="talk_edit fr"> </a>
|
|
<%= render :partial => 'action_menu' %>
|
|
<div class="cl"></div>
|
|
<% if @issue.description? || @issue.attachments.any? -%>
|
|
<div class="talk_info mb10 issue_desc" style="word-break:break-all;">
|
|
<% if @issue.description? %>
|
|
<%#= link_to l(:button_quote), quoted_issue_path(@issue.id), :remote => true, :method => 'post', :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>
|
|
<%= textAreailizable @issue, :description, :attachments => @issue.attachments %>
|
|
<% end %>
|
|
</div>
|
|
<% end -%>
|
|
|
|
<%# 附件局部刷新 %>
|
|
<div id = "div_issue_attachment_<%=@issue.id %>">
|
|
<%= render :partial => 'issue_attachments',:locals => {:issue => @issue} %>
|
|
</div>
|
|
<!--属性-->
|
|
<%= render :partial => 'issues/attributes_show' %>
|
|
<div class="cl"></div>
|
|
</div> |