diff options
author | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-08-01 10:35:55 +0000 |
---|---|---|
committer | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-08-01 10:35:55 +0000 |
commit | af46e97783e282e4b9fee5d06c12ff1582ec25c5 (patch) | |
tree | 349f1dbb4bc6122717318c8047b8e965c081ff72 /data/tpl/wlist | |
parent | b274ff8a37e90a90c7613b47a84bad1cdc6ddf5f (diff) |
Forgot to upload new file (as usual...)
git-svn-id: svn://vndb.org/vndb@78 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'data/tpl/wlist')
-rw-r--r-- | data/tpl/wlist | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/data/tpl/wlist b/data/tpl/wlist new file mode 100644 index 00000000..f12c85f4 --- /dev/null +++ b/data/tpl/wlist @@ -0,0 +1,55 @@ +[[= ttabs('u', $d{user}, 'wish') ]] +<h2>[[: $p{PageTitle} ]]</h2> +[[ + my $url = sprintf '/u%d/wish', $d{user}{id}; + my $surl = sprintf '%s?s=%s;o=%s', $url, $d{order}[0], $d{order}[1]; + my $furl = $surl . ';p='.$d{page}; +]] + + +[[ if($#{$d{list}} < 0) { ]]- +<p> +[[ if($d{user}{username} eq $p{AuthUsername}) { ]] + Your wishlist is empty. You can keep track of all the visual novels + you'd like to play. Just go to a visual novel page and add it to your wishlist! +[[ } else { ]] + [[: $d{user}{username} ]]'s wishlist is empty... +[[ } ]] +</p> + +[[ } else { ]] +[[= pagebut($surl) ]]- +[[ if($d{user}{username} eq $p{AuthUsername}) { ]] +<form method="post" action="[[= $furl ]]" class="tblf"> +[[ } ]] +<table id="twl"> + <thead><tr> + <td class="tc1">Title [[= sortbut($url, 'title') ]]</td> + <td class="tc2">Priority [[= sortbut($url, 'wstat') ]]</td> + <td class="tc3">Added [[= sortbut($url, 'added') ]]</td> + <td class="tc4"> </td> + </tr></thead> + [[ for (@{$d{list}}) { ]]- + <tr> + <td class="tc1"><a href="/v[[= $_->{vid} ]]" title="[[: $_->{title} ]]">[[: shorten $_->{title}, 40 ]]</a></td> + <td class="tc2">[[= $VNDB::WSTAT->[$_->{wstat}] ]]</td> + <td class="tc3">[[= formatdate('%Y-%m-%d', $_->{added}) ]]</td> + <td class="tc4">[[ if($d{user}{username} eq $p{AuthUsername}) { ]]<input type="checkbox" name="sel" value="[[= $_->{vid} ]]" />[[ } else { ]] [[ } ]]</td> + </tr> + [[ } ]]- +</table> +[[ if($d{user}{username} eq $p{AuthUsername}) { ]] +<select id="vnlistchange" name="vnlistchange" class="right"> + <option value="n">- with selected -</option> + <option value="d">Delete</option> + <optgroup label="Update priority:"> + [[ for (0..$#$VNDB::WSTAT) { ]]- + <option value="[[= $_ ]]">[[: $VNDB::WSTAT->[$_] ]]</option> + [[ } ]] + </optgroup> +</select> +</form> +[[ } ]] +-[[= pagebut($surl) ]] +[[ } ]]- + |