Sha256: affdf987985431e302e49c04a611c319a882b68424b360617972b12a8f4560f8

Contents?: true

Size: 796 Bytes

Versions: 7

Compression:

Stored size: 796 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' },
                     aria: { hidden: true }) 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.0.1 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.0.0 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.0.0.beta6 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.0.0.beta4 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.0.0.beta3 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.0.0.beta2 app/components/arclight/index_metadata_field_component.html.erb
arclight-1.0.0.beta1 app/components/arclight/index_metadata_field_component.html.erb