summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-03-26 19:48:00 +0100
committerYorhel <git@yorhel.nl>2009-03-26 19:48:00 +0100
commitb3e0e501adb890bbc93791aee1474c7e2e589560 (patch)
treef3dd07f707501626ab540292a3c8145516a5db47 /lib
parentb666d4a0e0a14500364f4b56e3f09d2aa086bc88 (diff)
Swapped "You" and "Others" columns on /v+/tagmod
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Tags.pm12
-rw-r--r--lib/VNDB/Handler/VNPage.pm2
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/VNDB/Handler/Tags.pm b/lib/VNDB/Handler/Tags.pm
index eb2c4722..c5de0c44 100644
--- a/lib/VNDB/Handler/Tags.pm
+++ b/lib/VNDB/Handler/Tags.pm
@@ -454,8 +454,8 @@ sub vntagmod {
thead;
Tr;
td '';
- td colspan => 2, class => 'tc2_1', 'Others';
- td colspan => 2, class => 'tc3_1', 'You';
+ td colspan => 2, class => 'tc2_1', 'You';
+ td colspan => 2, class => 'tc3_1', 'Others';
end;
Tr;
my $i=0;
@@ -480,13 +480,13 @@ sub vntagmod {
td class => 'tc1';
a href => "/g$t->{id}", $t->{name};
end;
- td class => 'tc2';
+ td class => 'tc2', $m->{vote}||0;
+ td class => 'tc3', defined $m->{spoiler} ? $m->{spoiler} : -1;
+ td class => 'tc4';
tagscore !$m->{vote} ? $t->{rating} : $t->{cnt} == 1 ? 0 : ($t->{rating}*$t->{cnt} - $m->{vote}) / ($t->{cnt}-1);
i ' ('.($t->{cnt} - ($m->{vote} ? 1 : 0)).')';
end;
- td class => 'tc3', sprintf '%.2f', $t->{spoiler};
- td class => 'tc4', $m->{vote}||0;
- td class => 'tc5', defined $m->{spoiler} ? $m->{spoiler} : -1;
+ td class => 'tc5', sprintf '%.2f', $t->{spoiler};
end;
}
end;
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index b6e8970f..8fb56bf0 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -139,7 +139,7 @@ sub page {
clearfloat;
# tags
- my $t = $self->dbTagStats(vid => $v->{id}, order => 'avg(tv.vote) DESC', minrating => 0);
+ my $t = $self->dbTagStats(vid => $v->{id}, order => 'avg(tv.vote) DESC', minrating => 0, results => 30);
if(@$t) {
div id => 'tagops';
a href => '#', 'hide spoilers';