<%= follow_button_for(model, true) %> <% if amendments_enabled? %>
<%= link_to resource_amendments_path, class: "column medium-4 button light secondary" do %> <%= model.emendations.count %> <% end %> <%= link_to amend_resource_path, class: "column button hollow secondary button--sc" do %> <%= t("amend", scope: "decidim.proposals.participatory_text_proposal.buttons") %> <% end %>
<% end %> <% if component_settings.comments_enabled? %>
<% if current_settings.comments_blocked? %> <%= content_tag :button, class: "column medium-4 button light secondary", title: t("endorse", scope: "decidim.proposals.participatory_text_proposal.buttons") do %> <%= icon "comment-square", class: "icon--small", aria_label: t("comments", scope: "decidim.proposals.participatory_text_proposal.buttons"), role: "img" %> <%= model.comments.count %> <% end %> <%= content_tag :button, t("comment", scope: "decidim.proposals.participatory_text_proposal.buttons"), class: "column button hollow secondary button--sc disabled", disabled: true, title: t("comment", scope: "decidim.proposals.participatory_text_proposal.buttons") %> <% else %> <%= link_to resource_comments_path, class: "column medium-4 button light secondary" do %> <%= icon "comment-square", class: "icon--small", aria_label: t("comments", scope: "decidim.proposals.participatory_text_proposal.buttons"), role: "img" %> <%= model.comments.count %> <% end %> <%= link_to resource_comments_path, class: "column button hollow secondary button--sc" do %> <%= t("comment", scope: "decidim.proposals.participatory_text_proposal.buttons") %> <% end %> <% end %>
<% end %>