Sha256: 44c8fed19ce0a52a417059fa3391a0b3409b785b662b3e2ccdd83fc36f8a452f

Contents?: true

Size: 992 Bytes

Versions: 2

Compression:

Stored size: 992 Bytes

Contents

<% pagetext('Page history for %s' / @page.title) do %>
  <table class="oldernews">
    <thead>
     <tr>
        <th class="date"><%= 'Date'.t -%></th>
        <th class="relative"/>
        <th><%= 'Author'.t -%></th>
        <th><%= 'Title'.t -%></th>
      </tr>
    </thead>
    <tbody>
    <% @page.revisions.reverse.each do |rev| %>
      <tr class="<%= rev.position % 2 == 0 ? 'odd' : 'even' -%>">
        <td class="date"><%= rev.modified_at-%></td>
        <td class="relative"><%= rev.modified_at.relative_to_now %></td>
        <td><%= rev.last_editor.login %></td>
        <td><%= content_tag :a, rev.title,
                            :href => server_url_for(:controller => 'wiki',
                                                    :action => 'show',
                                                    :page_name => @page.name,
                                                    :revision => rev.position) -%></td>
      </tr>
    <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
motiro-0.6.5 app/views/wiki/history.rhtml
motiro-0.6.6 app/views/wiki/history.rhtml