summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-10-31 15:52:13 +0100
committerYorhel <git@yorhel.nl>2010-10-31 15:52:13 +0100
commit25aa82f5e15115e58d91ecb09d5f0da75ccba354 (patch)
treeb9de6aef55f51f7b58d7c1f77614b0aa6dd076be /lib
parenta30d60168a1c2b6494aaba4da8b025669ad6e131 (diff)
Display friendly message in the VN edit scr tab when no release is known
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/VNEdit.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm
index d9c69f23..d5fa1060 100644
--- a/lib/VNDB/Handler/VNEdit.pm
+++ b/lib/VNDB/Handler/VNEdit.pm
@@ -216,7 +216,9 @@ sub _form {
}],
],
- !@$r ? () : ( vn_scr => [ mt('_vnedit_scr'),
+ vn_scr => [ mt('_vnedit_scr'), !@$r ? (
+ [ static => nolabel => 1, content => mt '_vnedit_scrnorel' ],
+ ) : (
[ hidden => short => 'screenshots' ],
[ static => nolabel => 1, content => sub {
div class => 'warning';
@@ -230,7 +232,7 @@ sub _form {
option value => $_->{id}, sprintf '[%s] %s (r%d)', join(',', @{$_->{languages}}), $_->{title}, $_->{id} for (@$r);
end;
}],
- ])
+ )]
);
}