-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.template.html
101 lines (85 loc) · 2.65 KB
/
index.template.html
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>zeusbot</title>
<link href="{{ stylesheet }}" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{{ jquery_loc }}"></script>
<script type="text/javascript">
/* <![CDATA[ */
/* Javascript Copyright 2011 (C) Daniel Richman. License: GNU GPL 3 */
jQuery.fn.extend({
listitems: function (elem) {
return this.children("ul").children("li");
}
});
$(document).ready(function() {
$("li.month").hide();
$("li.month").listitems().hide();
$("li.year > span, li.month > span").replaceWith(function () {
var a = $(document.createElement("a"));
a.append($(this).contents());
a.attr("href", "javascript: void(0);");
return a;
});
var p = $("li.year:nth-child(3)");
p.addClass("default_open");
p.listitems().show();
var i = p.listitems().first();
i.listitems().show();
$("li.year > a, li.month > a").click(function () {
var t = $(this).parent();
if (t.hasClass("default_open")) {
i.listitems().hide();
p.removeClass("default_open");
}
t.listitems().toggle();
t.listitems().listitems().hide();
});
});
/* ]]> */
</script>
</head>
<body>
<div id="title">zeusbot</div>
<div id="page">
<p>
Herein lie the raw logs from zeusbot (#highaltitude on irc.freenode.net),
and pisg statistics. Tread carefully.
</p>
<ul>
<li><a href="pisg.html">pisg stats</a></li>
<li><a href="search.html">Search the logs</a></li>
{% for year in years %}
<li class='year'>
<span>{{ year.year }}</span>
<ul>
{% for month in year.months %}
<li class='month'>
<span>{{ month.month_nice }}</span>
<ul>
{% for logfile in month.files %}
<li>
{% if logfile.is_today %}
<a href='{{ logs_dir }}/{{ logfile.filename }}'>{{ logfile.date_nice }}</a>
<span class="small">(raw only)</span>
{% else %}
<a href='{{ highlighted_dir }}/{{ logfile.filename }}.html'>{{ logfile.date_nice }}</a>
<span class="small"><a href='{{ logs_dir }}/{{ logfile.filename }}'>(raw text)</a></span>
{% endif %}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
<p>
<a href='http://habhub.org/'>habhub.org</a>
</p>
</div>
</body>
</html>