<div class="revision">
  <%= link_to revision.created_at.strftime('%F %H:%M'), [@page, revision] %>
  <small class="muted">updated <%= time_ago_in_words(revision.updated_at) %> ago</small>
  <div class="pull-right">
    <%= link_to "#{icon_tag 'undo'} Restore".html_safe, [:restore, @page, revision] , class: 'btn btn-warning' %>
    <%= link_to_delete [@page, revision] %>
  </div>
</div>
<div class="revision">
  <%= link_to revision.created_at.strftime('%F %H:%M'), [@page, revision] %>
  <small class="muted">updated <%= time_ago_in_words(revision.updated_at) %> ago</small>
  <div class="pull-right">
    <%= link_to "#{icon_tag('pencil')} Edit".html_safe, [@page, revision], class: 'btn btn-info' %>
    <%= link_to "#{icon_tag('undo')} Restore".html_safe, [:restore, @page, revision] , class: 'btn btn-warning' %>
    <%= link_to_delete [@page, revision] %>
  </div>
</div>
Add link to edit revision
Add link to edit revision
