From a1f2331350368466887e13a1886a7ab7b9113957 Mon Sep 17 00:00:00 2001 From: adlawson Date: Mon, 14 Dec 2015 11:27:43 +0000 Subject: [PATCH] Fix template for unknown chapters --- manifest.json | 2 +- templates/tracklist.html | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/manifest.json b/manifest.json index cd9404f..00f3c77 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/templates/tracklist.html b/templates/tracklist.html index d595570..0694113 100644 --- a/templates/tracklist.html +++ b/templates/tracklist.html @@ -28,14 +28,23 @@ {% for section in sections %}
-
- {{ section.track_number }}. - {{ section.title }} -
- + {% if section.chapter %} +
+ {{ section.track_number }}. + {{ section.chapter }} +
+ {% else %} +
+ {{ section.track_number }}. + {{ section.title }} +
+ {% endif %} + {% if section.artist %} + + {% endif %}