<%= follow_button_for(model, true) %> <% if amendmendment_creation_enabled? || visible_emendations.any? %>
<%= link_to resource_amendments_path, class: "column medium-4 button light secondary" do %> <%= visible_emendations.count %> <% end %> <%= link_to amend_resource_path, class: "column button hollow secondary button--sc", disabled: amend_button_disabled? do %> <%= t("amend", scope: "decidim.enhanced_textwork.participatory_text_paragraph.buttons") %> <% end %>
<% end %> <% if component_settings.comments_enabled? %>
<% if current_settings.comments_blocked? %> <%= content_tag :button, class: "column medium-4 button light secondary" do %> <%= icon "comment-square", class: "icon--small", aria_label: t("comments", scope: "decidim.enhanced_textwork.participatory_text_paragraph.buttons"), role: "img" %> <%= model.comments_count %> <% end %> <%= content_tag :button, t("comment", scope: "decidim.enhanced_textwork.participatory_text_paragraph.buttons"), class: "column button hollow secondary button--sc disabled", disabled: true, title: t("comment", scope: "decidim.enhanced_textwork.participatory_text_paragraph.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.enhanced_textwork.participatory_text_paragraph.buttons"), role: "img" %> <%= model.comments_count %> <% end %> <%= link_to resource_comments_path, class: "column button hollow secondary button--sc" do %> <%= t("comment", scope: "decidim.enhanced_textwork.participatory_text_paragraph.buttons") %> <% end %> <% end %>
<% end %>