diff options
author | Yorhel <git@yorhel.nl> | 2008-12-09 13:08:08 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-12-09 13:08:08 +0100 |
commit | 66bc1533761ae28c0c8cbcea91b80c0319d86b39 (patch) | |
tree | 9b321ebbdc34c5b57501dfd0278b9b0fcadc8efd /lib/VNDB/Handler | |
parent | 62ab2e931cf21236e83d4483d8cb4eb773f26a89 (diff) |
Code cleanup: removed leading spaces and combined DB/{Votes,VNList,WishList}.pm into ULists.pm
Diffstat (limited to 'lib/VNDB/Handler')
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 4 | ||||
-rw-r--r-- | lib/VNDB/Handler/Misc.pm | 10 | ||||
-rw-r--r-- | lib/VNDB/Handler/Producers.pm | 2 | ||||
-rw-r--r-- | lib/VNDB/Handler/Releases.pm | 2 | ||||
-rw-r--r-- | lib/VNDB/Handler/Users.pm | 4 | ||||
-rw-r--r-- | lib/VNDB/Handler/VNBrowse.pm | 2 | ||||
-rw-r--r-- | lib/VNDB/Handler/VNEdit.pm | 4 | ||||
-rw-r--r-- | lib/VNDB/Handler/VNPage.pm | 6 |
8 files changed, 17 insertions, 17 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index c7dd17d6..5c7ef238 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -101,7 +101,7 @@ sub thread { br; input type => 'submit', value => 'Reply', class => 'submit'; end; - end; + end; end; } elsif(!$self->authCan('board')) { div class => 'mainbox'; @@ -302,7 +302,7 @@ sub tagbrowse { p class => 'center'; if(!@$list) { b 'No related threads found'; - br; br; + 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'; diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm index 85aacdf2..60af53e7 100644 --- a/lib/VNDB/Handler/Misc.pm +++ b/lib/VNDB/Handler/Misc.pm @@ -14,7 +14,7 @@ YAWF::register( qr{d([1-9]\d*)}, \&docpage, qr{nospam}, \&nospam, qr{([vrp])([1-9]\d*)/(lock|hide)}, \&itemmod, - + # redirects for old URLs qr{(.*[^/]+)/+}, sub { $_[0]->resRedirect("/$_[1]", 'perm') }, qr{p}, sub { $_[0]->resRedirect('/p/all', 'perm') }, @@ -139,11 +139,11 @@ sub history { my $revurl = "/$tc$i->{iid}.$i->{rev}"; Tr $n % 2 ? ( class => 'odd' ) : (); - td class => 'tc1_1'; - a href => $revurl, "$tc$i->{iid}"; + td class => 'tc1_1'; + a href => $revurl, "$tc$i->{iid}"; end; - td class => 'tc1_2'; - a href => $revurl, ".$i->{rev}"; + td class => 'tc1_2'; + a href => $revurl, ".$i->{rev}"; end; td date $i->{added}; td; diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm index 8c6775d5..c857aa74 100644 --- a/lib/VNDB/Handler/Producers.pm +++ b/lib/VNDB/Handler/Producers.pm @@ -178,7 +178,7 @@ sub list { } end; end; - + my $pageurl = "/p/$char" . ($f->{q} ? "?q=$f->{q}" : ''); $self->htmlBrowseNavigate($pageurl, $f->{p}, $np, 't'); div class => 'mainbox producerbrowse'; diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm index 2338f5aa..14749169 100644 --- a/lib/VNDB/Handler/Releases.pm +++ b/lib/VNDB/Handler/Releases.pm @@ -313,7 +313,7 @@ sub _form { [ input => short => 'title', name => 'Title (romaji)', width => 300 ], [ input => short => 'original', name => 'Original title', width => 300 ], [ static => content => 'The original title of this release, leave blank if it already is in the Latin alphabet.' ], - [ select => short => 'language', name => 'Language', + [ select => short => 'language', name => 'Language', options => [ map [ $_, "$_ ($self->{languages}{$_})" ], sort keys %{$self->{languages}} ] ], [ input => short => 'gtin', name => 'JAN/UPC/EAN' ], [ input => short => 'website', name => 'Official website' ], diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm index ac0e7397..b2ecc841 100644 --- a/lib/VNDB/Handler/Users.pm +++ b/lib/VNDB/Handler/Users.pm @@ -73,7 +73,7 @@ sub newpass { my $self = shift; return $self->resRedirect('/') if $self->authInfo->{id}; - + my($frm, $u); if($self->reqMethod eq 'POST') { $frm = $self->formValidate( @@ -86,7 +86,7 @@ sub newpass { if(!$frm->{_err}) { my @chars = ( 'A'..'Z', 'a'..'z', 0..9 ); my $pass = join '', map $chars[int rand $#chars+1], 0..8; - $self->dbUserEdit($u->{id}, passwd => md5_hex($pass)); + $self->dbUserEdit($u->{id}, passwd => md5_hex($pass)); $self->mail( sprintf(join('', <DATA>), $u->{username}, $pass), To => $u->{mail}, diff --git a/lib/VNDB/Handler/VNBrowse.pm b/lib/VNDB/Handler/VNBrowse.pm index f65132d2..c0c3754e 100644 --- a/lib/VNDB/Handler/VNBrowse.pm +++ b/lib/VNDB/Handler/VNBrowse.pm @@ -35,7 +35,7 @@ sub list { # VNDBID return $self->resRedirect('/'.$1.$2.(!$3 ? '' : $1 eq 'd' ? '#'.$3 : '.'.$3), 'temp') if $q =~ /^([vrptud])([0-9]+)(?:\.([0-9]+))?$/; - + if(!($q =~ s/^title://)) { # categories my %catl = map { diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm index cada9875..14859e3a 100644 --- a/lib/VNDB/Handler/VNEdit.pm +++ b/lib/VNDB/Handler/VNEdit.pm @@ -132,7 +132,7 @@ sub _uploadimage { if($frm->{_err}) { unlink $tmp; return undef; - } + } # store the file and let multi handle it my $imgid = $self->dbVNImageId; @@ -171,7 +171,7 @@ sub _form { [ input => short => 'l_encubed', pre => 'http://novelnews.net/tag/', post => '/' ], [ input => short => 'l_renai', pre => 'http://renai.us/game/', post => '.shtml' ], [ input => short => 'l_vnn', pre => 'http://visual-novels.net/vn/index.php?option=com_content&task=view&id=', width => 40 ], - + [ input => short => 'anime', name => 'Anime' ], [ static => content => q| Whitespace seperated list of <a href="http://anidb.net/">AniDB</a> anime IDs. diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm index aa7e072b..bc56dd8c 100644 --- a/lib/VNDB/Handler/VNPage.pm +++ b/lib/VNDB/Handler/VNPage.pm @@ -57,7 +57,7 @@ sub page { div class => 'vndetails'; - # image + # image div class => 'vnimg'; if(!$v->{image}) { p 'No image uploaded yet'; @@ -222,7 +222,7 @@ sub _revision { sub _producers { my($self, $i, $r) = @_; return if !grep @{$_->{producers}}, @$r; - + my @lang; for my $l (@$r) { push @lang, $l->{language} if !grep $l->{language} eq $_, @lang; @@ -291,7 +291,7 @@ sub _relations { push @{$rel{$_->{relation}}}, $_ for (sort { $a->{title} cmp $b->{title} } @{$v->{relations}}); - + Tr ++$$i % 2 ? (class => 'odd') : (); td 'Relations'; td class => 'relations'; |