Sha256: 423eafad25e006dde937fe09ec72d929e14b5e51183a974f98b79d5feba152f3

Contents?: true

Size: 1.17 KB

Versions: 6

Compression:

Stored size: 1.17 KB

Contents

<% if amendment_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

6 entries across 6 versions & 1 rubygems

Version Path
decidim-proposals-0.29.1 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb
decidim-proposals-0.29.0 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb
decidim-proposals-0.29.0.rc4 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb
decidim-proposals-0.29.0.rc3 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb
decidim-proposals-0.29.0.rc2 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb
decidim-proposals-0.29.0.rc1 app/cells/decidim/proposals/participatory_text_proposal/buttons.erb