author | Tero Marttila <terom@fixme.fi> |
Fri, 05 Jun 2009 21:48:56 +0300 | |
changeset 62 | 53e798708413 |
parent 41 | 3b1579a7bffb |
permissions | -rw-r--r-- |
62
53e798708413
write new templates using html, replacing old mako stuff
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
1 |
<%inherit file="master.html" /> |
1 | 2 |
|
62
53e798708413
write new templates using html, replacing old mako stuff
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
3 |
<%def name="pagination(num_pages, cur_page)"> |
12
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
4 |
% if num_pages > 1 : |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
5 |
<ul> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
6 |
% if cur_page > 0 : |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
7 |
<li><a href="${h.url_for_page(cur_page - 1)}">« Prev</a></li> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
8 |
% else : |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
9 |
<li><span>« Prev</span></li> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
10 |
% endif |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
11 |
|
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
12 |
% for page in xrange(0, num_pages) : |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
13 |
% if page == cur_page : |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
14 |
<li><strong>${page + 1}</strong></li> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
15 |
% else : |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
16 |
<li><a href="${h.url_for_page(page)}">${page + 1}</a></li> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
17 |
% endif |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
18 |
% endfor |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
19 |
|
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
20 |
% if cur_page < num_pages - 1 : |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
21 |
<li><a href="${h.url_for_page(cur_page + 1)}">Next »</a></li> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
22 |
% else : |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
23 |
<li><span>Next »</span></li> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
24 |
% endif |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
25 |
</ul> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
26 |
% endif |
62
53e798708413
write new templates using html, replacing old mako stuff
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
27 |
</%def> |
12
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
28 |
|
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
29 |
<h1>${title}</h1> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
30 |
<div id="dirs"> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
31 |
% if dirs : |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
32 |
<ul> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
33 |
% for dir in dirs : |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
34 |
<li><a href="${dir.name}">${dir.title}</a></li> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
35 |
% endfor |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
36 |
</ul> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
37 |
% endif |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
38 |
</div> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
39 |
<div class="paginate"> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
40 |
${pagination(num_pages, cur_page)} |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
41 |
</div> |
1 | 42 |
<div id="thumbnails"> |
12
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
43 |
% for img in images : |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
44 |
${h.tag_for_img(img.html_name, img.thumb_name)} |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
45 |
% endfor |
1 | 46 |
</div> |
12
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
47 |
<div class="paginate"> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
48 |
${pagination(num_pages, cur_page)} |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
49 |
</div> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
50 |
<p id="description"> |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
51 |
${description} |
c2d8e9a754a1
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents:
5
diff
changeset
|
52 |
</p> |
19
8d3ffd87cb0b
* move cgi-bin to de-cgi-bin so it doesn't conflict with my default alias... need to come up with a real solution to this
terom
parents:
18
diff
changeset
|
53 |
% if shorturl : |
1 | 54 |
<div id="info"> |
18
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
12
diff
changeset
|
55 |
<p>ShortURL: <a href="${shorturl}" rel="nofollow">${shorturl_code}</a></p> |
1 | 56 |
</div> |
19
8d3ffd87cb0b
* move cgi-bin to de-cgi-bin so it doesn't conflict with my default alias... need to come up with a real solution to this
terom
parents:
18
diff
changeset
|
57 |
% endif |