forked from rho_n/hpr_generator
Implement full show index page
This commit is contained in:
parent
b1f1fd4229
commit
a65dbbd32e
5
site.cfg
5
site.cfg
@ -64,3 +64,8 @@ navigation: navigation-get-shows.tpl.html
|
|||||||
content: content-series_shows.tpl.html
|
content: content-series_shows.tpl.html
|
||||||
multipage: true
|
multipage: true
|
||||||
filename: series/[id].html
|
filename: series/[id].html
|
||||||
|
|
||||||
|
[episodes]
|
||||||
|
navigation: navigation-get-shows.tpl.html
|
||||||
|
content: content-episodes.tpl.html
|
||||||
|
filename: eps/index.html
|
28
templates/content-episodes.tpl.html
Normal file
28
templates/content-episodes.tpl.html
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<!--% PROCESS 'shared-episode-summary.tpl.html' %-->
|
||||||
|
<article>
|
||||||
|
<header>
|
||||||
|
<h1>Complete Archive of Shows.</h1>
|
||||||
|
<p>
|
||||||
|
All this information is available to the public. Scrape if you wish but if we can format the data for you then we're happy to help.
|
||||||
|
</p>
|
||||||
|
</header>
|
||||||
|
<!--% USE DBI(constants.driver, constants.user, constants.password) %-->
|
||||||
|
<!--% FOREACH episodes IN DBI.query('
|
||||||
|
SELECT
|
||||||
|
eps.id,
|
||||||
|
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,
|
||||||
|
eps.date, eps.license, eps.title, eps.summary,
|
||||||
|
eps.duration, eps.notes, eps.tags,
|
||||||
|
hosts.hostid,
|
||||||
|
hosts.host, hosts.email, hosts.local_image,
|
||||||
|
miniseries.name AS series
|
||||||
|
FROM eps
|
||||||
|
INNER JOIN hosts ON eps.hostid = hosts.hostid
|
||||||
|
INNER JOIN miniseries ON eps.series = miniseries.id
|
||||||
|
WHERE eps.date < date(\'now\', \'+1 days\')
|
||||||
|
ORDER BY date DESC
|
||||||
|
')
|
||||||
|
%-->
|
||||||
|
<!--% show_summary(episodes) %-->
|
||||||
|
<!--% END %-->
|
||||||
|
</article>
|
Loading…
Reference in New Issue
Block a user