50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
<%= render "sidebar" %>
|
|
|
|
<% content_for(:content) do %>
|
|
<h1 id="wiki-page-title">
|
|
<%= link_to @wiki_page.pretty_title, posts_path(:tags => @wiki_page.title), :class => "tag-type-#{@wiki_page.category_name}" %>
|
|
|
|
<% if @wiki_page.is_locked? %>
|
|
(locked)
|
|
<% end %>
|
|
|
|
<% if @wiki_page.is_deleted? %>
|
|
(deleted)
|
|
<% end %>
|
|
</h1>
|
|
|
|
<div id="wiki-page-body" class="prose">
|
|
<% if @wiki_page.visible? %>
|
|
<% if @wiki_page.other_names.present? %>
|
|
<p><%= wiki_page_other_names_list(@wiki_page) %></p>
|
|
<% end %>
|
|
|
|
<% if @wiki_page.new_record? %>
|
|
<p>This wiki page does not exist. <%= link_to "Create new wiki page", new_wiki_page_path(wiki_page: { title: @wiki_page.title }) %>.</p>
|
|
<% else %>
|
|
<%= format_text(@wiki_page.body) %>
|
|
<% end %>
|
|
|
|
<% if @wiki_page.artist %>
|
|
<p><%= link_to "View artist", @wiki_page.artist %></p>
|
|
<% end %>
|
|
|
|
<%= render "tag_relationships/alias_and_implication_list", tag: @wiki_page.tag %>
|
|
<% else %>
|
|
<p>This artist has requested removal of their information.</p>
|
|
<% end %>
|
|
</div>
|
|
|
|
<%= render "wiki_pages/posts", wiki_page: @wiki_page %>
|
|
<% end %>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Wiki - <%= @wiki_page.pretty_title %> - <%= Danbooru.config.app_name %>
|
|
<% end %>
|
|
|
|
<% content_for(:html_header) do %>
|
|
<meta name="description" content="<%= strip_dtext(@wiki_page.presenter.excerpt) %>"></meta>
|
|
<% end %>
|
|
|
|
<%= render "secondary_links" %>
|