Sha256: 092f91b2133fa8620d5e03b46292e1df577a8eff606964f8b3fee89e49f80cf1
Contents?: true
Size: 1.66 KB
Versions: 51
Compression:
Stored size: 1.66 KB
Contents
<% search = f.object %> <%= render layout: 'spotlight/shared/dd3_item', locals: { id: search.id.to_s, field: f, dd3_content_classes: "search" , enabled_method: :published, label_method: :title, label: search.title } do |_, section| %> <% case section when nil %> <div class="d-flex flex-grow-1"> <div> <%= f.check_box :published, inline: true, hide_label: true %> </div> <div class="pic"> <%= image_tag(search.thumbnail_image_url || 'spotlight/default_browse_thumbnail.jpg', class: 'img-thumbnail') %> </div> <div class="flex-grow-1 mx-2 main"> <h4 class="card-title h6 mb-0"> <%= search.title %> <% if search.subtitle.present? %><span class="subtitle"><%= search.subtitle %></span><% end %> </h4> <div class="card-text"> <div class="count"><%= t :'spotlight.searches.search.item_count', count: search.count %></div> <div class="actions"><%= exhibit_view_link(search) %> • <%= exhibit_edit_link(search) %> • <%= exhibit_delete_link(search) %></div> <%= f.hidden_field :id %> <%= f.hidden_field :weight, data: {property: "weight"} %> </div> </div> <% when :additional_options %> <div class="flex-grow-1 mx-2 description"> <div class="card-text"> <% if search.long_description.present? %> <%= truncate(search.long_description, length: 89) %> <% else %> <span class="missing-description"><%= t(:'spotlight.searches.search.missing_description_html', link: (link_to action_label(search, :edit_long), [spotlight, :edit, search.exhibit, search])) %></span> <% end %> </div> </div> <% else %> <% end %> <% end %>
Version data entries
51 entries across 51 versions & 1 rubygems