Make show/hide favorite list links larger

Just the small arrows are difficult to click by themselves. With the
text "Show/Hide" it should be easier.
This commit is contained in:
Toks
2013-10-18 13:38:30 -04:00
parent 7314a843fe
commit edd97f5958

View File

@@ -16,8 +16,8 @@
<li>Score: <span id="score-for-post-<%= post.id %>"><%= post.score %></span> <% if CurrentUser.is_gold? %>(<span id="vote-links-for-post-<%= post.id %>">vote <%= link_to "up", post_votes_path(:post_id => post.id, :score => "up"), :remote => true, :method => :post %>/<%= link_to "down", post_votes_path(:post_id => post.id, :score => "down"), :remote => true, :method => :post %></span><%= link_to "unvote", unvote_post_path(post), :remote => true, :method => :put, :id => "unvote-link-for-post-#{post.id}", :class => "unvote-post-link" %>)<% end %></li>
<li>Favorites: <span id="favcount-for-post-<%= post.id %>"><%= post.fav_count %></span>
<% if CurrentUser.is_gold? %>
<%= link_to "&raquo;".html_safe, "#", :id => "show-favlist-link" %>
<%= link_to "&laquo;".html_safe, "#", :id => "hide-favlist-link", :style => "display: none;" %>
<%= link_to "Show &raquo;".html_safe, "#", :id => "show-favlist-link" %>
<%= link_to "&laquo; Hide".html_safe, "#", :id => "hide-favlist-link", :style => "display: none;" %>
<div id="favlist" style="display: none;"><%= post_favlist(post) %></div>
<% end %></li>
<li>