header.tt2 2.12 KB
Newer Older
1
<!-- header.tt2 -->
2
3
<header>

IKEDA Soji's avatar
IKEDA Soji committed
4
5
    <div class="title-bar"
     data-responsive-toggle="sympa-top-bar" data-hide-for="medium">
6
7
8
9
10
11
12
      <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>
IKEDA Soji's avatar
IKEDA Soji committed
13
14
15
16
17
18
19
      <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>
    </div>
20

IKEDA Soji's avatar
IKEDA Soji committed
21
<nav class="top-bar" id="sympa-top-bar" role="navigation">
22
    <ul class="top-bar-left medium-2 columns show-for-medium">
IKEDA Soji's avatar
typo.    
IKEDA Soji committed
23
      <li class="name">
IKEDA Soji's avatar
IKEDA Soji committed
24
        <span class="menu-text">
25
26
27
28
29
                [% 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 %]
IKEDA Soji's avatar
IKEDA Soji committed
30
31
        </span>
      </li>
32
    </ul>
IKEDA Soji's avatar
IKEDA Soji committed
33
34
35
36

  <menu class="top-bar-right">
    <ul class="vertical medium-horizontal menu"
     data-responsive-menu="drilldown medium-dropdown">
37
38
39
        <!-- sympa menu start --> 
          [% PROCESS 'sympa_menu.tt2' %]
        <!-- end of sympa menu-->
40
41
42

      [%# login banner or login button ~%]
      [% IF user.email ~%]
IKEDA Soji's avatar
IKEDA Soji committed
43
        <li>
44
45
46
47
          <a href="#">
            <i class="fa fa-user"></i> [% user.gecos || user.email %]
          </a>
          <ul class="vertical menu">
48
            [% PROCESS 'user_menu.tt2' %]
49
50
51
          </ul>
        </li>
      [%~ ELSIF use_passwd || use_sso || authentication_info_url ~%]
52
        [% PROCESS 'login_menu.tt2' %]
53
      [%~ END %]
54
    </ul>
lumineau's avatar
lumineau committed
55
</menu>
56
</nav>
57
58
59
60
61
  [% IF not list ~%]
    <h1 class="row">[% main_title %]</h1>
  [%~ ELSE ~%]
    <h1 class="medium-offset-3 medium-9 columns">[% main_title %]</h1>
  [%~ END %]
62
63
</header>
<!-- end header.tt2 -->