Sha256: da05f0c701a78bf4507730912ac2a74d89946702546100d1b700c256b6775d88
Contents?: true
Size: 1.37 KB
Versions: 4
Compression:
Stored size: 1.37 KB
Contents
<% fully_endorsed= fully_endorsed?(@proposal, current_user) %> <div class="row collapse buttons__row"> <% if endorsements_enabled? %> <div class="column small-9 collapse"> <div class="button-group button-group--collapse button--nomargin small"> <%= render partial: "endorsements_count", locals: { proposal: @proposal, fully_endorsed: fully_endorsed } %> <% if current_settings.endorsements_blocked? || !current_component.participatory_space.can_participate?(current_user) %> <%= content_tag :span, t(".endorse"), class: "card__button button #{endorsement_button_classes(false)} disabled", disabled: true, title: t(".endorse") %> <% elsif current_user %> <%= render partial: "endorsement_identities_cabin", locals: { proposal: @proposal, fully_endorsed: fully_endorsed } %> <% else %> <%= action_authorized_button_to :endorse, t(".endorse"), "", class: "card__button button #{endorsement_button_classes(false)} secondary" %> <% end %> </div> </div> <% end %> <div class="column collapse <%= endorsements_enabled? ? "small-3" : "" %>"> <%= link_to "#comments", class: "button small compact hollow secondary button--nomargin expanded" do %> <%= icon "comment-square", class: "icon--small", aria_label: t(".comments"), role: "img" %> <%= @proposal.comments.count %> <% end %> </div> </div>
Version data entries
4 entries across 4 versions & 1 rubygems