This commit is contained in:
r888888888
2013-05-07 15:52:14 -07:00
parent 4237215dad
commit c8f83f1442
2 changed files with 4 additions and 3 deletions

View File

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