<div id="c-wiki-page-versions">
  <div id="a-show">
    <%= render "wiki_pages/sidebar" %>

    <section id="content">
      <h1 id="wiki-page-title"><%= @wiki_page_version.pretty_title %> <span class="version">(<%= time_ago_in_words_tagged(@wiki_page_version.updated_at) %>)</span></h1>

      <div id="wiki-page-body" class="dtext prose">
        <% if @wiki_page_version.visible? %>
          <% if @wiki_page_version.other_names.present? %>
            <p><%= wiki_page_other_names_list(@wiki_page_version) %></p>
          <% end %>

          <%= format_text(@wiki_page_version.body) %>
        <% else %>
          <p>The artist has requested removal of this page.</p>
        <% end %>
      </div>
    </section>
  </div>
</div>

<%= render "wiki_pages/secondary_links" %>

<% content_for(:page_title) do %>
  Wiki Page Version - <%= Danbooru.config.app_name %>
<% end %>
