summaryrefslogtreecommitdiff
path: root/data/tpl/vnpage_rel
blob: 4e5d29b26384ff77511341f1338e1b68393850eb (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
58
59
<h3>Description</h3>
<p class="desc">
 [[= summary($d{vn}{desc}) ]]
 <br /><br /><br />
</p>



[[ 
  my @lang;
  for (@{$d{rel}}) {
    my $l = $_->{language};
    next if grep { $_ eq $l } @lang;
    push @lang, $l;
  }

]] 


<h3>Releases
[[ if((!$d{vn}{locked} && $p{Authedit}) || $p{Authlock}) { ]]- <p class="actions">(<a href="/v[[= $d{vn}{id} ]]/add">add release</a>)</p>[[ } ]]</h3>
[[ if(@{$d{rel}}) { ]]-
<table id="tre">
[[ for(@lang) { my $l = $_; ]]-
<tr class="lang">
 <td colspan="6">[[: $VNDB::LANG->{$l} ]]</td>
</tr>
[[ for (@{$d{rel}}) { next if $l ne $_->{language}; ]]-
 <tr>
  <td class="tc1">[[= datestr($_->{released}) ]]</td>
  <td class="tc2">[[= $_->{minage}<0 ? '' : $VNDB::VRAGES->{$_->{minage}} ]]</td>
  <td class="tc3">
    [[= join('', map { $_ ne 'oth' ? '<acronym class="icons '.$_.'" title="'._hchar($VNDB::PLAT->{$_}).'">&nbsp;</acronym>' : () } sort @{$_->{platforms}}) ]]
    <acronym title="[[= $VNDB::RTYP->[$_->{type}] ]]- release" class="icons -[[= lc substr($VNDB::RTYP->[$_->{type}],0,3) ]]">&nbsp;</acronym>
  </td>
  <td class="tc4"><a href="/r[[= $_->{id} ]]" title="[[: $_->{original} || $_->{title} ]]">[[: shorten $_->{title},60 ]]</a></td>
  <td class="tc5">[[ if($p{AuthId}) { ]]
    [[= sprintf '<a href="/r%d" class="dropdown above" rel="rlistDD%1$d">%s</a>', $_->{id}, $_->{rlist} ?
      ('<acronym title="'.$VNDB::RSTAT->[$_->{rlist}{rstat}].'" class="uicons r'.$_->{rlist}{rstat}.'">&nbsp;</acronym>'.
       '<acronym title="'.$VNDB::VSTAT->[$_->{rlist}{vstat}].'" class="uicons v'.$_->{rlist}{vstat}.'">&nbsp;</acronym>')
      : '<acronym title="Add to your visual novel list" class="uicons no">&nbsp;</acronym>' ]]
   [[ } else { ]]&nbsp;[[ } ]]</td>
  <td class="tc6">[[ if($_->{website}) { ]]<a href="[[: $_->{website} ]]" class="icons ext" title="WWW">&nbsp;</a>[[ } ]]</td>
 </tr>
[[ } ]]-
[[ } ]]-
</table>
[[ } else { ]]-
<p>
 This game has either not been released yet, or we just don't have information about
 any releases.
</p>
[[ } ]]


[[ if($p{AuthId}) { ]]
[[ for my $r (@{$d{rel}}) { ]]-
-[[= rlist_dd($r) ]]
[[ } } ]]