summaryrefslogtreecommitdiff
path: root/data/tpl/tindex
blob: 89608b1180d2812ed298249e3cf5191c6bf61c8f (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
<h2>[[: $p{PageTitle} ]]</h2>

[[ 
  my %desc = (
    an => 'Yorhel\'s place to make useless announcements...',
    db => 'General discussions about VNDB.org. This is the place to be for feature requests and bug reports.',
    v  => 'Discussions about the visual novels in the database',
    p  => '...Producers',
    r  => '...Releases',
    u  => 'Messages to or discussions about other users on this site.'
  );
]]


[[ for my $tag (qw|an db v p u|) { ]]-

<br />
<h3>[[: $VNDB::DTAGS->{$tag} ]]</h3>
<!--<p class="desc">
 <i>[[: $desc{$tag} ]]</i>
</p>-->
[[ if(@{$d{$tag}}) { ]]-
<table id="tin">
 <!--<thead><tr>
  <td class="tc1">Topic</td>
  <td class="tc2">Replies</td>
  <td class="tc3">Starter</td>
  <td class="tc4">Last post</td>
 </tr></thead>-->
[[ for (@{$d{$tag}}) { ]]-
 <tr>
  <td class="tc1">
   <a href="/t[[= $_->{id} ]]" title="[[= join ', ', sort map $$_[1]?$$_[0].$$_[1]:$$_[0], @{$_->{tags}} ]]">[[: $_->{title} ]]</a>
   [[ if($_->{locked}) { ]]- <b>[locked]</b>[[ } ]]
  </td>
  <td class="tc2">[[= $_->{count}-1 ]]</td>
  <td class="tc3">[[= userstr $_ ]]</td>
  <td class="tc4">[[= userstr $_->{luid}, $_->{lusername} ]]- @
   <a href="/t[[= $_->{id}.($_->{count}>$d{ppp}?'/'.ceil($_->{count}/$d{ppp}):'').'#'.$_->{count} ]]">
    [[= age $_->{ldate} ]]</a></td>
 </tr>
[[ } ]]
</table>
<a class="right" href="/t/[[= $tag ]]">more...</a>
[[ } else { ]]-
 <p>No threads yet.
 -[[ if($tag eq 'db') { ]]
  <a href="/t/[[= $tag ]]/new">Start a new thread.</a>
 [[ } ]]
 </p>
[[ } ]]
<br />

[[ } ]]