%= render :partial => 'action_menu' %>
<% breadcrumb_paths(*[link_to(l(:label_issue_plural), {:controller => 'issues', :action => 'index'})] << @ancestors.collect {|parent| link_to '#' + h(parent.id), {:controller => 'issues', :action => 'show', :id => parent}}) unless @ancestors.empty? %>
<%= content_tag('h2', h(@issue.tracker.name) + ' #' +@issue.id.to_s) %>
<%= avatar(@issue.author, :size => "40") %>
<%=h(@issue.subject) %>
<%= 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 %>
<% if @issue.description? %>
<%= link_to_remote_if_authorized(l(:button_quote), { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, :class => 'icon icon-comment') %>
<%=l(:field_description)%>
<%= textilizable @issue, :description, :attachments => @issue.attachments %>
<% end %>
<% if @issue.attachments.any? -%>
<%= link_to_attachments @issue %>
<% end -%>
<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
<%= render :partial => 'subissues_paragraph' %>
<% if authorize_for('issue_relations', 'create') || @relations.present? %>
<%= render :partial => 'relations' %>
<% end %>
<% 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 %>