{% extends 'base.html' %} {% from 'macros.html' import show_avg_rating, entity_rate_form, show_review_buttons with context %} {% from 'common.html' import rating_script with context %} {% block title %}{{ author.name }} - CritiqueBrainz{% endblock %} {% block content %}

{{ author.name }} {% if author.disambiguation is defined and author.disambiguation %} ({{ author.disambiguation }}) {% endif %}

{{ show_review_buttons(id, my_review, "bb_author") }}
{{ entity_rate_form('bb_author', 'author') }}

{{ _('Reviews') }}

{% if not reviews %}

{{ _('No reviews found') }}

{% else %} {% for review in reviews %} {% endfor %}
{{ _('Published on') }} {{ _('Votes (+/-)') }}
{{ _('by %(reviewer)s', reviewer=review.user.display_name) }} {{ review.published_on | date }} {{ review.votes_positive_count }}/{{ review.votes_negative_count }}
{% endif %} {% if artist_info is defined and artist_info %} {% for artist in artist_info %}

{{ _('This entity is also in the MusicBrainz Database as ') }} {{ artist.name }}.

{% if artist.reviews_count %}

{{ _('Reviews') }}

{% for review in artist.reviews %} {% endfor %}
{{ _('Published on') }} {{ _('Votes (+/-)') }}
{{ _('by %(reviewer)s', reviewer=review.user.display_name) }} {{ review.published_on | date }} {{ review.votes_positive_count }}/{{ review.votes_negative_count }}
{% endif %} {% endfor %} {% endif %}

{{ _('Literary Works') }}

{% if literary_works is defined and literary_works %} {% for literary_work in literary_works.values() %} {% endfor %}
{{ _('Name') }} {{ _('Language') }}
{{ literary_work.name }} {% if literary_work['languages'] is defined and literary_work['languages'] %} {% if literary_work["languages"]|length > 1 %} {{ literary_work['languages'][0] }} + {{ literary_work["languages"]|length - 1 }} more {% else %} {{ literary_work['languages'][0] }} {% endif %} {% else %} - {% endif %}
{% else %}

{{ _('No works found') }}

{% endif %}

{{ _('Author information') }}

{% if author['author_type'] is defined and author['author_type'] %}

{{ author.author_type }}

{% endif %} {% if avg_rating %}
{{ show_avg_rating(avg_rating.rating, avg_rating.count) }}
{% endif %} {% if begin_date is defined and begin_date %} {% if author['author_type'] and author['author_type'] == 'Group' %} {{ _('Date Founded') }} {% else %} {{ _('Date of Birth') }} {% endif %}

{{ begin_date | date }}

{% endif %} {% if begin_area is defined and begin_area %} {% if author['author_type'] and author['author_type'] == 'Group' %} {{ _('Place Founded') }} {% else %} {{ _('Place of Birth') }} {% endif %}

{{ begin_area['name'] }}

{% endif %} {% if author.ended and end_date is defined and end_date %} {% if author['author_type'] and author['author_type'] == 'Group' %} {{ _('Date of Dissolution') }} {% else %} {{ _('Date of Death') }} {% endif %}

{{ end_date | date }}

{% endif %} {% if end_area is defined and end_area %} {% if author['author_type'] and author['author_type'] == 'Group' %} {{ _('Place of Dissolution') }} {% else %} {{ _('Place of Death') }} {% endif %}

{{ end_area['name'] }}

{% endif %} {% if author['identifiers'] is defined and author['identifiers'] %} {{ _('External links') }} {% endif %}
{% endblock %} {% block scripts %} {{ rating_script }} {% endblock %}