summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/LayoutHTML.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-08-15 09:05:48 +0200
committerYorhel <git@yorhel.nl>2009-08-17 16:27:14 +0200
commitc000490dcdf208e235a05358668dbb6fb70d5168 (patch)
tree010eaf25e66f7b7aeeac972d796c843669df1159 /lib/VNDB/Util/LayoutHTML.pm
parent4b918796f8d85d40d55dbf2674a2b691d802ff02 (diff)
Added language switcher to the main menu
Diffstat (limited to 'lib/VNDB/Util/LayoutHTML.pm')
-rw-r--r--lib/VNDB/Util/LayoutHTML.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm
index b5813330..a932c5a1 100644
--- a/lib/VNDB/Util/LayoutHTML.pm
+++ b/lib/VNDB/Util/LayoutHTML.pm
@@ -54,7 +54,16 @@ sub _menu {
div id => 'menulist';
div class => 'menubox';
- h2 'Menu';
+ h2;
+ span;
+ for (grep $self->{l10n}->language_tag() ne $_, $self->{l10n}->languages()) {
+ a href => "?l10n=$_";
+ cssicon "lang $_", $self->{languages}{$_};
+ end;
+ }
+ end;
+ txt mt 'Menu';
+ end;
div;
a href => '/', 'Home'; br;
a href => '/v/all', 'Visual novels'; br;