Just like we sometimes override options in the generic table actions component, we're going to do the same thing with the cards table actions.
23 lines
569 B
Plaintext
23 lines
569 B
Plaintext
<tr id="<%= dom_id(card) %>" class="homepage-card">
|
|
<td>
|
|
<%= card.label %><br>
|
|
<%= card.title %>
|
|
</td>
|
|
<td><%= card.description %></td>
|
|
<td>
|
|
<%= card.link_text %><br>
|
|
<%= card.link_url %>
|
|
</td>
|
|
|
|
<!-- remove conditional once specs have image validations -->
|
|
<td>
|
|
<% if card.image.present? %>
|
|
<%= link_to t("admin.shared.show_image"), card.image_url(:large),
|
|
title: card.image.title, target: "_blank" %>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<%= render Admin::TableActionsComponent.new(card, options) %>
|
|
</td>
|
|
</tr>
|