summaryrefslogtreecommitdiff
path: root/data/tpl/tindex
blob: cb9cd15496ec6917f366cda028cb52087fdd7d3e (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
<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>
[[ if(@{$d{$tag}}) { ]]-
<table id="tin">
[[ 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>
[[ if($tag eq 'db') { ]]-
  <a class="right" href="/t/[[= $tag ]]/new" style="padding-right: 10px">start new thread</a>
[[ } ]]

[[ } else { ]]-
 <p>No threads yet.
 -[[ if($tag eq 'db') { ]]
  <a href="/t/[[= $tag ]]/new">Start a new thread.</a>
 [[ } ]]
 </p>
[[ } ]]
<br />

[[ } ]]