Sha256: af5c5e42be4f4b68df4e41832c18be2c99e20ceb72bac0c2ecfdb485bfb4b04c

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

<% if amendmendment_creation_enabled? || visible_emendations.any? %>
  <%= link_to amend_resource_path, 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 %>
    <%= link_to resource_comments_path, 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

3 entries across 3 versions & 1 rubygems

Version Path
decidim-proposals-0.28.0 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb
decidim-proposals-0.28.0.rc5 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb
decidim-proposals-0.28.0.rc4 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb