fixes #1536
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<% cache("news-updates", :expires_in => 1.hour) do %>
|
||||
<div id="news-updates" data-updated-at="<%= NewsUpdate.recent.first.try(:created_at).try(:strftime, "%Y-%m-%d") %>">
|
||||
<div id="news-updates" data-id="<%= NewsUpdate.recent.first.try(:id) %>">
|
||||
<ul>
|
||||
<% NewsUpdate.recent.each do |news_update| %>
|
||||
<li><%= news_update.created_at.strftime("%b %d") %>: <%= news_update.message.html_safe %></li>
|
||||
|
||||
Reference in New Issue
Block a user