summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/tpl/vnbrowse2
-rw-r--r--data/tpl/vnedit5
2 files changed, 4 insertions, 3 deletions
diff --git a/data/tpl/vnbrowse b/data/tpl/vnbrowse
index fd071c49..42514bcd 100644
--- a/data/tpl/vnbrowse
+++ b/data/tpl/vnbrowse
@@ -12,7 +12,7 @@
</form>
<div id="adsearch" [[= !$p{searchquery} ? '' : ' style="display: none"' ]]>
- <b>Categories</b> (boolean and, selecting more gives less results)
+ <b>Categories</b> (boolean and, selecting more gives less results. The categories are explained on <a href="/d1">this page</a>)
<ul id="cat">
[[ for my $c (qw| e g t p h l s |) { ]]-
-[[= $c !~ /[thl]/ ? '<li>' : '<br />' ]][[: $VNDB::CAT->{$c}[0] ]]-
diff --git a/data/tpl/vnedit b/data/tpl/vnedit
index f7122149..66d0e40f 100644
--- a/data/tpl/vnedit
+++ b/data/tpl/vnedit
@@ -59,9 +59,10 @@
{ type => 'sub', title => 'Categories', short => 'cat' },
{ type => 'hidden', short => 'categories' },
{ type => 'static', raw => 1, text => eval {
- my $r = '<ul id="cat">';
+ my $r = 'Please read the <a href="/d1">category descriptions</a> before adding or modifying categories!<br /><br />'
+ .'<ul id="cat">';
for my $c (qw| e g t p h l s |) {
- $r .= ($c !~ /[thl]/ ? '<li>' : '<br />').$VNDB::CAT->{$c}[0].'<ul>';
+ $r .= ($c !~ /[thl]/ ? '<li>' : '<br />').$VNDB::CAT->{$c}[0].'<a href="/d1#'.$VNDB::CAT->{$c}[2].'" class="help">?</a><ul>';
for (sort keys %{$VNDB::CAT->{$c}[1]}) {
$r .= sprintf '<li><a href="#" id="cat_%1$s"><b id="b_%1$s">-</b> %2$s</a></li>',
$c.$_, $VNDB::CAT->{$c}[1]{$_};