aboutsummaryrefslogtreecommitdiff
path: root/index.st
blob: 0b3f688f150d42b613acd304501791e05a12b8ec (plain)
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
$header_start(title=title)$
<script src="/yui3/build/yui/yui-min.js" type="text/javascript"></script>
<script src="/feed-list.js" type="text/javascript"></script>
$header_end()$

<h1 class="title">$title$</h1>

<div id="feed-list-container">
<div id="feed-list">
  <h2>Feeds</h2>
  <ul>
  $feeds:{feed |
    <li><a href="/?feed=$feed.id$"
    $if(feed.active_p)$
           class="active-feed-name"
    $else$
           class="inactive-feed-name"
    $endif$
           >$feed.title$</a></li>
  }$
  </ul>
</div>
</div>

$if(entries)$
<div id="feed-content-container">
<div id="feed-content">
  <h2>$active_feed_title$</h2>
  <ul>
  $entries:{entry |
    $if(entry.active_p)$
    $! FIXME: Show content inline if possible. !$
    <li class="full-entry" id="entry-$entry.id$-container">
      <a class="entry-link" id="entry-$entry.id$" href="$entry.link$"><h3>$entry.title$</h3></a>
      $if(xhtml_content_p)$
      <div class="entry-content">$xhtml_content$</div>
      $endif$
    </li>
    $else$
    <li class="partial-entry" id="entry-$entry.id$-container">
      <a class="entry-link" id="entry-$entry.id$" href="/entries/$entry.id$?feed=$active_feed_id$#entry-$entry.id$">$entry.title$</a>
    </li>
    $endif$
  }$
  </ul>
</div>
</div>
$endif$

$footer()$

$!
Local Variables:
  mode: html
  coding: utf-8
End:
!$