<% publication.editions.each do |edition| %>
  <div class="edition">
    <div class="buttons group">
      <h3>v<%= edition.version_number %></h3>
      <div class="check">
        <%= link_to 'Preview', preview_edition_path(edition) %>
        <%= button_to 'Diff' %>
        <%= button_to 'Diff with latest' %>
      </div>
    </div>
    <ul class="history">
      <% edition.actions.each do |action| %>
      <li>
        <p>
          <%= image_tag action.requester.gravatar_url, :alt => action.requester.to_s %>
          <%= action.to_s %>
        </p>
        <p class="action-time"><%= action.created_at.strftime("%d/%m/%Y %R") %></p>
        <% if action.comment.present? %>
        <blockquote><%= action.comment %></blockquote>
        <% end %>
      </li>
      <% end %>
    </ul>
  </div>
<% end %>
<% publication.editions.each do |edition| %>
  <div class="edition">
    <div class="buttons group">
      <h3>v<%= edition.version_number %></h3>
      <div class="check">
        <%= link_to 'Preview', preview_edition_path(edition) %>
        <%= button_to 'Diff' %>
        <%= button_to 'Diff with latest' %>
      </div>
    </div>
    <ul class="history">
      <% edition.actions.each do |action| %>
      <li>
        <p>
          <%= image_tag action.requester.gravatar_url, :alt => action.requester.to_s %>
          <%= action.to_s %>
        </p>
        <p><%= mail_to action.requester.email, action.requester.name %></p>
        <p class="action-time"><%= action.created_at.strftime("%d/%m/%Y %R") %></p>
        <% if action.comment.present? %>
        <blockquote><%= action.comment %></blockquote>
        <% end %>
      </li>
      <% end %>
    </ul>
  </div>
<% end %>
Add names and email addresses to history view
Add names and email addresses to history view
