<% reply_links = authorize_for('issues', 'edit') -%>
<% journals.reverse.each do |journal| %>
    <!-- modified by bai -->
    <div id="change-<%= journal.id %>" class="<%= journal.css_classes %>" style=" word-wrap: break-word; word-break: break-all">
      <!-- end -->
      <div class="ping_C mb10 ml10">
        <div class="ping_dispic"><a href="#" target="_blank"><%= image_tag(url_to_avatar(journal.user), :class => "ping_dispic",:width => 46,:height => 46) %></a></div>
        <div class="ping_discon" style="width: 600px;">
          <div class="ping_distop">
            <a href="#" target="_blank" class="c_blue fb fl mb10 "><%= journal.user %></a><span class="c_grey fr"><%= format_time journal.created_on %></span>
            <div class="cl"></div>
            <p>
              <% if journal.details.any? %>
                <% details_to_strings(journal.details).each do |string| %>
                  <p><%= string.html_safe %></p>
                <% end %>
              <% end %>
            </p>
          </div>
          <!--编辑、引用、回复按钮-->
          <div class="ping_disfoot"><%= render_links_easy(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %></div>
          <!--回复内容、引用内容-->
          <p><%= render_notes_issue(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %></p>
          <div class="cl"></div>
        </div>
        <div class="cl"></div>
      </div>
    </div>

    <%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %>
<% 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) %>