houdini/app/views/nonprofits/_contact_item.html.erb

24 lines
659 B
Text
Raw Permalink Normal View History

2020-06-12 20:03:43 +00:00
<%- # 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 -->