Skip to content

Commit

Permalink
Fixed issue with inaccessible print_members macro on artist page.
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlecat committed Mar 30, 2015
1 parent a56c1fc commit 7f92d11
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions critiquebrainz/frontend/templates/artist.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

{% block title %}{{ artist.name }} - CritiqueBrainz{% endblock %}

{% macro print_members(members) %}
{% for member in members %}
<li>
<a href="{{ url_for('artist.entity', id=member.artist.id) }}"
{% if member.begin %}title="{{ _('Member since %(date)s', date=member.begin) }}"{% endif %}>
{{ member.artist.name }}
</a>
{% if member.end %}
<span class="text-muted">({{ member.begin }} - {{ member.end }})</span>
{% elif member.artist.disambiguation %}
<span class="text-muted">({{ member.artist.disambiguation }})</span>
{% endif %}
</li>
{% endfor %}
{% endmacro %}

{% block content %}
<h2>
{{ artist.name }}
Expand Down Expand Up @@ -91,21 +107,6 @@ <h4>{{ _('Artist information') }}</h4>
{% endif %}
</b>
<ul class="list-unstyled">
{% macro print_members(members) -%}
{% for member in members %}
<li>
<a href="{{ url_for('artist.entity', id=member.artist.id) }}"
{% if member.begin %}title="{{ _('Member since %(date)s', date=member.begin) }}"{% endif %}>
{{ member.artist.name }}
</a>
{% if member.end %}
<span class="text-muted">({{ member.begin }} - {{ member.end }})</span>
{% elif member.artist.disambiguation %}
<span class="text-muted">({{ member.artist.disambiguation }})</span>
{% endif %}
</li>
{% endfor %}
{%- endmacro %}
{{ print_members(artist.current_members[:15]) }}
{% if artist.current_members | length > 15 %}
<div id="more-members" class="collapse">
Expand Down

0 comments on commit 7f92d11

Please sign in to comment.