Files
danbooru/app/views/news_updates/_listing.html.erb
evazion acbbb7a520 news updates: remove the timestamp; change close icon.
Remove the timestamp because it takes up too much space and isn't always needed.
2021-10-27 04:25:22 -05:00

12 lines
362 B
Plaintext

<% 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 %>