This commit is contained in:
r888888888
2013-09-13 13:56:56 -07:00
parent d973b9e115
commit d2e2a90799

View File

@@ -1,4 +1,5 @@
<% cache("news-updates", :expires_in => 1.hour) do %> <% cache("news-updates", :expires_in => 1.hour) do %>
<% if NewsUpdate.recent.any? %>
<div id="news-updates" data-id="<%= NewsUpdate.recent.first.try(:id) %>" style="display: none;"> <div id="news-updates" data-id="<%= NewsUpdate.recent.first.try(:id) %>" style="display: none;">
<ul> <ul>
<% NewsUpdate.recent.each do |news_update| %> <% NewsUpdate.recent.each do |news_update| %>
@@ -9,3 +10,4 @@
<a href="#" id="close-news-ticker-link">close</a> <a href="#" id="close-news-ticker-link">close</a>
</div> </div>
<% end %> <% end %>
<% end %>