<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %>

<%= l(:label_issue_edit) %>

<% html_title "#{@issue.tracker.name} #{@issue.source_from}'#'#{@issue.project_index}: #{@issue.subject}" %>
<%= link_to "#{@issue.project.name}"+">", project_issues_path(@issue.project) %> <%= "#" + @issue.id.to_s %>
<%= link_to image_tag(url_to_avatar(@issue.author), :width => 46, :height => 46), user_path(@issue.author), :class => "ping_dispic" %>

<%= @issue.subject %> <%= get_issue_priority(@issue.priority_id)[1] %>


<%= @issue.author %>添加于 <%= format_time(@issue.created_on).html_safe %>
'action_menu' %>
<% 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') %> <%= textAreailizable @issue, :description, :attachments => @issue.attachments %> <% end %>
<% end -%>
<%= link_to_attachment_project @issue, :thumbnails => true %>
<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
<%= render :partial => 'attributes_show' %> <%# 该应用是对issue主题内容的引用,对应:to => 'journals#new %>
<% if @issue.editable? %>
<%= render :partial => 'edit' %>

<%#--引用时不能修改,剥离出引用内容--%> <%= l(:button_submit) %> <% end %> <%#= submit_tag l(:button_submit) %> <%#= preview_link preview_edit_issue_path(:project_id => @project, :id => @issue), 'issue-form' ,'preview',{:class => "blue_btn fr mr10"}%>
<% if @changesets.present? %>

<%= l(:label_associated_revisions) %>

<%= render :partial => 'changesets', :locals => {:changesets => @changesets} %>
<% end %>
<% other_formats_links do |f| %> <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> <%= f.link_to 'PDF' %> <% end %> <% content_for :sidebar do %> <%= render :partial => 'issues/sidebar' %>
<% if User.current.allowed_to?(:add_issue_watchers, @project) || (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
<%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
<% end %> <% 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 %>