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

24 lines
671 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 profiles/_profile_tabs.html.erb -->
<%# needs a profile_id %>
<% url = '/profiles/' + profile_id.to_s %>
<div class='pageTabs'>
<a href='<%= url %>'
class="<%= active == :profile && 'is-active' %>">
Profile
</a>
<a href='<%= url %>/donations_history'
class="<%= active == :donations && 'is-active' %>">
Donations
</a>
<a href='<%= url %>/fundraisers'
class="<%= active == :fundraisers && 'is-active' %>">
Fundraisers
</a>
</div>
<!-- end partial profiles/_profile_tabs.html.erb -->