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

17 lines
651 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 -%>
<a class="npoCard" href="<%= npo_url %>"
style="background-image: url('<%= asset_path "photos/square-#{npo_shorthand}-275.jpg" %>')"
target="_blank" title="See <%= title %>'s profile page">
<table>
<tr>
<td class='npoCard-logoTd'>
<img src="<%= asset_path "logos/logo-#{npo_shorthand}-100.png" %>">
</td>
<td class='u-paddingRight--5'>
<p class='u-marginBottom--5'><%= title %></p>
<p class='u-margin--0'><small><%= address %></small></p>
</td>
</tr>
</table>
</a>