Sha256: a1d60a3c4a9ac8517a42894cff0ff67130d42f482bc9e0f240acf84ae3f697b0

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

<%#
# Url Show Partial

This partial renders a URL address,
to be displayed on a resource's show page.

By default, the value is rendered as an `a` element.

## Local variables:

- `field`:
  An instance of [Administrate::Field::Url][1].
  A wrapper around the email pulled from the database.

[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Url
%>

<div class="bg-gray-50 p-3 rounded-md shadow-sm">
  <%= content_tag :a, href: field.data, **field.html_options do %>
    <%= field.data %>
  <% end %>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
administrate_tailwind_theme-0.0.6 app/views/fields/url/_show.html.erb
administrate_tailwind_theme-0.0.5 app/views/fields/url/_show.html.erb
administrate_tailwind_theme-0.0.4 app/views/fields/url/_show.html.erb
administrate_tailwind_theme-0.0.3 app/views/fields/url/_show.html.erb
administrate_tailwind_theme-0.0.2 app/views/fields/url/_show.html.erb
administrate_tailwind_theme-0.0.1 app/views/fields/url/_show.html.erb