hide certain elements by default to prevent flickering; fixes #1357
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<% cache("news-updates", :expires_in => 1.hour) do %>
|
<% 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>
|
<ul>
|
||||||
<% NewsUpdate.recent.each do |news_update| %>
|
<% NewsUpdate.recent.each do |news_update| %>
|
||||||
<li><%= news_update.created_at.strftime("%b %d") %>: <%= news_update.message.html_safe %></li>
|
<li><%= news_update.created_at.strftime("%b %d") %>: <%= news_update.message.html_safe %></li>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<section id="blacklist-box">
|
<section id="blacklist-box" style="display:none">
|
||||||
<h1>Blacklisted</h1>
|
<h1>Blacklisted</h1>
|
||||||
<ul id="blacklist-list">
|
<ul id="blacklist-list">
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -23,5 +23,5 @@
|
|||||||
</select>
|
</select>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<input id="tag-script-field" placeholder="Enter tag script"></input>
|
<input id="tag-script-field" placeholder="Enter tag script" style="display:none"></input>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
<li>Favorites: <span id="favcount-for-post-<%= post.id %>"><%= post.fav_count %></span>
|
<li>Favorites: <span id="favcount-for-post-<%= post.id %>"><%= post.fav_count %></span>
|
||||||
<% if CurrentUser.is_gold? %>
|
<% if CurrentUser.is_gold? %>
|
||||||
<%= link_to "»".html_safe, "#", :id => "show-favlist-link" %>
|
<%= link_to "»".html_safe, "#", :id => "show-favlist-link" %>
|
||||||
<%= link_to "«".html_safe, "#", :id => "hide-favlist-link" %>
|
<%= link_to "«".html_safe, "#", :id => "hide-favlist-link", :style => "display: none" %>
|
||||||
<div id="favlist"><%= post_favlist(post) %></div>
|
<div id="favlist" style="display:none"><%= post_favlist(post) %></div>
|
||||||
<% end %></li>
|
<% end %></li>
|
||||||
<li>
|
<li>
|
||||||
Status:
|
Status:
|
||||||
|
|||||||
Reference in New Issue
Block a user