<% add_decidim_page_title(t(".title")) %>

<%= t(".title") %> <% if allowed_to? :create, :partner %> <%= link_to t("actions.new_partner", scope: "decidim.admin"), new_conference_partner_path(current_conference), class: "button button__sm button__secondary new" %> <% end %>

<% @partners.each do |partner| %> <% end %>
<%= t("models.partner.fields.name", scope: "decidim.admin") %> <%= t("models.partner.fields.partner_type", scope: "decidim.admin") %> <%= t("models.partner.fields.link", scope: "decidim.admin") %> <%= t("models.partner.fields.logo", scope: "decidim.admin") %>
<%= partner.name %> <%= t("#{partner.partner_type}", scope: "decidim.admin.models.partner.types") %> <% if partner.link.presence %> <%= link_to partner.link, partner.link, target: "_blank" %> <% end %> <% if partner.logo.attached? %> <%= image_tag(partner.attached_uploader(:logo).variant_url(:thumb)) %> <% end %> <% if allowed_to? :update, :partner, partner: partner %> <%= icon_link_to "pencil-line", edit_conference_partner_path(current_conference, partner), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %> <% end %> <% if allowed_to? :destroy, :partner, partner: partner %> <%= icon_link_to "delete-bin-line", conference_partner_path(current_conference, partner), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %>
<%= decidim_paginate @partners %>