houdini/app/views/nonprofits/_contact_item.html.erb
2020-06-15 10:26:57 -05:00

23 lines
659 B
Text

<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
<!-- partial start: nonprofits/_contact_item -->
<% link = false if link.nil? %>
<% mail_to = false if mail_to.nil? %>
<% if data && data != '' %>
<tr title='<%= title %>'>
<td><i class='strong fa <%= icon %>' if-branded='color, base'></i></td>
<td>
<% if link %>
<a href="<%= add_http data %>" target="_blank">
<%= data %>
</a>
<% elsif mail_to %>
<%= mail_to %>
<% else %>
<%= data %>
<% end %>
</td>
</tr>
<% end %>
<!-- partial end: nonprofits/_contact_item -->