% add_decidim_page_title(t(".title")) %>
<%= 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-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 %> |