Sha256: 982c9a3192238c1ba9571d262f842af822f5dd756713b300ea4c7a98154ea7fa

Contents?: true

Size: 1.77 KB

Versions: 31

Compression:

Stored size: 1.77 KB

Contents

<div class="comment__votes">
  <% if user_signed_in? %>
    <%= vote_button_to decidim_comments.comment_votes_path(model, weight: 1), remote: true, disabled: voted_down?, class: votes_up_classes, title: t("decidim.components.up_vote_button.text") do %>
      <span class="show-for-sr"><%= t("decidim.components.up_vote_button.text") %></span>
      <%= icon "chevron-top", class: "icon--small", role: "img", "aria-hidden": true %>
      <span class="comment__votes--count"><%= up_votes_count %></span>
    <% end %>
    <%= vote_button_to decidim_comments.comment_votes_path(model, weight: -1), remote: true, disabled: voted_up?, class: votes_down_classes, title: t("decidim.components.down_vote_button.text") do %>
      <span class="show-for-sr"><%= t("decidim.components.down_vote_button.text") %></span>
      <%= icon "chevron-bottom", class: "icon--small", role: "img", "aria-hidden": true %>
      <span class="comment__votes--count"><%= down_votes_count %></span>
    <% end %>
  <% else %>
    <button class="<%= votes_up_classes %> " title="<%= t("decidim.components.up_vote_button.text") %>" data-open="loginModal">
      <span class="show-for-sr"><%= t("decidim.components.up_vote_button.text") %></span>
      <%= icon "chevron-top", class: "icon--small", role: "img", "aria-hidden": true %>
      <span class="comment__votes--count"><%= up_votes_count %></span>
    </button>
    <button class="<%= votes_down_classes %> " title="<%= t("decidim.components.down_vote_button.text") %>" data-open="loginModal">
      <span class="show-for-sr"><%= t("decidim.components.down_vote_button.text") %></span>
      <%= icon "chevron-bottom", class: "icon--small", role: "img", "aria-hidden": true %>
      <span class="comment__votes--count"><%= down_votes_count %></span>
    </button>
  <% end %>
</div>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-comments-0.27.9 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.27.8 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.27.7 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.27.6 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.26.10 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.26.9 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.27.5 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.26.8 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.27.4 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.27.3 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.26.7 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.26.5 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.27.2 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.27.1 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.26.4 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.27.0 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.26.3 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.27.0.rc2 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.27.0.rc1 app/cells/decidim/comments/comment/votes.erb
decidim-comments-0.26.2 app/cells/decidim/comments/comment/votes.erb