Sha256: 987e6093107d79b139ef427300b32f0f0009158b5de18e9bc4c78c7cb29c975c

Contents?: true

Size: 444 Bytes

Versions: 10

Compression:

Stored size: 444 Bytes

Contents

<%#
# Url Show Partial

This partial renders an email 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 do %>
  <%= field.data %>
<% end %>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
administrate-0.15.0 app/views/fields/url/_show.html.erb
administrate-0.14.0 app/views/fields/url/_show.html.erb
viniBaxterDesk-22.0.0 app/views/fields/url/_show.html.erb
viniBaxterDesk-0.21.0 app/views/fields/url/_show.html.erb
viniBaxterDesk-0.20.0 app/views/fields/url/_show.html.erb
viniBaxterDesk-0.14.0 app/views/fields/url/_show.html.erb
viniBaxterDesk-0.13.2 app/views/fields/url/_show.html.erb
viniBaxterDesk-0.13.1 app/views/fields/url/_show.html.erb
administrate-0.13.0 app/views/fields/url/_show.html.erb
administrate-0.12.0 app/views/fields/url/_show.html.erb