Sha256: 0a4e2de53e1ea4cb52fd74342bac3f7d7bbd263806c64091104a39f954c09e2a
Contents?: true
Size: 1.01 KB
Versions: 32
Compression:
Stored size: 1.01 KB
Contents
<%# FIXME: Why are all these different buttons and states necessary and sometimes coming from yielded content? %> <% unless already_like_voted?(image) %> <% if content_for? :like_button %> <%= yield :like_button %> <% else -%> <button href="<%= tally_like_vote_path(image.id) %>" method="post" type="submit" class="btn like-btn initial-state" data-image-id="<%= image.id %>"> <i class="icon-thumbs-up"></i> <%= t 'lentil.image_modal.like', :count => image.like_votes.size %></button> <% end -%> <button class="btn like-btn already-clicked secondary-state" rel="nofollow" title="Like this image" style="display:none;" data-image-id="<%= image.id %>"> <i class="icon-thumbs-up"></i> <%= t 'lentil.image_modal.like', :count => (image.like_votes.size + 1) %></button> <% else -%> <button class="btn already-clicked" disabled data-toggle="button" data-image-id="<%= image.id %>"> <i class="icon-thumbs-up"></i> <%= t 'lentil.image_modal.like', :count => image.like_votes.size %> </button> <% end -%>
Version data entries
32 entries across 32 versions & 1 rubygems