summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authoryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-06-28 11:22:53 +0000
committeryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-06-28 11:22:53 +0000
commit181e434ac94f5159b00582b97e33356a27a56b1b (patch)
tree1febd4070d6baf2878a1b0ef2d243d8b103c211a /data
parent5add940935c084a10b742bc808644906ea7b7b06 (diff)
Added links to d1 and the edit notes field shouldnt be hidden when adding a VN
git-svn-id: svn://vndb.org/vndb@40 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
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]{$_};