2015-03-19 16:25:18 +08:00
|
|
|
<div class="project_r_h">
|
2015-04-11 13:46:49 +08:00
|
|
|
<h2 class="project_h2"><%= l(:label_issue_edit) %></h2>
|
2015-03-19 16:25:18 +08:00
|
|
|
</div>
|
2015-04-10 17:49:16 +08:00
|
|
|
<% html_title "#{@issue.tracker.name} #{@issue.source_from}'#'#{@issue.project_index}: #{@issue.subject}" %>
|
2015-04-15 20:05:21 +08:00
|
|
|
<div class="pro_page_box">
|
2015-04-16 16:36:34 +08:00
|
|
|
<div class="pro_page_top break_word">
|
2015-04-30 17:24:30 +08:00
|
|
|
<%= link_to "#{@issue.project.name}"+">", project_issues_path(@issue.project) %>
|
2015-04-15 20:05:21 +08:00
|
|
|
<a href="javascript:void(0)"><%= "#" + @issue.project_index %></a>
|
2015-04-10 17:49:16 +08:00
|
|
|
</div>
|
2015-04-15 20:05:21 +08:00
|
|
|
<div class="problem_main">
|
|
|
|
<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;">
|
|
|
|
<%= @issue.subject %>
|
2015-05-20 11:12:25 +08:00
|
|
|
<span class='<%= "#{get_issue_type(@issue.tracker_id)[0]}" %>'><%= get_issue_type(@issue.tracker_id)[1] %></span>
|
2015-04-15 20:05:21 +08:00
|
|
|
</p><br/>
|
2015-04-10 17:49:16 +08:00
|
|
|
|
2015-04-09 20:47:09 +08:00
|
|
|
<div class="cl"></div>
|
2015-04-15 20:05:21 +08:00
|
|
|
<p>由<a href="javascript:void(0)" class="problem_name"><%= @issue.author %></a>
|
2015-05-22 10:35:27 +08:00
|
|
|
<%# if @issue.created_on != @issue.updated_on %>
|
|
|
|
添加于 <%= format_time(@issue.created_on).html_safe %>
|
|
|
|
<%# else %>
|
|
|
|
<%#= format_time(@issue.updated_on).html_safe %>
|
|
|
|
<%# end %>
|
2015-04-15 20:05:21 +08:00
|
|
|
</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" 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') %>
|
|
|
|
<%= textilizable @issue, :description, :attachments => @issue.attachments %>
|
2015-04-10 17:49:16 +08:00
|
|
|
<% end %>
|
2015-04-15 20:05:21 +08:00
|
|
|
</div>
|
|
|
|
<div class="pro_pic_box mb10">
|
|
|
|
<a href="javascript:void(0)" class="link_img fl">
|
|
|
|
<!--显示附件、图片-->
|
|
|
|
<%= link_to_attachment_project @issue, :thumbnails => true %></a><br/>
|
|
|
|
<% end -%>
|
|
|
|
<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
|
|
|
|
</div><!--pro_pic_box end-->
|
2015-04-09 20:47:09 +08:00
|
|
|
<div class="cl"></div>
|
2015-04-15 20:05:21 +08:00
|
|
|
<!--属性-->
|
|
|
|
<div class="pro_info_box mb10">
|
|
|
|
<%= issue_fields_rows do |rows| %>
|
2015-05-15 11:26:50 +08:00
|
|
|
<ul class="fl" >
|
|
|
|
<li><p class="label03" > 状态 : </p><p class="pro_info_p"><%= @issue.status.name %></p>
|
|
|
|
</li>
|
|
|
|
<div class="cl"></div>
|
2015-04-15 20:05:21 +08:00
|
|
|
<% unless @issue.disabled_core_fields.include?('assigned_to_id') %>
|
2015-05-15 11:26:50 +08:00
|
|
|
<li><p class="label03" > 指派给 : </p><span class="pro_info_p"><%= @issue.assigned_to ? link_to_isuue_user(@issue.assigned_to) : "--" %></span>
|
|
|
|
</li>
|
2015-04-15 20:05:21 +08:00
|
|
|
<% end %>
|
2015-05-15 11:26:50 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
</ul>
|
|
|
|
<ul class="fl" >
|
|
|
|
<li><p class="label03" > 优先级 : </p><span class="pro_info_p" style="width:50px;"><%= @issue.priority.name %></span>
|
|
|
|
</li>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<% unless @issue.disabled_core_fields.include?('done_ratio') %>
|
|
|
|
<li><p class="label03" > % 完成 : </p><span class="pro_info_p" style="width:50px;"><%= @issue.done_ratio %>%</span>
|
|
|
|
</li>
|
2015-04-15 20:05:21 +08:00
|
|
|
<% end %>
|
2015-05-15 11:26:50 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
</ul>
|
2015-04-15 20:05:21 +08:00
|
|
|
|
2015-05-15 11:26:50 +08:00
|
|
|
<ul class="fl " >
|
|
|
|
<% unless @issue.disabled_core_fields.include?('start_date') %>
|
|
|
|
<li><p class="label03" style="width:50px;" > 开始 : </p><p class="pro_info_p"><%= format_date(@issue.start_date) %></p>
|
|
|
|
</li>
|
2015-04-15 20:05:21 +08:00
|
|
|
<% end %>
|
2015-05-15 11:26:50 +08:00
|
|
|
<div class="cl"></div>
|
2015-04-15 20:05:21 +08:00
|
|
|
<% unless @issue.disabled_core_fields.include?('estimated_hours') %>
|
2015-05-15 11:26:50 +08:00
|
|
|
<li><p class="label03" style="width:50px;"> 周期 : </p><span class="pro_info_p"><%= l_hours(@issue.estimated_hours) %></span>
|
|
|
|
</li>
|
2015-04-15 20:05:21 +08:00
|
|
|
<% end %>
|
2015-05-15 11:26:50 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
</ul>
|
|
|
|
<ul class="fl " >
|
|
|
|
<% unless @issue.disabled_core_fields.include?('due_date') %>
|
|
|
|
<li><p class="label03" > 计划完成 : </p><span class="pro_info_p" style="width:120px;"><%= format_date(@issue.due_date)? format_date(@issue.due_date) : "--" %></span>
|
|
|
|
</li>
|
2015-04-15 20:05:21 +08:00
|
|
|
<% end %>
|
2015-05-15 11:26:50 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
<% unless @issue.disabled_core_fields.include?('fixed_version_id') %>
|
|
|
|
<li><p class="label03" > 目标版本 : </p><span class="pro_info_p" style="width:120px;"><%= (@issue.fixed_version ? link_to_version(@issue.fixed_version, :class => "pro_info_p") : "--") %></span>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</ul>
|
|
|
|
<% end %><!--pro_info_box end-->
|
2015-04-15 20:05:21 +08:00
|
|
|
<%#= render_custom_fields_rows(@issue) %>
|
|
|
|
<%#= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
|
|
|
|
</div>
|
|
|
|
<!--pro_info_box 属性 end-->
|
2015-04-09 20:47:09 +08:00
|
|
|
<div class="cl"></div>
|
2015-04-15 20:05:21 +08:00
|
|
|
<%= link_to l(:button_quote), quoted_issue_path(@issue.id), :remote => true, :method => 'post', :class => 'talk_edit fr' if authorize_for('issues', 'edit') %></a>
|
2015-04-09 20:47:09 +08:00
|
|
|
<div class="cl"></div>
|
2015-04-15 20:05:21 +08:00
|
|
|
</div>
|
|
|
|
<!--problem_main end-->
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<% if @issue.editable? %>
|
2015-04-15 16:38:39 +08:00
|
|
|
<div id="update">
|
|
|
|
<%= render :partial => 'edit' %>
|
|
|
|
</div>
|
2015-04-21 14:19:50 +08:00
|
|
|
<!--留言-->
|
|
|
|
<p style="padding-top: 5px"></p>
|
|
|
|
<a remote="true" href="javascript:void(0)" class="blue_btn fr mr80" onclick="$('#issue-form').submit();">
|
|
|
|
<%= l(:button_submit) %>
|
|
|
|
</a>
|
2015-04-15 16:38:39 +08:00
|
|
|
<% end %>
|
2015-04-21 14:19:50 +08:00
|
|
|
|
2015-04-16 09:54:10 +08:00
|
|
|
<%#= submit_tag l(:button_submit) %>
|
2015-04-16 14:13:12 +08:00
|
|
|
<%#= preview_link preview_edit_issue_path(:project_id => @project, :id => @issue), 'issue-form' ,'preview',{:class => "blue_btn fr mr10"}%>
|
2015-04-15 15:15:51 +08:00
|
|
|
</div>
|
2015-03-19 16:25:18 +08:00
|
|
|
|
|
|
|
<% if @changesets.present? %>
|
2015-04-15 15:15:51 +08:00
|
|
|
<div id="issue-changesets">
|
2015-04-15 20:05:21 +08:00
|
|
|
<h3><%= l(:label_associated_revisions) %></h3>
|
|
|
|
<%= render :partial => 'changesets', :locals => {:changesets => @changesets} %>
|
2015-04-15 15:15:51 +08:00
|
|
|
</div>
|
2015-03-19 16:25:18 +08:00
|
|
|
<% end %>
|
2015-04-15 15:15:51 +08:00
|
|
|
<!--留言-- end>
|
2015-04-10 17:49:16 +08:00
|
|
|
<!--<div style="clear: both;"></div>-->
|
|
|
|
<!--<%#= render :partial => 'action_menu' %>-->
|
2015-03-19 16:25:18 +08:00
|
|
|
|
2015-04-15 16:38:39 +08:00
|
|
|
|
2015-04-15 20:05:21 +08:00
|
|
|
<div class="cl"></div>
|
2015-03-19 16:25:18 +08:00
|
|
|
<% other_formats_links do |f| %>
|
2015-04-15 20:05:21 +08:00
|
|
|
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
|
|
|
<%= f.link_to 'PDF' %>
|
2015-03-19 16:25:18 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<% content_for :sidebar do %>
|
2015-04-15 20:05:21 +08:00
|
|
|
<%= render :partial => 'issues/sidebar' %>
|
|
|
|
<br>
|
|
|
|
<% if User.current.allowed_to?(:add_issue_watchers, @project) ||
|
|
|
|
(@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
|
|
|
|
<div id="watchers">
|
|
|
|
<%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2015-03-19 16:25:18 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= context_menu issues_context_menu_path %>
|