diff --git a/templates/content-episode.tpl.html b/templates/content-episode.tpl.html index d48bf1a..fe24fa6 100644 --- a/templates/content-episode.tpl.html +++ b/templates/content-episode.tpl.html @@ -26,6 +26,13 @@ INNER JOIN episode_date ON eps.date > episode_date.date WHERE eps.date < date (\'now\') + ), + comment_tallies AS ( + SELECT + eps_id, + COUNT(eps_id) AS eps_tally + FROM comments + GROUP BY eps_id ) SELECT eps.id, eps.date, eps.title, eps.duration, eps.summary, eps.notes, eps.explicit, eps.license, @@ -33,13 +40,16 @@ episode_maxmin.latest, episode_maxmin.earliest, episode_previous.previous, episode_next.next, hosts.hostid, hosts.host, - miniseries.name AS \'series\', miniseries.id AS \'seriesid\' + miniseries.name AS \'series\', miniseries.id AS \'seriesid\', + miniseries.description AS \'series_description\', + COALESCE (comment_tallies.eps_tally, 0) AS eps_tally FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN miniseries ON eps.series = miniseries.id INNER JOIN episode_maxmin ON eps.id = episode_maxmin.id INNER JOIN episode_previous ON eps.id = episode_previous.id INNER JOIN episode_next ON eps.id = episode_next.id + LEFT JOIN comment_tallies ON eps.id = comment_tallies.eps_id WHERE eps.id = ? ') %--> @@ -54,10 +64,31 @@


-Hosted by .

+Hosted by on is flagged as and is released under a license.
+
+ | + +

+

+

- +

Comments

@@ -83,9 +114,6 @@ Subscribe to the comments
Hosted by on is flagged as and released under a license.
-Tags: .
-listen in ogg, spx, or mp3 format. - Comments (). +
+ | +

diff --git a/templates/shared-episode-summary.tpl.html b/templates/shared-episode-summary.tpl.html index 6ebdee1..8fe8bd4 100644 --- a/templates/shared-episode-summary.tpl.html +++ b/templates/shared-episode-summary.tpl.html @@ -1,12 +1,27 @@ - - . + + + + + . + + + + . + + + +Listen in ogg, spx, or mp3 format. + + + +Comments (). . . .
- . +