<%= t(".title") %> <% if allowed_to? :create, :partner %> <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.partner.name", scope: "decidim.admin")), new_conference_partner_path(current_conference), class: "button tiny button--title 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.attached_uploader(:logo).path %> <%= image_tag(partner.attached_uploader(:logo).path(variant: :thumb)) %> <% end %> <% if allowed_to? :update, :partner, partner: partner %> <%= icon_link_to "pencil", 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 "circle-x", 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 %>
<%= paginate @partners, theme: "decidim" %>