Sha256: edde676b40429c0ad2a70f7c498943f910b0decca4ee9e2e4fe9e9083d77126c

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 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? %>
          <%= 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: "Comentarios", role: "img" %> <%= @proposal.comments.count %>
    <% end %>
  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-proposals-0.11.2 app/views/decidim/proposals/proposals/_endorsements_card_row.html.erb
decidim-proposals-0.11.1 app/views/decidim/proposals/proposals/_endorsements_card_row.html.erb
decidim-proposals-0.11.0.pre1 app/views/decidim/proposals/proposals/_endorsements_card_row.html.erb