Sha256: ba7724e8593d92294d15d384e5324849b75c27d0ebfc9ff6da0c91b898b95b0a

Contents?: true

Size: 751 Bytes

Versions: 7

Compression:

Stored size: 751 Bytes

Contents

<div class="row">
  <%= tag.dt @field.label, class: 'visually-hidden' %>
  <% if truncate? %>
    <%= tag.dd(class: @classes + ['truncator'], data: { controller: 'arclight-truncate' }) do %>
      <%= tag.div @field.render, class: 'content', data: { arclight_truncate_target: 'content' } %>
      <%= button_tag(type: :button, class: 'btn btn-sm btn-link px-0',
                     data: { action: 'click->arclight-truncate#trigger' }) do %>
        <%= tag.span t('arclight.truncation.view_more'), class: 'view-more' %>
        <%= tag.span t('arclight.truncation.view_less'), class: 'view-less' %>
        <%= tag.span(class: 'icon') %>
      <% end %>
    <% end %>
  <% else %>
    <%= tag.dd @field.render, class: @classes %>
  <% end %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arclight-1.4.0 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.3.0 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.2.0 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.1.3 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.1.2 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.1.1 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.1.0 app/components/arclight/index_metadata_field_component.html.erb