summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/docs/13
-rw-r--r--data/docs/22
-rw-r--r--data/docs/64
-rw-r--r--data/docs/72
-rw-r--r--lib/VNDB/Handler/Discussions.pm18
-rw-r--r--lib/VNDB/Handler/ULists.pm10
-rw-r--r--lib/VNDB/Handler/VNBrowse.pm6
-rw-r--r--lib/VNDB/Handler/VNPage.pm2
-rw-r--r--lib/VNDB/Util/CommonHTML.pm18
-rw-r--r--lib/VNDB/Util/FormHTML.pm4
-rw-r--r--static/f/script.js17
-rw-r--r--static/f/style.css3
12 files changed, 44 insertions, 45 deletions
diff --git a/data/docs/1 b/data/docs/1
index 48df9d70..6485dc43 100644
--- a/data/docs/1
+++ b/data/docs/1
@@ -83,7 +83,7 @@
<i>Linear</i>.
</p>
<dl>
- <dt>Linear</d><dd>
+ <dt>Linear</dt><dd>
A game with a linear plot has a static story; it is not possible to get different paths
or endings. Many games in this category do not prompt the player with choices and simply
tell the story as it is. This is, however, not a rule: it is also possible for a game
@@ -135,6 +135,7 @@
:SUB:Protagonist
<p>
Indicates some information about the character the player takes control of.
+</p>
<dl>
<dt>Male</dt><dd>
The protagonist is male.
diff --git a/data/docs/2 b/data/docs/2
index e0c7d619..c6428c55 100644
--- a/data/docs/2
+++ b/data/docs/2
@@ -16,7 +16,7 @@
The title should be based upon the title of the original release.<br />
If the title uses the Latin alphabet, use our <a href="/d5.2">capitalisation guidelines</a>.<br />
Otherwise, <a href="/d5.1">romanise</a> according to our guidelines.
- </dt><dt>Original title</dt><dd>
+ </dd><dt>Original title</dt><dd>
If the name is officially under a different title (usually because of different
character sets), put the original title here.
</dd><dt>Aliases</dt><dd>
diff --git a/data/docs/6 b/data/docs/6
index 35b79bea..b4f4f809 100644
--- a/data/docs/6
+++ b/data/docs/6
@@ -14,7 +14,7 @@
<br />
For more information see <a href="http://en.wikipedia.org/wiki/Visual_Novel">
the Wikipedia article on visual novels</a> or the description on
- <a href="http://visual-novels.net/vn/index.php?option=com_content&task=view&id=259&Itemid=47">Visual-Novels.net</a>.
+ <a href="http://visual-novels.net/vn/index.php?option=com_content&amp;task=view&amp;id=259&amp;Itemid=47">Visual-Novels.net</a>.
To get a general idea of the genre, try one of the free short visual novels from
<a href="http://at2006.haeleth.net/release.php">al|together 2006</a>.
</p>
@@ -49,7 +49,7 @@
:SUB:How can I help VNDB?
-</p>
+<p>
There are many ways to contribute to VNDB. First of all you can freely
edit all information found on this website, so if you find any errors
just click the "edit" link on the top right of the page. You can also
diff --git a/data/docs/7 b/data/docs/7
index fa6fb2d2..ab9fe945 100644
--- a/data/docs/7
+++ b/data/docs/7
@@ -28,7 +28,7 @@
Founder of VNDB and still active as the main developer.
</dd><dt><a href="/u93">applehq</a></dt><dd>
Moderator for both the discussion board and database entries.
- </dd><dt><a href="/u4" class="retired">hillie</a> <b>[retired]</b><dt><dd>
+ </dd><dt><a href="/u4" class="retired">hillie</a> <b>[retired]</b></dt><dd>
Responsible for beta testing of the first few versions of the site and
moderating user submitted content.
</dd>
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm
index 6e5273d7..286e3ee5 100644
--- a/lib/VNDB/Handler/Discussions.pm
+++ b/lib/VNDB/Handler/Discussions.pm
@@ -299,15 +299,15 @@ sub tagbrowse {
txt ':';
a href => "/$type$iid", $ititle;
}
- p class => 'center';
- if(!@$list) {
- b 'No related threads found';
- br; br;
- a href => "/t/$type$iid/new", 'Why not create one yourself?';
- } else {
- a href => '/t/'.($iid ? $type.$iid : 'db').'/new', 'Start a new thread';
- }
- end;
+ end;
+ p class => 'center';
+ if(!@$list) {
+ b 'No related threads found';
+ br; br;
+ a href => "/t/$type$iid/new", 'Why not create one yourself?';
+ } else {
+ a href => '/t/'.($iid ? $type.$iid : 'db').'/new', 'Start a new thread';
+ }
end;
end;
diff --git a/lib/VNDB/Handler/ULists.pm b/lib/VNDB/Handler/ULists.pm
index 0ef4c41c..5353dbc9 100644
--- a/lib/VNDB/Handler/ULists.pm
+++ b/lib/VNDB/Handler/ULists.pm
@@ -153,8 +153,7 @@ sub wishlist {
td class => 'tc3', date $i->{added}, 'compact';
end;
},
- footer => sub {
- return if !$own;
+ $own ? (footer => sub {
Tr;
td colspan => 3;
Select name => 'batchedit', id => 'batchedit';
@@ -167,7 +166,7 @@ sub wishlist {
end;
end;
end;
- },
+ }) : (),
);
end if $own;
$self->htmlFooter;
@@ -309,8 +308,7 @@ sub _vnlist_browse {
}
},
- footer => sub {
- return if !$own;
+ $own ? (footer => sub {
Tr;
td class => 'tc1', colspan => 3;
Select id => 'batchedit', name => 'batchedit';
@@ -328,7 +326,7 @@ sub _vnlist_browse {
end;
td class => 'tc2', colspan => 2, '* Obtained/finished/total';
end;
- }
+ }) : (),
);
end if $own;
diff --git a/lib/VNDB/Handler/VNBrowse.pm b/lib/VNDB/Handler/VNBrowse.pm
index c867b550..8af5791e 100644
--- a/lib/VNDB/Handler/VNBrowse.pm
+++ b/lib/VNDB/Handler/VNBrowse.pm
@@ -132,7 +132,7 @@ sub _filters {
div id => 'advoptions', class => 'hidden';
h2;
- lit 'Categories <p>(boolean and, selecting more gives less results. The categories are explained on <a href="/d1">this page</a>)</p>';
+ lit 'Categories <b>(boolean and, selecting more gives less results. The categories are explained on <a href="/d1">this page</a>)</b>';
end;
ul id => 'catselect';
for my $c (qw| e g t p h l s |) {
@@ -147,7 +147,7 @@ sub _filters {
end;
h2;
- lit 'Languages <p>(boolean or, selecting more gives more results)</p>';
+ lit 'Languages <b>(boolean or, selecting more gives more results)</b>';
end;
for(sort @{$self->dbLanguages}) {
span;
@@ -160,7 +160,7 @@ sub _filters {
}
h2;
- lit 'Platforms <p>(boolean or, selecting more gives more results)</p>';
+ lit 'Platforms <b>(boolean or, selecting more gives more results)</b>';
end;
for(sort keys %{$self->{platforms}}) {
next if $_ eq 'oth';
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index 57d30be6..ab90bc4e 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -67,7 +67,7 @@ sub page {
img id => 'nsfw_hid', src => sprintf("%s/cv/%02d/%d.jpg", $self->{url_static}, $v->{image}%100, $v->{image}), alt => $v->{title};
p id => 'nsfw_show';
txt "This image has been flagged\nas Not Safe For Work.\n\n";
- a href => '#', id => 'nsfw_show', 'Show me anyway';
+ a href => '#', 'Show me anyway';
txt "\n\n(This warning can be disabled in your account)";
end;
} else {
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index 6f85f8bd..70fdfde3 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -179,10 +179,6 @@ sub htmlBrowse {
end;
end;
- # rows
- $opt{row}->($self, $_+1, $opt{items}[$_])
- for 0..$#{$opt{items}};
-
# footer
if($opt{footer}) {
tfoot;
@@ -190,6 +186,10 @@ sub htmlBrowse {
end;
}
+ # rows
+ $opt{row}->($self, $_+1, $opt{items}[$_])
+ for 0..$#{$opt{items}};
+
end;
end;
@@ -378,7 +378,7 @@ sub htmlItemMessage {
p class => 'locked', 'Locked for editing'
} elsif(!$self->authInfo->{id}) {
p class => 'locked';
- lit 'You need to be <a href="/u/login">logged in</a> to edit this page</a>';
+ lit 'You need to be <a href="/u/login">logged in</a> to edit this page';
end;
} elsif(!$self->authCan('edit')) {
p class => 'locked', "You're not allowed to edit this page";
@@ -401,6 +401,10 @@ sub htmlVoteStats {
thead; Tr;
td colspan => 2, 'Vote graph';
end; end;
+ tfoot; Tr;
+ td colspan => 2, sprintf '%d votes total, average %.2f%s', $count, $total/$count,
+ $type eq 'v' ? ' ('.$self->{votes}[sprintf '%.0f', $total/$count-1].')' : '';
+ end; end;
for (reverse 0..$#$stats) {
Tr;
td class => 'number', $_+1;
@@ -410,10 +414,6 @@ sub htmlVoteStats {
end;
end;
}
- tfoot; Tr;
- td colspan => 2, sprintf '%d votes total, average %.2f%s', $count, $total/$count,
- $type eq 'v' ? ' ('.$self->{votes}[sprintf '%.0f', $total/$count-1].')' : '';
- end; end;
end;
my $recent = $self->dbVoteGet(
diff --git a/lib/VNDB/Util/FormHTML.pm b/lib/VNDB/Util/FormHTML.pm
index b6b7f57b..80b8c4f3 100644
--- a/lib/VNDB/Util/FormHTML.pm
+++ b/lib/VNDB/Util/FormHTML.pm
@@ -211,7 +211,7 @@ sub htmlForm {
if(@subs > 2) {
ul class => 'maintabs notfirst', id => 'jt_select';
for (0..$#subs/2) {
- (my $short = lc $subs[$_*2]) =~ s/[^\w\d]+/_/;
+ (my $short = lc $subs[$_*2]) =~ s/[^\w\d]+/_/g;
li class => 'left';
a href => "#$short", id => "jt_sel_$short", $subs[$_*2];
end;
@@ -222,7 +222,7 @@ sub htmlForm {
# form subs
while(my($name, $parts) = (shift(@subs), shift(@subs))) {
last if !$name || !$parts;
- (my $short = lc $name) =~ s/[^\w\d]+/_/;
+ (my $short = lc $name) =~ s/[^\w\d]+/_/g;
div class => 'mainbox', id => 'jt_box_'.$short;
h1 $name;
fieldset;
diff --git a/static/f/script.js b/static/f/script.js
index 739b52d0..dcc901e0 100644
--- a/static/f/script.js
+++ b/static/f/script.js
@@ -335,15 +335,16 @@ DOMLoad(function() {
// show/hide NSFW VN image
- cl('nsfw_show', function() {
- x('nsfw_show').style.display = 'none';
- x('nsfw_hid').style.display = 'block';
- x('nsfw_hid').onclick = function() {
- x('nsfw_show').style.display = 'block';
- x('nsfw_hid').style.display = 'none';
+ if(x('nsfw_show'))
+ x('nsfw_show').getElementsByTagName('a')[0].onclick = function() {
+ x('nsfw_show').style.display = 'none';
+ x('nsfw_hid').style.display = 'block';
+ x('nsfw_hid').onclick = function() {
+ x('nsfw_show').style.display = 'block';
+ x('nsfw_hid').style.display = 'none';
+ };
+ return false
};
- return false
- });
// NSFW toggle for screenshots
cl('nsfwhide', function() {
diff --git a/static/f/style.css b/static/f/style.css
index 06c2fd0a..e1ca5036 100644
--- a/static/f/style.css
+++ b/static/f/style.css
@@ -77,10 +77,9 @@ p.locked {
font-style: italic;
margin: 0!important;
}
-h2 p {
+#maincontent h2 b {
font: 8pt "Tahoma";
font-weight: normal;
- display: inline;
}
p.description {
margin: 10px 100px!important;