<% content_for :header_tags do%> <%= stylesheet_link_tag('issue_history_tabs.css', :plugin => :redmine_issue_history_tabs) %> <%end%> <% reply_links = authorize_for('issues', 'edit') -%> <% tabs = [ {:label => :label_history_tab_comments, :name => 'history_comments'}, {:label => :label_history_tab_all, :name => 'history_all'}, ] %> <% selected_tab = params[:tab] ? params[:tab].to_s : 'history_comments' %>
<% reply_links = authorize_for('issues', 'edit') -%> <% for journal in journals %> <% if selected_tab == 'history_all' || journal.css_classes.include?('has-notes')%>

<%= link_to "##{journal.indice}", {:anchor => "note-#{journal.indice}"}, :class => "journal-link" %> <%= avatar(journal.user, :size => "24") %> <%= content_tag('a', '', :name => "note-#{journal.indice}")%> <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %>

<% if journal.details.any? && selected_tab == 'history_all' %> <% end %> <%= render_notes(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %>
<%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %> <% end %> <% end %> <% heads_for_wiki_formatter if User.current.allowed_to?(:edit_issue_notes, issue.project) || User.current.allowed_to?(:edit_own_issue_notes, issue.project) %>