Sha256: 4a369633ec7e4878c0093d5da17502ee1e6cb7ada6a4c501b3a8a2d4a2d4f171

Contents?: true

Size: 463 Bytes

Versions: 7

Compression:

Stored size: 463 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
%>

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
administrate-1.0.0.beta3 app/views/fields/url/_show.html.erb
administrate-1.0.0.beta2 app/views/fields/url/_show.html.erb
administrate-1.0.0.beta1 app/views/fields/url/_show.html.erb
administrate-0.20.1 app/views/fields/url/_show.html.erb
administrate-0.20.0 app/views/fields/url/_show.html.erb
administrate-0.19.0 app/views/fields/url/_show.html.erb
administrate-0.18.0 app/views/fields/url/_show.html.erb