summaryrefslogtreecommitdiff
path: root/data/tpl/vnlist
diff options
context:
space:
mode:
Diffstat (limited to 'data/tpl/vnlist')
-rw-r--r--data/tpl/vnlist38
1 files changed, 13 insertions, 25 deletions
diff --git a/data/tpl/vnlist b/data/tpl/vnlist
index 0fb20509..d2763b39 100644
--- a/data/tpl/vnlist
+++ b/data/tpl/vnlist
@@ -1,12 +1,19 @@
-[[= ttabs('u', $d{user}, 'list') ]]
+[[= ttabs('u', $d{user}) ]]
<h2>[[: $p{PageTitle} ]]</h2>
[[
- my $url = sprintf '/u%d/list', $d{user}{id};
+ my $url = sprintf '/u%d/vlist', $d{user}{id};
my $surl = sprintf '%s?s=%s;o=%s', $url, $d{order}[0], $d{order}[1];
my $purl = $surl . ';t='.$d{status};
my $sourl = $url . '?t='.$d{status};
my $furl = $purl . ';p='.$d{page};
]]
+
+<span class="warning">
+ This visual novel list is read-only, only visible to you, and may be
+ deleted in future versions of the site. You are highly encouraged to
+ move everything in this list to the new <a href="/u[[= $d{user}{id} ]]/list">visual novel list</a>.
+</span>
+
<p class="chr">
status: -[[ for (-1..$#$VNDB::LSTAT) { if($_ >= 0) { ]]- | -[[ }
if($d{status} == $_) { ]]<b>[[= $_ eq -1 ? 'all' : lc $VNDB::LSTAT->[$_] ]]</b>[[ }
@@ -30,46 +37,27 @@
[[ } else { ]]
[[= pagebut($purl) ]]-
-[[ if($d{user}{username} eq $p{AuthUsername}) { ]]
<form method="post" action="[[= $furl ]]" class="tblf">
-<input type="hidden" class="hidden" name="comments" id="comments" value="" />[[ } ]]
<table id="tvl">
<thead><tr>
<td class="tc1">Title [[= sortbut($sourl, 'title') ]]</td>
<td class="tc2">Status</td>
<td class="tc3">Added [[= sortbut($sourl, 'date') ]]</td>
- [[ if($d{user}{username} eq $p{AuthUsername}) { ]]-
<td class="tc4">Personal note</td>
- <td class="tc5">&nbsp;</td>[[ } ]]-
+ <td class="tc5">&nbsp;</td>
</tr></thead>
[[ for (@{$d{list}}) { ]]-
<tr>
<td class="tc1"><a href="/v[[= $_->{vid} ]]" title="[[: $_->{title} ]]">[[: length($_->{title})>40 ? substr($_->{title},0, 37).'...' : $_->{title} ]]</a></td>
<td class="tc2">[[= $VNDB::LSTAT->[$_->{status}] ]]</td>
<td class="tc3">[[= formatdate('%Y-%m-%d', $_->{date}, 'dh') ]]</td>
- [[ if($d{user}{username} eq $p{AuthUsername}) { ]]
<td class="tc4">[[: $_->{comments}||'-' ]]</td>
- <td class="tc5"><input type="checkbox" name="sel" value="[[= $_->{vid} ]]" /></td>[[ } ]]
+ <td class="tc5"><input type="checkbox" name="sel" value="[[= $_->{vid} ]]" /></td>
</tr>
[[ } ]]-
</table>
-[[ if($d{user}{username} eq $p{AuthUsername}) { ]]
-<select id="vnlistchange" name="vnlistchange" class="right">
- <option value="-3">- with selected -</option>
- <option value="-1">Delete</option>
- <option value="-2">Update personal note</option>
- <optgroup label="Update status:">
- [[ for (0..$#$VNDB::LSTAT) { ]]-
- <option value="[[= $_ ]]">[[: $VNDB::LSTAT->[$_] ]]</option>
- [[ } ]]
- </optgroup>
-</select>
-</form>[[ } ]]
+<input type="submit" value="Delete selected items" class="right" />
+</form>
-[[= pagebut($purl) ]]
[[ } ]]-
-[[ if($d{user}{username} eq $p{AuthUsername}) { ]]-
-<p>
- <br /><br />
- NOTE: Your personal notes are only visible to you, other people can't see them.
-</p>[[ } ]]