Sha256: 65c9617fa81e6801ed4af97e000f806223bf2c95a4a93189237f243bbe570536

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

<% if amendmendment_creation_enabled? || visible_emendations.any? %>
  <%= action_authorized_link_to :amend, amend_resource_path, resource: model, disabled: amend_button_disabled?, class: "proposal-participatory__button" do %>
    <%= icon "chat-1-line" %>
    <span><%= t("amend", scope: "decidim.proposals.participatory_text_proposal.buttons") %></span>
    <div class="label"><%= visible_emendations.count %></div>
  <% end %>
<% end %>

<% if component_settings.comments_enabled? %>
  <% if current_settings.comments_blocked? %>
    <%= content_tag :button, disabled: true, class: "proposal-participatory__button" do %>
      <%= icon "chat-1-line" %>
      <span><%= t("comment", scope: "decidim.proposals.participatory_text_proposal.buttons") %></span>
      <div class="label"><%= model.comments_count %></div>
    <% end %>
  <% else %>
    <%= action_authorized_link_to :comment, resource_comments_path, resource: model, class: "proposal-participatory__button" do %>
      <%= icon "chat-1-line" %>
      <span><%= t("comment", scope: "decidim.proposals.participatory_text_proposal.buttons") %></span>
      <div class="label"><%= model.comments_count %></div>
    <% end %>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-proposals-0.28.4 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb
decidim-proposals-0.28.3 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb
decidim-proposals-0.28.2 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb
decidim-proposals-0.28.1 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb