issue相关问题
This commit is contained in:
parent
25a604d7b8
commit
b66de0ee9f
|
@ -1,4 +1,4 @@
|
||||||
<%= javascript_include_tag "/assets/kindeditor/kindeditor", '/assets/kindeditor/pasteimg' %>
|
<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %>
|
||||||
<div class="project_r_h">
|
<div class="project_r_h">
|
||||||
<h2 class="project_h2"><%= l(:label_issue_edit) %></h2>
|
<h2 class="project_h2"><%= l(:label_issue_edit) %></h2>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,6 +12,7 @@
|
||||||
<div class="ping_dispic">
|
<div class="ping_dispic">
|
||||||
<%= link_to image_tag(url_to_avatar(@issue.author), :width => 46, :height => 46), user_path(@issue.author), :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>
|
||||||
|
|
||||||
<div class="talk_txt fl">
|
<div class="talk_txt fl">
|
||||||
<p class="pro_page_tit" style="word-break:break-all;">
|
<p class="pro_page_tit" style="word-break:break-all;">
|
||||||
<span class='<%= "#{get_issue_type(@issue.tracker_id)[0]} fl" %>' title="<%= get_issue_type(@issue.tracker_id)[1] %>"></span>
|
<span class='<%= "#{get_issue_type(@issue.tracker_id)[0]} fl" %>' title="<%= get_issue_type(@issue.tracker_id)[1] %>"></span>
|
||||||
|
@ -20,114 +21,53 @@
|
||||||
</p><br/>
|
</p><br/>
|
||||||
|
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p>由<a href="javascript:void(0)" class="problem_name"><%= @issue.author %></a>
|
由<a href="javascript:void(0)" class="problem_name"><%= @issue.author %></a>添加于 <%= format_time(@issue.created_on).html_safe %>
|
||||||
<%# if @issue.created_on != @issue.updated_on %>
|
|
||||||
添加于 <%= format_time(@issue.created_on).html_safe %>
|
|
||||||
<%# else %>
|
|
||||||
<%#= format_time(@issue.updated_on).html_safe %>
|
|
||||||
<%# end %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--talk_txt end-->
|
<!--talk_txt end-->
|
||||||
<a href="javascript:void(0)" class="talk_edit fr"<%= render :partial => 'action_menu' %></a>
|
<a href="javascript:void(0)" class="talk_edit fr"<%= render :partial => 'action_menu' %></a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div class="talk_info mb10 list_style" style="word-break:break-all;">
|
<% if @issue.description? || @issue.attachments.any? -%>
|
||||||
<% if @issue.description? || @issue.attachments.any? -%>
|
<div class="talk_info mb10" style="word-break:break-all;">
|
||||||
<% if @issue.description? %>
|
<% 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') %>
|
<%#= 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 %>
|
<%= textAreailizable @issue, :description, :attachments => @issue.attachments %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="pro_pic_box mb10">
|
<% end -%>
|
||||||
<a href="javascript:void(0)" class="link_img fl">
|
|
||||||
<!--显示附件、图片-->
|
<div class="pro_pic_box mb10">
|
||||||
<%= link_to_attachment_project @issue, :thumbnails => true %></a><br/>
|
<a href="javascript:void(0)" class="link_img fl">
|
||||||
<% end -%>
|
<!--显示附件、图片-->
|
||||||
|
<%= link_to_attachment_project @issue, :thumbnails => true %></a><br/>
|
||||||
<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
|
<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
|
||||||
</div><!--pro_pic_box end-->
|
</div><!--pro_pic_box end-->
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<!--属性-->
|
|
||||||
<div class="pro_info_box mb10">
|
|
||||||
<%= issue_fields_rows do |rows| %>
|
|
||||||
<ul class="fl">
|
|
||||||
<li><p class="label03"> 状态 : </p>
|
|
||||||
|
|
||||||
<p class="pro_info_p"><%= @issue.status.name %></p>
|
<!--属性-->
|
||||||
</li>
|
<%= render :partial => 'attributes_show' %>
|
||||||
<div class="cl"></div>
|
<!--pro_info_box 属性 end-->
|
||||||
<% unless @issue.disabled_core_fields.include?('assigned_to_id') %>
|
|
||||||
<li><p class="label03"> 指派给 : </p>
|
|
||||||
<span class="pro_info_p"><%= @issue.assigned_to ? link_to_isuue_user(@issue.assigned_to) : "--" %></span>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
<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>
|
|
||||||
<% end %>
|
|
||||||
<div class="cl"></div>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul class="fl ">
|
<%# 该应用是对issue主题内容的引用,对应:to => 'journals#new %>
|
||||||
<% unless @issue.disabled_core_fields.include?('start_date') %>
|
<!--<div class="cl"></div>-->
|
||||||
<li><p class="label03" style="width:50px;"> 开始 : </p>
|
<!--<%#= link_to l(:button_quote), quoted_issue_path(@issue.id), :remote => true, :method => 'post', :class => 'talk_edit fr' if authorize_for('issues', 'edit') %>-->
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p class="pro_info_p"><%= format_date(@issue.start_date) %></p>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
<div class="cl"></div>
|
|
||||||
<% unless @issue.disabled_core_fields.include?('estimated_hours') %>
|
|
||||||
<li><p class="label03" style="width:50px;"> 周期 : </p>
|
|
||||||
<span class="pro_info_p"><%= l_hours(@issue.estimated_hours) %></span>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
<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>
|
|
||||||
<% end %>
|
|
||||||
<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-->
|
|
||||||
<%#= render_custom_fields_rows(@issue) %>
|
|
||||||
<%#= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
|
|
||||||
</div>
|
|
||||||
<!--pro_info_box 属性 end-->
|
|
||||||
<div class="cl"></div>
|
|
||||||
<%= 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-->
|
<!--problem_main end-->
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
|
|
||||||
<!--留言-->
|
<!--留言-->
|
||||||
<% if @issue.editable? %>
|
<% if @issue.editable? %>
|
||||||
<div id="update">
|
<div id="update">
|
||||||
<%= render :partial => 'edit' %>
|
<%= render :partial => 'edit' %>
|
||||||
</div>
|
</div>
|
||||||
<p style="padding-top: 5px"></p>
|
<p style="padding-top: 5px"></p>
|
||||||
|
<%#--引用时不能修改,剥离出引用内容--%>
|
||||||
<!--引用时不能修改,剥离出引用内容-->
|
|
||||||
|
|
||||||
<a remote="true" href="javascript:void(0)" class="blue_btn fr mr80" onclick="issue_desc_editor.sync();$('#issue-form').submit();">
|
<a remote="true" href="javascript:void(0)" class="blue_btn fr mr80" onclick="issue_desc_editor.sync();$('#issue-form').submit();">
|
||||||
<%= l(:button_submit) %>
|
<%= l(:button_submit) %>
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%#= submit_tag l(:button_submit) %>
|
<%#= submit_tag l(:button_submit) %>
|
||||||
<%#= preview_link preview_edit_issue_path(:project_id => @project, :id => @issue), 'issue-form' ,'preview',{:class => "blue_btn fr mr10"}%>
|
<%#= preview_link preview_edit_issue_path(:project_id => @project, :id => @issue), 'issue-form' ,'preview',{:class => "blue_btn fr mr10"}%>
|
||||||
</div>
|
</div>
|
||||||
|
@ -138,6 +78,7 @@
|
||||||
<%= render :partial => 'changesets', :locals => {:changesets => @changesets} %>
|
<%= render :partial => 'changesets', :locals => {:changesets => @changesets} %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<% other_formats_links do |f| %>
|
<% other_formats_links do |f| %>
|
||||||
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
||||||
|
|
Loading…
Reference in New Issue