File: links-tmpl.html

package info (click to toggle)
rhythmbox 3.4.9-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 27,376 kB
  • sloc: ansic: 114,861; python: 4,941; xml: 730; javascript: 350; perl: 307; sh: 84; makefile: 43
file content (30 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<%page args="error, artist, album, art_links, alb_links, images, stylesheet" />
<html>
<head>
  <meta http-equiv="content-type" content="text-html; charset=utf-8">
  <link rel="stylesheet" href="${stylesheet}" type="text/css" />
  <style type="text/css">
    img { padding: 0 5px 0 5px }
    ul { list-style-type: none }
  </style>
</head>
<body>
%if error is None:
<h1>${ _("Links for %s:") % ("<em>" + artist + "</em>")}</h1>
<ul>
%for k, v in art_links.items() :
    <li><img src="${images}${k}16x16.png" /><a href="${v}">${k}</a></li>
%endfor
</ul>
<h1>${ _("Links for %s:") % ("<em>" + album + "</em>")}</h1>
<ul>
%for k, v in alb_links.items() :
    <li><img src="${images}${k}16x16.png" /><a href="${v}">${k}</a></li>
%endfor
</ul>
%else:
<h1>${ _("Unable to get links") }</h1>
<p class="error">${error | h}</p>
%endif
</body>
</html>