Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 54 lines (53 sloc) 1.538 kb
9c0f089 @palfrey Add output support
authored
1 <html>
2 <body>
3 <h2>Missing albums (newest first)</h2>
4 {% for link in links %}
5 {% if index == link[0] %}
6 ${link[0]}
7 {% end %}
8 {% if index != link[0] %}
9 <a href="${link[1]}">${link[0]}</a>
10 {% end %}
11 {% end %}
12 <table width="100%">
13 {% for album in albums %}
14 {% python
15 from time import strftime
16 when = strftime("%a, %d %b %Y", album["when"])
17 if album["amazon_new"]!=None:
18 amazon_new = "&pound;" + "%.2f"%(album["amazon_new"]/100.00)
19 else:
20 amazon_new = "Unknown"
50eb196 @palfrey Add find cd and HMV links to template
authored
21 encoded_title = ("%s %s"%(album["artist"], album["title"])).replace(" ", "+")
9c0f089 @palfrey Add output support
authored
22 %}
ff932d8 @palfrey Don't list anyone without an Amazon URL
authored
23 <tr width="100%">
24 <td>
25 <a href="${ album["url"] }">${ album["artist"] } - ${ album["title"] }</a><br />
26 Date: ${when} <br />
27 Price: ${amazon_new}
28 </td>
29 <td>
30 <a href="http://www.find-cd.co.uk/search.aspx?title=${encoded_title}&type=keywords">Find-cd</a><br />
31 <a href="http://hmv.com/hmvweb/simpleMultiSearch.do?searchUID=&pGroupID=0&adultFlag=false&simpleSearchString=${encoded_title}&primaryID=0&btnSubmitSearch.x=0&btnSubmitSearch.y=0">HMV</a>
32 </td>
33 <td align="right">
34 {% python hasImage = album["image"] != None %}
35 {% if hasImage %}
36 <a href="${ album["url"] }">
37 <img src="${album["image"]}" width="100" />
38 </a>
39 {% end %}
40 </td>
41 </tr>
9c0f089 @palfrey Add output support
authored
42 {% end %}
43 </table>
44 {% for link in links %}
45 {% if index == link[0] %}
46 ${link[0]}
47 {% end %}
48 {% if index != link[0] %}
49 <a href="${link[1]}">${link[0]}</a>
50 {% end %}
51 {% end %}
52 </body>
53 </html>
Something went wrong with that request. Please try again.