fixes #952
This commit is contained in:
@@ -4,4 +4,5 @@
|
||||
$("a#add-to-favorites").hide();
|
||||
$("a#remove-from-favorites").show();
|
||||
$("#score-for-post-<%= @post.id %>").html(<%= @post.score %>);
|
||||
$("#favcount-for-post-<%= @post.id %>").html(<%= @post.fav_count %>);
|
||||
<% end %>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$("a#add-to-favorites").show();
|
||||
$("a#remove-from-favorites").hide();
|
||||
$("#score-for-post-<%= @post.id %>").html(<%= @post.score %>);
|
||||
$("#favcount-for-post-<%= @post.id %>").html(<%= @post.fav_count %>);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<li>Source: <%= post_source_tag(post) %></li>
|
||||
<li>Rating: <%= post.pretty_rating %></li>
|
||||
<li>Score: <span id="score-for-post-<%= post.id %>"><%= post.score %></span> <% if CurrentUser.is_privileged? %>(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 %>)<% end %></li>
|
||||
<li>Favorites: <%= post.fav_count %></li>
|
||||
<li>Favorites: <span id="favcount-for-post-<%= post.id %>"><%= post.fav_count %></span></li>
|
||||
<li>
|
||||
Status:
|
||||
<% if post.is_pending? %>
|
||||
|
||||
Reference in New Issue
Block a user