<%= 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 %>
|
<% end %>