|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
<%= 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" >
|
|
|
|
|
<p class="pro_page_tit" style="word-break:break-all;" >
|
|
|
|
|
<%= @issue.subject %><span class='<%= "#{get_issue_type(@issue.tracker_id)}" %>'><%= get_issue_typevalue(@issue.tracker_id) %></span></p><br />
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<p>由<a href="javascript:void(0)" class="problem_name"><%= @issue.author %></a>
|
|
|
|
@ -24,7 +24,7 @@
|
|
|
|
|
</div><!--talk_txt end-->
|
|
|
|
|
<a href="javascript:void(0)" class="talk_edit fr"<%= render :partial => 'action_menu' %></a>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="talk_info mb10">
|
|
|
|
|
<div class="talk_info mb10" style="word-break:break-all;">
|
|
|
|
|
<% if @issue.description? || @issue.attachments.any? -%>
|
|
|
|
|
<% 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') %>
|
|
|
|
@ -32,9 +32,9 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pro_pic_box mb10">
|
|
|
|
|
<a href="javascript:void(0)" class="link_img fl"><span class="pic_img fl"></span>
|
|
|
|
|
<a href="javascript:void(0)" class="link_img fl">
|
|
|
|
|
<!--显示附件、图片-->
|
|
|
|
|
<%= link_to_attachments @issue, :thumbnails => true %></a><br />
|
|
|
|
|
<%= link_to_attachment_project @issue, :thumbnails => true %></a><br />
|
|
|
|
|
<% end -%>
|
|
|
|
|
<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
|
|
|
|
|
</div><!--pro_pic_box end-->
|
|
|
|
@ -51,7 +51,7 @@
|
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% unless @issue.disabled_core_fields.include?('assigned_to_id') %>
|
|
|
|
|
<li><p class="label" > 指派给 : </p><span class="pro_info_p"><%= @issue.assigned_to ? link_to_user(@issue.assigned_to, :class => "pro_info_p") : "-" %></span></li>
|
|
|
|
|
<li><p class="label" > 指派给 : </p><span class="pro_info_p"><%= @issue.assigned_to ? link_to_isuue_user(@issue.assigned_to) : "-" %></span></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% unless @issue.disabled_core_fields.include?('fixed_version_id') %>
|
|
|
|
@ -77,7 +77,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% unless @issue.disabled_core_fields.include?('done_ratio') %>
|
|
|
|
|
<li><p class="label02" > % 完成 : </p><span class="pro_info_p"><%= progress_bar(@issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%") %></span>
|
|
|
|
|
<li><p class="label02" > % 完成 : </p><span class="pro_info_p"><%= @issue.done_ratio %>%</span>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -90,81 +90,22 @@
|
|
|
|
|
<%= link_to l(:button_quote), quoted_issue_path(@issue.id), :remote => true, :method => 'post', :class => 'talk_edit fr' if authorize_for('issues', 'edit') %></a>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div><!--problem_main end-->
|
|
|
|
|
|
|
|
|
|
<!--留言-->
|
|
|
|
|
<% if @journals.present? %>
|
|
|
|
|
<div id="history">
|
|
|
|
|
<h3><%=l(:label_history)%></h3>
|
|
|
|
|
<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div><!--pro_page_box end-->
|
|
|
|
|
<%# html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
|
|
|
|
|
|
|
|
|
|
<!--<div class="<%#= @issue.css_classes %> details">-->
|
|
|
|
|
<!--<%#· if @prev_issue_id || @next_issue_id %>-->
|
|
|
|
|
<!--<div class="next-prev-links contextual">-->
|
|
|
|
|
<%#·= link_to_if @prev_issue_id,
|
|
|
|
|
# "\xc2\xab #{l(:label_previous)}",
|
|
|
|
|
# (@prev_issue_id ? issue_path(Issue.find_by_id(@prev_issue_id)) : nil),
|
|
|
|
|
:title => "##{@prev_issue_id}" %> |
|
|
|
|
|
<!--<%# if @issue_position && @issue_count %>-->
|
|
|
|
|
<!--<span class="position"><%#= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> |-->
|
|
|
|
|
<!--<%# end %>-->
|
|
|
|
|
<%#= link_to_if @next_issue_id,
|
|
|
|
|
# "#{l(:label_next)} \xc2\xbb",
|
|
|
|
|
# (@next_issue_id ? issue_path(Issue.find_by_id(@next_issue_id)) : nil),
|
|
|
|
|
:title => "##{@next_issue_id}" %>
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<%# end %>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 顶和踩 在这里添加 -->
|
|
|
|
|
<!--<span id="praise_tread" style="float: right">-->
|
|
|
|
|
<!--<%#= render :partial => "/praise_tread/praise_tread",:locals => {:obj => @issue,:show_flag => true,:user_id =>User.current.id,:horizontal => false}%>-->
|
|
|
|
|
<!--</span>-->
|
|
|
|
|
|
|
|
|
|
<!--<p class="author">-->
|
|
|
|
|
<%#= authoring @issue.created_on, @issue.author %>.
|
|
|
|
|
<!--<%# if @issue.created_on != @issue.updated_on %>-->
|
|
|
|
|
<%#= l(:label_updated_time, time_tag(@issue.updated_on)).html_safe %>.
|
|
|
|
|
<!--<%# end %>-->
|
|
|
|
|
<!--</p>-->
|
|
|
|
|
<!-- added by william -for tag -->
|
|
|
|
|
<!--<div id="tags">-->
|
|
|
|
|
<!--<%#= render :partial => 'tags/tag', :locals => {:obj => @issue,:object_flag => "3" }%>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
|
|
|
|
<!--<%# if false # !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %>-->
|
|
|
|
|
<!--<hr />-->
|
|
|
|
|
|
|
|
|
|
<!--<div id="issue_tree">-->
|
|
|
|
|
<!--<div class="contextual">-->
|
|
|
|
|
<!--<%#= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
|
|
|
|
<!--<p><strong><%#=l(:label_subtask_plural)%></strong></p>-->
|
|
|
|
|
<!--<%#= render_descendants_tree(@issue) unless @issue.leaf? %>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<%# end %>-->
|
|
|
|
|
|
|
|
|
|
<!--<%# if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %>-->
|
|
|
|
|
<!--<hr />-->
|
|
|
|
|
<!--<div id="relations">-->
|
|
|
|
|
<!--<%#= render :partial => 'relations' %>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<%# end %>-->
|
|
|
|
|
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% if @changesets.present? %>
|
|
|
|
|
<div id="issue-changesets">
|
|
|
|
|
<h3><%=l(:label_associated_revisions)%></h3>
|
|
|
|
|
<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="issue-changesets">
|
|
|
|
|
<h3><%=l(:label_associated_revisions)%></h3>
|
|
|
|
|
<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<!--留言-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--留言-- end>
|
|
|
|
|
<!--<div style="clear: both;"></div>-->
|
|
|
|
|
<!--<%#= render :partial => 'action_menu' %>-->
|
|
|
|
|
|
|
|
|
|