Sha256: 31477570ffb8adb0ae26e626a31f54453853b372814a5d7c362c71af5806ae61

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

<div class="revision media">
  <%= icon_tag('star pull-left', size: 'lg', title: 'Current Revision') if @page.current_revision == revision %>
  <%= image_tag avatar_url(revision.user.try(:email)), alt: '', class: 'media-object pull-left' %>
  <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', disabled: (@page.current_revision == revision) if policy(revision).restore? %>
    <%= link_to_delete [@page, revision], disabled: (@page.current_revision == revision) if policy(revision).destroy? %>
  </div>
  <div class="media-body">
    <h4 class="media-heading">
      <small class='badge badge-default'>id:<%= revision.id %></small>
      <small class='label label-<%= revision.status %>'><%= revision.status %></small>
      <small class="muted">updated <%= time_ago_in_words(revision.updated_at) %> ago</small>
    </h4>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.8.0 app/views/georgia/revisions/_revision.html.erb