summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-01-27 12:32:37 +0100
committerYorhel <git@yorhel.nl>2011-01-27 12:32:37 +0100
commit2e12ebc8ca793160cb0cd54c1fd0bfd42676c1ae (patch)
tree3e1bb12bf4104f0aaa2e0b8b4be583a4197fc3d2 /lib/VNDB/Handler
parent1216d74abfa0a40ab6abcef338f2fb891cd0fba6 (diff)
TUWF: Added tag name to several end() calls
Haven't found any bugs this way, yet. I doubt there'll be any problems, but it's a nice new feature that could help quite a bit. :-D
Diffstat (limited to 'lib/VNDB/Handler')
-rw-r--r--lib/VNDB/Handler/Discussions.pm10
-rw-r--r--lib/VNDB/Handler/Misc.pm24
-rw-r--r--lib/VNDB/Handler/Producers.pm16
-rw-r--r--lib/VNDB/Handler/Releases.pm10
-rw-r--r--lib/VNDB/Handler/Tags.pm36
-rw-r--r--lib/VNDB/Handler/ULists.pm16
-rw-r--r--lib/VNDB/Handler/Users.pm10
-rw-r--r--lib/VNDB/Handler/VNBrowse.pm2
-rw-r--r--lib/VNDB/Handler/VNEdit.pm4
-rw-r--r--lib/VNDB/Handler/VNPage.pm24
10 files changed, 76 insertions, 76 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm
index 05053f34..845e8e19 100644
--- a/lib/VNDB/Handler/Discussions.pm
+++ b/lib/VNDB/Handler/Discussions.pm
@@ -46,7 +46,7 @@ sub thread {
end;
}
end;
- end;
+ end 'div';
$self->htmlBrowseNavigate("/t$tid/", $page, [ $t->{count}, 25 ], 't', 1);
div class => 'mainbox thread';
@@ -82,7 +82,7 @@ sub thread {
end;
}
end;
- end;
+ end 'div';
$self->htmlBrowseNavigate("/t$tid/", $page, [ $t->{count}, 25 ], 'b', 1);
if($t->{locked}) {
@@ -105,7 +105,7 @@ sub thread {
input type => 'submit', value => mt('_thread_quickreply_full'), class => 'submit', name => 'fullreply';
end;
end;
- end;
+ end 'form';
} elsif(!$self->authCan('board')) {
div class => 'mainbox';
h1 mt '_thread_noreply_title';
@@ -319,7 +319,7 @@ sub board {
a href => '/t/'.($iid ? $type.$iid : $type ne 'ge' ? 'db' : $type).'/new', mt '_disboard_startnew';
}
end;
- end;
+ end 'div';
_threadlist($self, $list, $f, $np, "/t/$type$iid", $type.$iid) if @$list;
@@ -400,7 +400,7 @@ sub _threadlist {
lit $self->{l10n}->date($o->{ldate});
end;
end;
- end;
+ end 'tr';
}
);
}
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm
index b0911f6b..e7797259 100644
--- a/lib/VNDB/Handler/Misc.pm
+++ b/lib/VNDB/Handler/Misc.pm
@@ -60,7 +60,7 @@ sub homepage {
end;
}
end;
- end;
+ end 'div';
table class => 'mainbox threelayout';
Tr;
@@ -82,7 +82,7 @@ sub homepage {
end;
}
end;
- end;
+ end 'td';
# Announcements
td;
@@ -100,7 +100,7 @@ sub homepage {
lit bb2html $post->{msg}, 150;
end;
}
- end;
+ end 'td';
# Recent posts
td;
@@ -120,9 +120,9 @@ sub homepage {
end;
}
end;
- end;
+ end 'td';
- end;
+ end 'tr';
Tr;
# Random visual novels
@@ -138,7 +138,7 @@ sub homepage {
end;
}
end;
- end;
+ end 'td';
# Upcoming releases
td;
@@ -158,7 +158,7 @@ sub homepage {
end;
}
end;
- end;
+ end 'td';
# Just released
td;
@@ -178,10 +178,10 @@ sub homepage {
end;
}
end;
- end;
+ end 'td';
- end; # /tr
- end; # /table
+ end 'tr';
+ end 'table';
$self->htmlFooter;
}
@@ -273,7 +273,7 @@ sub history {
a $f->{r} ? (class => 'optselected') : (), href => $u->(r => 1), mt '_hist_filter_increl';
end;
}
- end;
+ end 'div';
$self->htmlBrowseHist($list, $f, $np, $u->());
$self->htmlFooter;
@@ -407,7 +407,7 @@ sub opensearch {
tag 'Url', type => 'application/opensearchdescription+xml', rel => 'self', template => $self->{url}.'/opensearch.xml', undef;
tag 'Query', role => 'example', searchTerms => 'Tsukihime', undef;
tag 'moz:SearchForm', $self->{url}.'/v/all';
- end;
+ end 'OpenSearchDescription';
}
diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm
index ad947830..5030c1a3 100644
--- a/lib/VNDB/Handler/Producers.pm
+++ b/lib/VNDB/Handler/Producers.pm
@@ -94,7 +94,7 @@ sub page {
a href => $_->[1], mt "_prodpage_$_->[0]";
txt ' - ' if $_ ne $links[$#links];
}
- end;
+ end 'p';
if(@{$p->{relations}}) {
my %rel;
@@ -110,7 +110,7 @@ sub page {
}
br;
}
- end;
+ end 'p';
}
if($p->{desc}) {
@@ -118,7 +118,7 @@ sub page {
lit bb2html $p->{desc};
end;
}
- end;
+ end 'div';
_releases($self, $p);
@@ -187,11 +187,11 @@ sub _releases {
txt ' ';
}
end;
- end;
+ end 'tr';
}
}
- end;
- end;
+ end 'table';
+ end 'div';
}
@@ -307,7 +307,7 @@ sub edit {
a href => '#', mt '_pedit_rel_addbut';
end;
end;
- end;
+ end 'table';
}],
]);
$self->htmlFooter;
@@ -392,7 +392,7 @@ sub list {
}
}
clearfloat;
- end;
+ end 'div';
$self->htmlBrowseNavigate($pageurl, $f->{p}, $np, 'b');
$self->htmlFooter;
}
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm
index be1d8bd4..f65d3e0c 100644
--- a/lib/VNDB/Handler/Releases.pm
+++ b/lib/VNDB/Handler/Releases.pm
@@ -250,10 +250,10 @@ sub _infotable {
option value => -1, mt '_relinfo_user_del' if $rl;
end;
end;
- end;
+ end 'tr';
}
- end;
+ end 'table';
}
@@ -456,7 +456,7 @@ sub _form {
option value => 3, mt '_redit_form_prod_both';
end; end;
td class => 'tc_add'; a id => 'producer_add', href => '#', mt '_redit_form_prod_addbut'; end;
- end; end;
+ end; end 'table';
}],
],
@@ -509,7 +509,7 @@ sub browse {
end;
input type => 'hidden', class => 'hidden', name => 'fil', id => 'fil', value => $f->{fil};
end;
- end;
+ end 'form';
my $uri = sprintf '/r?q=%s;fil=%s', uri_escape($f->{q}), $f->{fil};
$self->htmlBrowse(
@@ -541,7 +541,7 @@ sub browse {
a href => "/r$l->{id}", title => $l->{original}||$l->{title}, shorten $l->{title}, 90;
b class => 'grayedout', ' (patch)' if $l->{patch};
end;
- end;
+ end 'tr';
},
) if @$list;
if(($f->{q} || $f->{fil}) && !@$list) {
diff --git a/lib/VNDB/Handler/Tags.pm b/lib/VNDB/Handler/Tags.pm
index 2c1d120c..6a4cb760 100644
--- a/lib/VNDB/Handler/Tags.pm
+++ b/lib/VNDB/Handler/Tags.pm
@@ -69,7 +69,7 @@ sub tagpage {
p mt '_tagp_pending_msg';
end;
}
- end;
+ end 'div';
}
div class => 'mainbox';
@@ -87,7 +87,7 @@ sub tagpage {
txt " > $t->{name}";
br;
}
- end;
+ end 'p';
if($t->{description}) {
p class => 'description';
@@ -101,7 +101,7 @@ sub tagpage {
lit xml_escape($_).'<br />' for (@{$t->{aliases}});
end;
}
- end;
+ end 'div';
_childtags($self, $t) if @{$t->{childs}};
@@ -118,7 +118,7 @@ sub tagpage {
p; br; br; txt mt '_tagp_novn'; end;
}
p; br; txt mt '_tagp_cached'; end;
- end;
+ end 'div';
$self->htmlBrowseVN($list, $f, $np, "/g$t->{id}?m=$f->{m}", 1) if @$list;
}
@@ -168,12 +168,12 @@ sub _childtags {
end;
}
end;
- end;
+ end 'li';
}
- end;
+ end 'ul';
clearfloat;
br;
- end;
+ end 'div';
}
@@ -325,7 +325,7 @@ sub taglist {
if(!@$t) {
p mt '_tagb_noresults';
}
- end;
+ end 'div';
if(@$t) {
$self->htmlBrowse(
class => 'taglist',
@@ -349,7 +349,7 @@ sub taglist {
b class => 'grayedout', ' '.mt '_tagb_note_del' if $l->{state} == 1;
}
end;
- end;
+ end 'tr';
}
);
}
@@ -424,10 +424,10 @@ sub taglinks {
a href => "/v$o->{id}", $o->{title};
end;
}
- end;
+ end 'ul';
}
p mt '_taglink_fil_add' unless $f->{v} && $f->{u} && $f->{t};
- end;
+ end 'div';
$self->htmlBrowse(
class => 'taglinks',
@@ -546,7 +546,7 @@ sub vntagmod {
li mt '_tagv_msg_cache';
end;
end;
- end;
+ end 'div';
$self->htmlForm({ action => "/v$vid/tagmod", nosubmit => 1 }, tagmod => [ mt('_tagv_frm_title'),
[ hidden => short => 'taglinks', value => '' ],
[ static => nolabel => 1, content => sub {
@@ -566,7 +566,7 @@ sub vntagmod {
td class => 'tc_allspoil', mt '_tagv_col_spoiler';
td class => 'tc_allwho', '';
end;
- end;
+ end 'thead';
tfoot; Tr;
td colspan => 6;
input type => 'submit', class => 'submit', value => mt('_tagv_save'), style => 'float: right';
@@ -577,7 +577,7 @@ sub vntagmod {
lit mt '_tagv_addmsg';
end;
end;
- end; end;
+ end; end 'tfoot';
tbody id => 'tagtable';
for my $t (sort { $a->{name} cmp $b->{name} } @$tags) {
my $m = (grep $_->{tag} == $t->{id}, @$my)[0] || {};
@@ -603,8 +603,8 @@ sub vntagmod {
end;
end;
}
- end;
- end;
+ end 'tbody';
+ end 'table';
} ],
]);
$self->htmlFooter;
@@ -682,8 +682,8 @@ sub tagindex {
end;
end;
- end; # /tr
- end; # /table
+ end 'tr';
+ end 'table';
$self->htmlFooter;
}
diff --git a/lib/VNDB/Handler/ULists.pm b/lib/VNDB/Handler/ULists.pm
index 2657481e..94007a73 100644
--- a/lib/VNDB/Handler/ULists.pm
+++ b/lib/VNDB/Handler/ULists.pm
@@ -210,7 +210,7 @@ sub votelist {
option value => -1, 'revoke';
end;
end;
- end;
+ end 'tr';
}) : (),
);
end if $own;
@@ -269,7 +269,7 @@ sub wishlist {
$_ == -1 ? mt '_wishlist_prio_all' : mt "_wish_$_"
for (-1, @{$self->{wishlist_status}});
end;
- end;
+ end 'div';
if($own) {
my $code = $self->authGetCode("/u$uid/wish");
@@ -315,7 +315,7 @@ sub wishlist {
end;
}) : (),
);
- end if $own;
+ end 'form' if $own;
$self->htmlFooter;
}
@@ -404,7 +404,7 @@ sub vnlist {
a href => $url->(t => -1), -1 == $f->{t} ? (class => 'optselected') : (), mt '_rlist_all';
a href => $url->(t => $_), $_ == $f->{t} ? (class => 'optselected') : (), mt '_vnlist_status_'.$_ for @{$self->{vnlist_status}};
end;
- end;
+ end 'div';
_vnlist_browse($self, $own, $list, $np, $f, $url, $uid);
$self->htmlFooter;
@@ -458,7 +458,7 @@ sub _vnlist_browse {
lit $txt;
end;
td class => 'tc8', $i->{vote} || '-';
- end;
+ end 'tr';
for (@{$i->{rels}}) {
Tr class => "collapse relhid collapse_vid$i->{vid}".($n%2 ? '':' odd');
@@ -476,7 +476,7 @@ sub _vnlist_browse {
end;
td class => 'tc6', $_->{status} ? mt '_rlist_status_'.$_->{status} : '';
td class => 'tc7_8', colspan => 2, '';
- end;
+ end 'tr';
}
},
@@ -505,11 +505,11 @@ sub _vnlist_browse {
input type => 'submit', value => mt '_rlist_update';
end;
td class => 'tc7_8', colspan => 2, mt '_rlist_releasenote';
- end;
+ end 'tr';
}) : (),
);
- end if $own;
+ end 'form' if $own;
}
1;
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm
index fcef3d44..44ffa60b 100644
--- a/lib/VNDB/Handler/Users.pm
+++ b/lib/VNDB/Handler/Users.pm
@@ -113,8 +113,8 @@ sub userpage {
}
end;
end;
- end;
- end;
+ end 'table';
+ end 'div';
if(!$u->{hide_list} && $votes) {
div class => 'mainbox';
@@ -534,7 +534,7 @@ sub list {
td class => 'tc5';
lit !$l->{c_tags} ? 0 : qq|<a href="/g/links?u=$l->{id}">$l->{c_tags}</a>|;
end;
- end;
+ end 'tr';
},
);
$self->htmlFooter;
@@ -633,7 +633,7 @@ sub notifies {
: 'item_edit'),
sprintf('<i>%s</i>', xml_escape $l->{c_title}), sprintf('<i>%s</i>', xml_escape $l->{username});
end;
- end;
+ end 'tr';
},
footer => sub {
Tr;
@@ -663,7 +663,7 @@ sub notifies {
input type => 'submit', name => 'set', value => mt '_usern_set_submit';
end;
end;
- end;
+ end 'form';
$self->htmlFooter;
}
diff --git a/lib/VNDB/Handler/VNBrowse.pm b/lib/VNDB/Handler/VNBrowse.pm
index 53c07db2..0b56e1cb 100644
--- a/lib/VNDB/Handler/VNBrowse.pm
+++ b/lib/VNDB/Handler/VNBrowse.pm
@@ -64,7 +64,7 @@ sub list {
end;
input type => 'hidden', class => 'hidden', name => 'fil', id => 'fil', value => $f->{fil};
end;
- end; # /form
+ end 'form';
$self->htmlBrowseVN($list, $f, $np, "/v/$char?q=$quri;fil=$f->{fil}", $f->{fil} =~ /tag_inc-/);
$self->htmlFooter(prefs => ['filter_vn']);
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm
index 8265aa35..733b7ba7 100644
--- a/lib/VNDB/Handler/VNEdit.pm
+++ b/lib/VNDB/Handler/VNEdit.pm
@@ -195,7 +195,7 @@ sub _form {
$frm->{img_nsfw} ? (checked => 'checked') : ();
label class => 'checkbox', for => 'img_nsfw', mt '_vnedit_image_nsfw_check';
p mt '_vnedit_image_nsfw_msg';
- end;
+ end 'div';
}],
],
@@ -230,7 +230,7 @@ sub _form {
a href => '#', mt '_vnedit_rel_addbut';
end;
end;
- end;
+ end 'table';
}],
],
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index e0c597d9..ee121c9b 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -88,7 +88,7 @@ sub page {
end;
}
}
- end;
+ end 'div'; # /vnimg
# general info
table;
@@ -147,8 +147,8 @@ sub page {
end;
end;
- end;
- end;
+ end 'table';
+ end 'div';
clearfloat;
# tags
@@ -172,7 +172,7 @@ sub page {
}
end;
}
- end;
+ end 'div'; # /mainbox
_releases($self, $v, $r);
_stats($self, $v);
@@ -273,7 +273,7 @@ sub _producers {
br;
}
end;
- end;
+ end 'tr';
}
}
@@ -302,7 +302,7 @@ sub _relations {
}
end;
end;
- end;
+ end 'tr';
}
@@ -337,7 +337,7 @@ sub _anime {
}
}
end;
- end;
+ end 'tr';
}
@@ -381,7 +381,7 @@ sub _useroptions {
end;
}
end;
- end;
+ end 'tr';
}
@@ -448,11 +448,11 @@ sub _releases {
txt ' ';
}
end;
- end;
+ end 'tr';
}
}
- end;
- end;
+ end 'table';
+ end 'div';
}
@@ -491,7 +491,7 @@ sub _screenshots {
}
end;
}
- end;
+ end 'div';
}