-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
"place", | ||
"release_group", | ||
"artist", | ||
"label", | ||
] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
{% extends 'base.html' %} | ||
|
||
{# {% block title %}{{ event.name }} - CritiqueBrainz{% endblock %} #} | ||
|
||
{% block content %} | ||
<div class="clearfix"> | ||
<h2 class="pull-left"> | ||
{# {{ event.name }} #} | ||
</h2> | ||
|
||
{% if not my_review %} | ||
<a id="write-review" href="{{ url_for('review.create', label=id) }}" | ||
role="button" class="btn btn-success pull-right"> | ||
<span class="glyphicon glyphicon-asterisk"></span> {{ _('Write a review') }} | ||
</a> | ||
{% else %} | ||
<a id="edit-review" href="{{ url_for('review.edit', id=my_review.id) }}" | ||
role="button" class="btn btn-primary pull-right"> | ||
<span class="glyphicon glyphicon-edit"></span> {{ _('Edit my review') }} | ||
</a> | ||
{% endif %} | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
critiquebrainz/frontend/templates/review/entity/label.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% extends 'review/entity/base.html' %} | ||
|
||
{% set label = review.entity_id | entity_details(type='label') %} | ||
|
||
{% block title %} | ||
{% set label_title = label.name | default(_('[Unknown label]')) %} | ||
{{ _('Review of "%(label)s" by %(user)s', label=label_title, user=review.user.display_name) }} - CritiqueBrainz | ||
{% endblock %} | ||
|
||
{% block entity_title %} | ||
<h2 id="title"> | ||
{% if label %} | ||
{% set label_name = '<a href="%s">' | safe % url_for('label.entity', id=review.entity_id) ~ label.name ~ '</a>'|safe %} | ||
{% else %} | ||
{% set label_name = _('[Unknown label]') %} | ||
{% endif %} | ||
|
||
{{ _('%(label)s', label=label_name) }} | ||
|
||
{% if label['life-span'] %} | ||
<small>{{ label['life-span']['begin'][:4] }}</small> | ||
{% endif %} | ||
</h2> | ||
{% endblock %} |
21 changes: 21 additions & 0 deletions
21
critiquebrainz/frontend/templates/review/modify/label.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% if entity is not defined %} | ||
{% set entity = review.entity_id | entity_details(type=entity_type) %} | ||
{% endif %} | ||
<div class="col-md-12"> | ||
<dl class="dl-horizontal"> | ||
<dt>{{ _('Label') }}</dt> | ||
<dd> | ||
{{ entity['name'] | default(_('[Unknown label]')) }} | ||
{% if entity['life-span'] %} | ||
<span class="text-muted">({{ entity['life-span']['begin'] }} - {{ entity['life-span']['end'] }})</span> | ||
{% endif %} | ||
</dd> | ||
<dt>{{ _('Type') }}</dt> | ||
<dd>{{ entity['type'] or '-' }}</dd> | ||
<dt>{{ _('Country') }}</dt> | ||
<dd>{{ entity['area'] or '-' }}</dd> | ||
{% block more_info %} | ||
{# Information like creation date, votes etc. #} | ||
{% endblock %} | ||
</dl> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters