header.tt2 2.43 KB
Newer Older
1
<!-- header.tt2 -->
2
<header>
Luc Didry's avatar
Luc Didry committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
    <div class="title-bar"
         data-responsive-toggle="sympa-top-bar" data-hide-for="medium">
        <span class="menu-text" aria-hidden="true">
            [% IF conf.logo_html_definition ~%]
                [% conf.logo_html_definition %]
            [%~ ELSE ~%]
                <a href="[% conf.wwsympa_url %]" title="[% conf.wwsympa_url %]">
                    <img src="[% icons_url %]/logo_sympa.png" alt="[%|loc%]SYMPA logo[%END%]" />
                </a>
            [%~ END %]
        </span>
        <div class="title-bar-right">
            <div class="title-bar-title">
                <span>[%|loc%]Sympa Menu[%END%]</span>
            </div>
            <a class="menu-icon" href="#" data-toggle="sympa-top-bar"></a>
        </div>
IKEDA Soji's avatar
IKEDA Soji committed
20
    </div>
21

Luc Didry's avatar
Luc Didry committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
    <nav class="top-bar" id="sympa-top-bar" role="navigation">
        <ul class="top-bar-left medium-2 columns show-for-medium">
            <li class="name">
                <span class="menu-text">
                    [% IF conf.logo_html_definition ~%]
                        [% conf.logo_html_definition %]
                    [%~ ELSE ~%]
                        <a href="[% conf.wwsympa_url %]" title="[% conf.wwsympa_url %]">
                            <img src="[% icons_url %]/logo_sympa.png" alt="[%|loc%]SYMPA logo[%END%]" />
                        </a>
                    [%~ END %]
                </span>
            </li>
        </ul>
IKEDA Soji's avatar
IKEDA Soji committed
36

Luc Didry's avatar
Luc Didry committed
37
38
39
40
41
42
43
44
45
46
47
48
49
        <menu class="top-bar-right">
            <ul class="vertical medium-horizontal menu" data-responsive-menu="drilldown medium-dropdown">
                [% PROCESS 'sympa_menu.tt2' %]
                [%# login banner or login button ~%]
                [% IF user.email ~%]
                    <li>
                        <a href="#">
                            <i class="fa fa-user"></i> [% user.gecos || user.email %]
                        </a>
                        <ul class="vertical menu">
                            [% PROCESS 'user_menu.tt2' %]
                        </ul>
                    </li>
50
                [%~ ELSIF use_passwd || sso.size || authentication_info_url ~%]
Luc Didry's avatar
Luc Didry committed
51
52
                    [% PROCESS 'login_menu.tt2' %]
                [%~ END %]
IKEDA Soji's avatar
IKEDA Soji committed
53
            </ul>
Luc Didry's avatar
Luc Didry committed
54
55
56
57
58
59
60
        </menu>
    </nav>
    [% IF not list ~%]
        <h1 class="row">[% main_title %]</h1>
    [%~ ELSE ~%]
        <h1 class="medium-offset-3 medium-9 columns">[% main_title %]</h1>
    [%~ END %]
61
62
</header>
<!-- end header.tt2 -->