Skip to content

Commit

Permalink
Fix template for unknown chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
adlawson committed Dec 14, 2015
1 parent 9776d49 commit a1f2331
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Mixcloud Tracklist",
"version": "2.0.0",
"version": "2.0.1",
"manifest_version": 2,
"description": "Display the tracklist on Mixcloud Cloudcasts",
"homepage_url": "https://github.com/adlawson/mixcloud-tracklist",
Expand Down
25 changes: 17 additions & 8 deletions templates/tracklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,23 @@
{% for section in sections %}
<div class="track-row cf" ng-hide="juno.sections.length">
<div class="container">
<div class="track-name" title="{{ section.title }}">
<span class="track-number">{{ section.track_number }}.</span>
<a class="track-song-name-link" href="{{ section.track_url }}">{{ section.title }}</a>
</div>
<div class="track-by">
<span class="track-by-name">by</span>
<a class="artist-name-link" href="{{ section.artist_url }}"><strong>{{ section.artist }}</strong></a>
</div>
{% if section.chapter %}
<div class="track-name" title="{{ section.title }}">
<span class="track-number">{{ section.track_number }}.</span>
<span class="track-song-name-link" href="{{ section.track_url }}">{{ section.chapter }}</span>
</div>
{% else %}
<div class="track-name" title="{{ section.title }}">
<span class="track-number">{{ section.track_number }}.</span>
<a class="track-song-name-link" href="{{ section.track_url }}">{{ section.title }}</a>
</div>
{% endif %}
{% if section.artist %}
<div class="track-by">
<span class="track-by-name">by</span>
<a class="artist-name-link" href="{{ section.artist_url }}"><strong>{{ section.artist }}</strong></a>
</div>
{% endif %}
</div>
</div>
<!-- ngRepeat: section in juno.sections -->
Expand Down

0 comments on commit a1f2331

Please sign in to comment.