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:
evazion
2022-04-17 03:55:50 -05:00
parent d19e307e69
commit 604b6ce547
6 changed files with 78 additions and 80 deletions

View File

@@ -1,11 +0,0 @@
<% if NewsUpdate.recent.present? %>
<div id="news-updates" data-id="<%= NewsUpdate.recent.first.try(:id) %>" style="display: none;">
<ul>
<% NewsUpdate.recent.each do |news_update| %>
<li><%= news_update.message.html_safe %></li>
<% end %>
</ul>
<a href="#" id="close-news-ticker-link"><%= close_icon %></a>
</div>
<% end %>