Sha256: 78b4671322b10c48ee8ab9d986ac198c72b739a94de6f67502ee88b5215aab76

Contents?: true

Size: 465 Bytes

Versions: 13

Compression:

Stored size: 465 Bytes

Contents

<%#
# Url Index Partial

This partial renders a URL address,
to be displayed on a resource's index 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
%>

<%= content_tag :a, href: field.data, **field.html_options do %>
  <%= field.data %>
<% end %>

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
administrate-1.0.0.beta3 app/views/fields/url/_index.html.erb
administrate_tailwind_theme-0.0.6 app/views/fields/url/_index.html.erb
administrate-1.0.0.beta2 app/views/fields/url/_index.html.erb
administrate-1.0.0.beta1 app/views/fields/url/_index.html.erb
administrate_tailwind_theme-0.0.5 app/views/fields/url/_index.html.erb
administrate_tailwind_theme-0.0.4 app/views/fields/url/_index.html.erb
administrate_tailwind_theme-0.0.3 app/views/fields/url/_index.html.erb
administrate_tailwind_theme-0.0.2 app/views/fields/url/_index.html.erb
administrate_tailwind_theme-0.0.1 app/views/fields/url/_index.html.erb
administrate-0.20.1 app/views/fields/url/_index.html.erb
administrate-0.20.0 app/views/fields/url/_index.html.erb
administrate-0.19.0 app/views/fields/url/_index.html.erb
administrate-0.18.0 app/views/fields/url/_index.html.erb