houdini/app/views/components/_npo_card.html.erb

15 lines
497 B
Text

<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>