summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-27 13:40:32 +0100
committerYorhel <git@yorhel.nl>2008-12-27 13:40:32 +0100
commit99645030d202d7af2edcfc22645d251cd52cac2a (patch)
tree9dd1d0237dc9d31c831c37cc8c8fe826dbbf19fa /lib
parent6a490c8c2c7c60e5530ace67fb5e526575939849 (diff)
Re-added the release list dropdown to VN pages
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog8
-rw-r--r--lib/VNDB/Handler/ULists.pm3
-rw-r--r--lib/VNDB/Handler/VNPage.pm6
3 files changed, 13 insertions, 4 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 5eb214ff..e0c76517 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -6,6 +6,14 @@ TODO:
(preferably with the option to re-add them when unhiding)
+ Add a link for the hidden 'h' option at /hist
+2.1 - ?
+ - Skin support
+ - 'show all items' tab to large forms
+ - Allow items to be selected using the mouse on the dropdown search
+ - [spoiler] tag produces mouseover-style spoilers instead of ROT13
+ - Fixed tiny timezone-related bug
+ - Re-added release list dropdown on VN pages
+
2.0 - 2008-12-20
- New layout
- Massive code rewrite:
diff --git a/lib/VNDB/Handler/ULists.pm b/lib/VNDB/Handler/ULists.pm
index 5353dbc9..f86cba83 100644
--- a/lib/VNDB/Handler/ULists.pm
+++ b/lib/VNDB/Handler/ULists.pm
@@ -70,7 +70,8 @@ sub rlist {
$f->{e} =~ /^([rv])(\d+)$/ && $1 eq 'r' ? (rstat => $2) : (vstat => $2)
) if $f->{e} ne 'del';
- $self->resRedirect('/r'.$id, 'temp');
+ (my $ref = $self->reqHeader('Referer')||"/r$id") =~ s/^\Q$self->{url}//;
+ $self->resRedirect($ref, 'temp');
}
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index 35a9ac8c..b53b60ee 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -397,9 +397,9 @@ sub _releases {
a href => "/r$rel->{id}", title => $rel->{original}||$rel->{title}, $rel->{title};
end;
td class => 'tc5';
- if($rel->{ulist}) {
- a href => "/r$rel->{id}";
- lit liststat $rel->{ulist};
+ if($self->authInfo->{id}) {
+ a href => "/r$rel->{id}", id => "rlsel_$rel->{id}";
+ lit $rel->{ulist} ? liststat $rel->{ulist} : '--';
end;
} else {
txt ' ';