navbar.html.ep 4.2 KB
Newer Older
Luc Didry's avatar
Luc Didry committed
1
% # vim:set sw=4 ts=4 sts=4 ft=html.epl expandtab:
Luc Didry's avatar
Luc Didry committed
2
% my $l = {
Luc Didry's avatar
Luc Didry committed
3
4
5
6
7
8
9
%     ar    => 'العربية',
%     de    => 'Deutsch',
%     en    => 'English',
%     es    => 'Español',
%     fr    => 'Français',
%     fr_FR => 'Français (France)',
%     oc    => 'Occitan',
10
%     ru    => 'Русский',
Luc Didry's avatar
Luc Didry committed
11
% };
Luc Didry's avatar
Luc Didry committed
12
13
14
15
16
17
18
19
20
<nav class="navbar navbar-default">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-lutim" aria-expanded="false">
                <span class="sr-only"><%= l('Toggle navigation') %></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
Luc Didry's avatar
Luc Didry committed
21
            <a class="navbar-brand" href="<%= url_for('/') %>">Lutim</a>
Luc Didry's avatar
Luc Didry committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
        </div>
        <div class="collapse navbar-collapse" id="navbar-lutim">
            <ul class="nav navbar-nav">
                <li>
                    <%= link_to url_for('myfiles') => begin %><%= l('My images') %><% end %>
                </li>
                <li>
                    <%= link_to url_for('stats') => begin %><%= l('Instance\'s statistics') %><% end %>
                </li>
                <li>
                    <a class="btn btn-default btn-xs" href="#" id="install-app">
                        <img src="<%= url_for('/img/rocket.png') %>" alt="mozilla rocket logo"> <%= l('Install webapp') %>
                    </a>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
Luc Didry's avatar
Luc Didry committed
38
39
40
41
42
43
44
45
46
47
48
49
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                        <span class="icon-language"  aria-hidden="true" title="<%= l('Language') %>"></span><span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu" role="menu">
                    % for my $i (@{$self->available_langs}) {
                        <li<%== ($i eq $self->languages) ? ' class="active"' : '' %>>
                            <a href="<%= url_for('lang', l => $i) %>" class="set-lang"><%= $l->{$i} %></a>
                        </li>
                    % }
                    </ul>
                </li>
Luc Didry's avatar
Luc Didry committed
50
51
52
53
54
55
56
57
58
59
60
61
62
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                        <%= l('Support the author') %>
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li>
                            <%= link_to 'https://tipeee.com/fiat-tux' => begin %><%= l('Support the author on Tipeee') %><% end %>
                        </li>
                        <li>
                            <%= link_to 'https://liberapay.com/sky'   => begin %><%= l('Support the author on Liberapay') %><% end %>
                        </li>
                        <li>
Luc Didry's avatar
Luc Didry committed
63
                            <%= link_to 'bitcoin:3MJBezS1S1jPZ1Jgn8MYURLLu78CcPfqew?label=lutim' => begin %><%= l('Support the author with bitcoins') %><% end %>
Luc Didry's avatar
Luc Didry committed
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
                        </li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                        <%= l('Informations') %>
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li>
                            <%= link_to 'https://www.gnu.org/licenses/agpl-3.0.html' => begin %><%= l('License:') %> AGPL<% end %>
                        </li>
                        <li>
                            <%= link_to url_for('about') => begin %><%= l('About') %><% end %>
                        </li>
                        <li>
                            <%= link_to 'https://framagit.org/luc/lutim' => begin %><%= l('Fork me!') %><% end %>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>