- Use django template for index.html
[deb/hackedgotchi.git] / templates / index.html.dj
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3   <head>
4         <title>{{ name }}</title>
5         <meta http-equiv="content-type" content="text/html; charset=utf-8" >
6         <meta name="generator" content="{{ generator }}" >
7         <link rel="stylesheet" media="screen" type="text/css" href="common/boxless.css" >
8         <link rel="icon" type="image/x-icon" href="common/favicon.ico" >
9         <link href="rss10.xml" rel="alternate" type="application/rss+xml"  title="RSS 1.0 Feed" >
10         <link href="rss20.xml" rel="alternate" type="application/rss+xml"  title="RSS 2.0 Feed" >
11         <link href="atom.xml"  rel="alternate" type="application/atom+xml" title="Atom Feed" >
12
13         <script type="text/javascript" src="common/hide.js"></script>
14         <script type="text/javascript">
15           <!--
16                  window.onload=hideHosts;
17                 -->
18         </script>
19   </head>
20
21 <body>
22
23 {% for item in Items %}
24 {% ifchanged item.new_date %}
25  <h1>{{ item.new_date }}</h1>
26 {% endifchanged %}
27
28  <div class="channel">
29  {% ifchanged item.channel_name %}
30    {% if item.channel_face %}
31      <a href="{{ item.channel_link }}">
32        <img class="face" src="heads/{{ item.channel_face }}"
33             width="{{ item.channel_facewidth }}" height="{{ item.channel_faceheight }}"
34             alt="hackergotchi for {{ item.channel_author|safe }}" >
35      </a>
36    {% endif %}
37    <h2>
38         <a href="{{ item.channel_link }}" title="{{ item.channel_title }}">{{ item.channel_name|safe }}</a>
39         <script type="text/javascript">
40           <!--
41                  document.write( "<a href=\"#\" id=\"{{ item.link }}_hide\" onClick=\"exclude( '{{ item.link }}' ); hideHosts(); return false;\"><img src=\"common/minus-8.png\" style=\"border: none;\" title=\"Hide Author\" alt=\"Hide Author\" height=\"8\" width=\"8\"><\/a> <a href=\"#\" id=\"{{ item.link }}_show\"  style=\"display:none;\" onClick=\"show( '{{ item.link }}' );  return false;\"><img src=\"common/plus-8.png\" style=\"border: none;\" title=\"Show Author\" alt=\"Show Author\" height=\"8\" width=\"8\"><\/a>" );
42           -->
43         </script>
44    </h2>
45    <div id="{{ item.link }}" class="{{ item.link }}">
46          <div class="entry">
47            <h3>
48                  <a href="{{ item.link}}">{{ item.title }}</a>
49            </h3>
50            <div class="content">
51                  {{ item.content|safe }}
52            </div>
53
54            <p class="date">
55                  <a href="{{ item.link }}">{{ item.date }}</a>
56                  {% if item.author %}
57                    by {{ item.author|safe }}
58                  {% endif %}
59            </p>
60      </div>
61    </div>
62  {% endifchanged %}
63  </div>
64 {% endfor %}
65
66     <div id="sidebar">
67           <h1>{{ name }}</h1>
68           <div id="logo"><img src="common/debian.png" width="101" height="124" alt=""></div>
69
70                 {% if Config.search %}
71           <h1>{{ Config.searchtext }}</h1>
72           <form method="GET" action="/cgi-bin/search.cgi">
73                 <input type="text" name="terms" value="">
74           </form>
75                 {% endif %}
76
77           <p>
78                 {{ Config.syndicationtext }}
79           </p>
80
81           <p>
82                 <a href="rss10.xml"><img class="button" src="common/rss10.png" width="80" height="15" alt="[RSS 1.0 Feed]"></a>
83                 <a href="rss20.xml"><img class="button" src="common/rss20.png" width="80" height="15" alt="[RSS 2.0 Feed]"></a>
84                 <a href="atom.xml"><img class="button" src="common/atom.png" width="80" height="15" alt="[Atom Feed]"></a>
85                 <a href="foafroll.xml"><img class="button" src="common/foaf.png" width="80" height="15" alt="[FOAF Subscriptions]"></a>
86                 <a href="opml.xml"><img class="button" src="common/opml.png" width="80" height="15" alt="[OPML Subscriptions]"></a>
87                 <a href="http://www.catb.org/hacker-emblem/"><img class="button" src="common/hacker.png" width="80" height="15" alt="[Hacker]"></a>
88                 <a href="http://www.intertwingly.net/code/venus/"><img class="button" src="common/planet.png" width="80" height="15" alt="[Planet]"></a>
89           </p>
90
91           <p>
92                 {{ Config.lastupdatetext }} {{ date }}<br>{{ Config.utctext }}<br>
93                 {{ Config.contacttext }} <a href="mailto:{{ owner_email }}">{{ owner_name }}</a>
94           </p>
95
96           <div id="unhide-all" style="display:none;">
97                 <h2>{{ Config.hiddenfeedstext }}</h2>
98                 <p>{{ Config.hiddenfeedstext2 }} <a href="#" onClick="excludeNone(); return false">{{ Config.showalltext }}</a></p>
99           </div>
100
101           <h2>{{ Config.subscriptionstext }}</h2>
102           <ul>
103                 {% for channel in Channels %}
104                   <li><a href="{{ channel.link }}" title="{{ channel.title }}">{{ channel.name|safe }}</a> <a href="{{ channel.url }}">({{ Config.feedtext }})</a></li>
105                 {% endfor %}
106           </ul>
107         </div>
108 </body>
109 </html>
110