forked from e621ng/e621ng
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
<% wiki_content = @wiki_redirect.presence || @wiki_page %>
|
|
<div id="c-wiki-pages">
|
|
<div id="a-show">
|
|
<%= render "sidebar" %>
|
|
|
|
<section id="content">
|
|
<h1 id="wiki-page-title">
|
|
|
|
<%= link_to wiki_content.pretty_title_with_category, posts_path(:tags => wiki_content.title), :class => "tag-type-#{wiki_content.category_id}" %>
|
|
|
|
<% if wiki_content.is_locked? %>
|
|
(locked)
|
|
<% end %>
|
|
|
|
<% if wiki_content.is_deleted? %>
|
|
(deleted)
|
|
<% end %>
|
|
</h1>
|
|
<% if @wiki_redirect.present? %>
|
|
<div class="wiki-page-redirect"><i class="fa-solid fa-turn-up fa-rotate-90"></i> <%= @wiki_page.title %></div>
|
|
<% end %>
|
|
|
|
<div id="wiki-page-body" class="dtext-container">
|
|
<%= format_text(wiki_content.body, allow_color: true, max_thumbs: 75) %>
|
|
|
|
<% if wiki_content.artist %>
|
|
<p><%= link_to "View artist", wiki_content.artist %></p>
|
|
<% end %>
|
|
|
|
<%= wiki_page_alias_and_implication_list(wiki_content) %>
|
|
</div>
|
|
|
|
<%= wiki_page_post_previews(wiki_content) %>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Wiki - <%= wiki_content.pretty_title %>
|
|
<% end %>
|
|
|
|
<%= render "secondary_links" %>
|