Sha256: bb6d10f8dbf535d1fa0aed40aba947aed98613a6718bf1c8f0936d41c37988fc

Contents?: true

Size: 637 Bytes

Versions: 9

Compression:

Stored size: 637 Bytes

Contents

<div class="vote_wrapper">
  <%= link_to_vote(:up, resource) %>
  <div class="count"><%= resource.plusminus %></div>
  <%= link_to_vote(:down, resource) %>
</div>

<% unless user_signed_in? %>
  <div class="hidden flash" id="flash_notice">
    You must <%= link_to 'login', main_app_login_path %> or <%= link_to 'signup', main_app_signup_path %> in order to vote
    <%= link_to 'close', '#', class: 'close' %>
  </div>
<% end %>

<% if can? :manage, resource %>
  <div class="hidden flash" id="flash_notice">
    You cannot vote on your own <%= class_name(resource) %>
    <%= link_to 'close', '#', class: 'close' %>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rostra-0.0.12 app/views/rostra/shared/_votes.html.erb
rostra-0.0.11 app/views/rostra/shared/_votes.html.erb
rostra-0.0.10 app/views/rostra/shared/_votes.html.erb
rostra-0.0.9 app/views/rostra/shared/_votes.html.erb
rostra-0.0.8 app/views/rostra/shared/_votes.html.erb
rostra-0.0.7 app/views/rostra/shared/_votes.html.erb
rostra-0.0.6 app/views/rostra/shared/_votes.html.erb
rostra-0.0.5 app/views/rostra/shared/_votes.html.erb
rostra-0.0.4 app/views/rostra/shared/_votes.html.erb