views: inline partials into default layout.
Inline the page footer, news updates, the ban notice, and the user verification notice into the default layout. This is a micro optimization to reduce the number of spans reported to the APM.
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
<footer id="page-footer" class="text-sm flex-initial">
|
||||
<span class="page-footer-app-name"><%= Danbooru.config.app_name %></span>
|
||||
/ <%= link_to "Rules", terms_of_service_path %>
|
||||
/ <%= link_to "Contact", contact_path %>
|
||||
/
|
||||
<span class="social-icons">
|
||||
<% if Danbooru.config.source_code_url.present? %>
|
||||
<%= link_to Danbooru.config.source_code_url, title: "Running commit: #{Rails.application.config.x.git_hash&.first(9)}", class: "social-icon" do %>
|
||||
<%= github_icon %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if Danbooru.config.twitter_username.present? %>
|
||||
<%= link_to "https://twitter.com/#{Danbooru.config.twitter_username}", class: "social-icon" do %>
|
||||
<%= twitter_icon %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if Danbooru.config.discord_server_url.present? %>
|
||||
<%= link_to Danbooru.config.discord_server_url, class: "social-icon" do %>
|
||||
<%= discord_icon %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</span>
|
||||
</footer>
|
||||
Reference in New Issue
Block a user