Commit 76e67a7a authored by Luc Didry's avatar Luc Didry

Fix for theme 0.11.4

parent cfb3a29b
Pipeline #94022 passed with stage
in 17 seconds
templates/stats.json.ep
templates/raw.html.ep
templates/partial/raw.js.ep
templates/data.html.ep
% # vim:set sw=4 ts=4 sts=4 ft=html.epl expandtab:
% my $l = {
% ar => 'العربية',
% de => 'Deutsch',
% en => 'English',
% es => 'Español',
% fr => 'Français',
% fr_FR => 'Français (France)',
% oc => 'Occitan',
% ru => 'Русский',
% };
% my $lang = $self->languages;
% $lang =~ s/-(.*)/_\U$1/;
<li class="dropdown pull-right">
......@@ -18,7 +8,7 @@
<ul class="dropdown-menu" role="menu">
% for my $i (@{$self->available_langs}) {
<li<%== ($i eq $lang) ? ' class="active"' : '' %>>
<a href="<%= url_for('lang', l => $i) %>" class="set-lang"><%= $l->{$i} %></a>
<a href="<%= url_for('lang', l => $i) %>" class="set-lang"><%= iso639_native_name($i) %></a>
</li>
% }
</ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment