templates/lines.tmpl
author Tero Marttila <terom@fixme.fi>
Mon, 16 Feb 2009 00:54:25 +0200
changeset 132 0e857c4a67de
parent 72 5ade0288f2ec
permissions -rw-r--r--
cache version across calls to version_mercurial, so as to avoid opening the repo every time
72
5ade0288f2ec implement line-links as UTC timestamps
Tero Marttila <terom@fixme.fi>
parents: 70
diff changeset
     1
<% formatter = prefs['formatter'] %>
5ade0288f2ec implement line-links as UTC timestamps
Tero Marttila <terom@fixme.fi>
parents: 70
diff changeset
     2
69
1f182913b1f2 href-ize urls
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     3
<div id="lines">
72
5ade0288f2ec implement line-links as UTC timestamps
Tero Marttila <terom@fixme.fi>
parents: 70
diff changeset
     4
% if formatter.html_fixedwidth :
5ade0288f2ec implement line-links as UTC timestamps
Tero Marttila <terom@fixme.fi>
parents: 70
diff changeset
     5
<pre>
5ade0288f2ec implement line-links as UTC timestamps
Tero Marttila <terom@fixme.fi>
parents: 70
diff changeset
     6
% endif
5ade0288f2ec implement line-links as UTC timestamps
Tero Marttila <terom@fixme.fi>
parents: 70
diff changeset
     7
% for line, html in lines:
5ade0288f2ec implement line-links as UTC timestamps
Tero Marttila <terom@fixme.fi>
parents: 70
diff changeset
     8
<a href="${h.build_url(urls.channel_link, channel=channel, timestamp=line.timestamp)}#${h.utc_timestamp(line.timestamp)}" id="${h.utc_timestamp(line.timestamp)}">&raquo;&raquo; </a>${html}
69
1f182913b1f2 href-ize urls
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     9
% endfor
72
5ade0288f2ec implement line-links as UTC timestamps
Tero Marttila <terom@fixme.fi>
parents: 70
diff changeset
    10
% if formatter.html_fixedwidth :
5ade0288f2ec implement line-links as UTC timestamps
Tero Marttila <terom@fixme.fi>
parents: 70
diff changeset
    11
</pre>
5ade0288f2ec implement line-links as UTC timestamps
Tero Marttila <terom@fixme.fi>
parents: 70
diff changeset
    12
% endif
69
1f182913b1f2 href-ize urls
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    13
</div>