Skip to content

Commit

Permalink
Use newlines when reporting multiple artists; this looks a lot better…
Browse files Browse the repository at this point in the history
…, IMO.
  • Loading branch information
apocalyptech committed Dec 29, 2016
1 parent 070f99e commit 85013cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
the download, rather than only having the direct link.
- Override table footers to always include item counts, as was
present in ``django-tables2`` 1.2.6 but patched out in 1.2.7.
- Use newlines when reporting multiple artists in tables, to keep
the table width down as much as possible.

1.0.3 (2016-11-22)
------------------
Expand Down
2 changes: 1 addition & 1 deletion exordium/templates/exordium/album_artist_column.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{# vim: set syntax=htmldjango: #}
<a href="{% url 'exordium:artist' record.artist.normname %}">{{ record.artist }}</a>{% for secondary in record.get_secondary_artists_list %},
<a href="{% url 'exordium:artist' record.artist.normname %}">{{ record.artist }}</a>{% for secondary in record.get_secondary_artists_list %},<br />
<a href="{% url 'exordium:artist' secondary.normname %}">{{ secondary }}</a>{% endfor %}
6 changes: 3 additions & 3 deletions exordium/templates/exordium/song_artist_column.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{# vim: set syntax=htmldjango: #}
<a href="{% url 'exordium:artist' record.artist.normname %}">{{ record.artist }}</a>{% if record.group and record.num_groups != 1 %},
Ensemble: <a href="{% url 'exordium:artist' record.group.normname %}">{{ record.group }}</a>{% endif %}{% if record.conductor and record.num_conductors != 1%},
Conductor: <a href="{% url 'exordium:artist' record.conductor.normname %}">{{ record.conductor }}</a>{% endif %}{% if record.composer and record.num_composers != 1 %},
<a href="{% url 'exordium:artist' record.artist.normname %}">{{ record.artist }}</a>{% if record.group and record.num_groups != 1 %}<br />
Ensemble: <a href="{% url 'exordium:artist' record.group.normname %}">{{ record.group }}</a>{% endif %}{% if record.conductor and record.num_conductors != 1%}<br />
Conductor: <a href="{% url 'exordium:artist' record.conductor.normname %}">{{ record.conductor }}</a>{% endif %}{% if record.composer and record.num_composers != 1 %}<br />
Composer: <a href="{% url 'exordium:artist' record.composer.normname %}">{{ record.composer }}</a>{% endif %}

0 comments on commit 85013cc

Please sign in to comment.