69 lines
2.3 KiB
Plaintext
69 lines
2.3 KiB
Plaintext
<div id="c-wiki-pages">
|
|
<div id="a-index">
|
|
<%= render "wiki_pages/sidebar" %>
|
|
|
|
<section id="content">
|
|
<h1>Wiki Pages</h1>
|
|
|
|
<%= form_tag(diff_wiki_page_versions_path, :method => :get) do %>
|
|
<table width="100%" class="striped">
|
|
<thead>
|
|
<tr>
|
|
<th width="2%"></th>
|
|
<th width="2%"></th>
|
|
<th width="55%">Title</th>
|
|
<th width="5%"></th>
|
|
<% if CurrentUser.is_admin? %>
|
|
<th width="10%">IP Address</th>
|
|
<% end %>
|
|
<th width="26%">Last edited</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @wiki_page_versions.each do |wiki_page_version| %>
|
|
<tr>
|
|
<td>
|
|
<% if params[:search] && params[:search][:wiki_page_id] %>
|
|
<%= radio_button_tag "thispage", wiki_page_version.id %>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<% if params[:search] && params[:search][:wiki_page_id] %>
|
|
<%= radio_button_tag "otherpage", wiki_page_version.id %>
|
|
<% end %>
|
|
</td>
|
|
<td><%= link_to wiki_page_version.title, wiki_page_version_path(wiki_page_version) %></td>
|
|
<td><%= link_to "wiki", wiki_page_path(wiki_page_version.wiki_page_id) %></td>
|
|
<% if CurrentUser.is_admin? %>
|
|
<td>
|
|
<%= wiki_page_version.updater_ip_addr %>
|
|
</td>
|
|
<% end %>
|
|
<td>
|
|
<%= compact_time(wiki_page_version.updated_at) %>
|
|
<% if wiki_page_version.updater %>
|
|
by
|
|
<%= link_to wiki_page_version.updater_name, user_path(wiki_page_version.updater) %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<% if params[:search] && params[:search][:wiki_page_id] %>
|
|
<%= submit_tag "Diff" %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= numbered_paginator(@wiki_page_versions) %>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "wiki_pages/secondary_links" %>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Wiki Page Versions - <%= Danbooru.config.app_name %>
|
|
<% end %>
|