hide certain elements by default to prevent flickering; fixes #1357

This commit is contained in:
Toks
2013-07-06 16:39:47 -04:00
parent 66dc220d44
commit 0fb44a801b
4 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<% cache("news-updates", :expires_in => 1.hour) do %>
<div id="news-updates" data-id="<%= NewsUpdate.recent.first.try(:id) %>">
<div id="news-updates" data-id="<%= NewsUpdate.recent.first.try(:id) %>" style="display:none">
<ul>
<% NewsUpdate.recent.each do |news_update| %>
<li><%= news_update.created_at.strftime("%b %d") %>: <%= news_update.message.html_safe %></li>