<%= content_tag('h2', h(@issue.tracker.name) + ' #' +@issue.id.to_s) %>
<%= render :partial => 'action_menu' %>
<%= 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)) %>.
<% 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) %>
<% if !@issue.leaf? || @issue.parent %>
<%= render :partial => 'subissues_paragraph' %>
<% end %>
<% if authorize_for('issue_relations', 'new') || @issue.relations.present? %>
<%= render :partial => 'relations' %>
<% end %>
<% if @changesets.present? %>
<%=l(:label_associated_revisions)%>
<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
<% end %>
<% if @journals.present? %>
<%=l(:label_history)%>
<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
<% end %>
<%= render :partial => 'action_menu', :locals => {:replace_watcher => 'watcher2' } %>
<%= l(:button_update) %>
<% if authorize_for('issues', 'edit') %>
<%= render :partial => 'edit' %>
<% end %>
<% other_formats_links do |f| %>
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
<%= f.link_to 'PDF' %>
<% end %>
<% html_title h("#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}") %>
<% 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}") %>
<%= stylesheet_link_tag 'scm' %>
<%= javascript_include_tag 'context_menu' %>
<%= stylesheet_link_tag 'context_menu' %>
<%= stylesheet_link_tag 'context_menu_rtl' if l(:direction) == 'rtl' %>
<% end %>
<%= javascript_tag "new ContextMenu('#{issues_context_menu_path}')" %>