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