53 lines
2.2 KiB
Plaintext
53 lines
2.2 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="fl" title="缺陷">【缺陷】</span>
|
|
<% when 2%>
|
|
<span class="fl" title="功能">【功能】</span>
|
|
<% when 3%>
|
|
<span class="fl" title="支持">【支持】</span>
|
|
<% when 4%>
|
|
<span class="fl" title="任务">【任务】</span>
|
|
<% when 5%>
|
|
<span class="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" id="issue_desc_<%= @issue.id %>" 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>
|
|
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
showNormalImage('issue_desc_<%= @issue.id %>');
|
|
autoUrl('issue_desc_<%= @issue.id %>');
|
|
});
|
|
</script> |