views: refactor page titles.
Refactor `page_title` helper to automatically include site name.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
<% page_title "Forum" %>
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
<div id="c-forum-topics">
|
||||
<div id="a-index">
|
||||
<h1>Forum</h1>
|
||||
@@ -17,10 +20,4 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
Forum - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
|
||||
<% content_for(:html_header, auto_discovery_link_tag(:atom, forum_topics_url(:atom), title: "Forum Topics")) %>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<% page_title @forum_topic.title %>
|
||||
|
||||
<div id="c-forum-topics">
|
||||
<div id="a-show">
|
||||
<h1>
|
||||
@@ -38,10 +40,6 @@
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
<%= @forum_topic.title %> - Forum - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
|
||||
<% content_for(:html_header) do %>
|
||||
<%= auto_discovery_link_tag(:atom, {format: :atom}, {title: @forum_topic.title}) %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user