main.tt2 4.76 KB
Newer Older
1
<!DOCTYPE html>
2
<html class="no-js" lang="[% lang %]" xml:lang="[% lang %]">
3
    <!-- main.tt2 -->
Luc Didry's avatar
Luc Didry committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
    <head>
        <meta charset="UTF-8" />
        <meta name="generator" content="Sympa [% version %]" />
        <meta name="viewport"  content="width=device-width, initial-scale=1.0">
        <title> [% main_title %] - [% action %] </title>

        [% PROCESS head_ui.tt2 %]

        [% PROCESS head_javascript.tt2 %]

        <!-- RSS chanel -->
        [% IF list -%]
            [% IF arc_public_access %]
                <link rel="alternate" type="application/xml" title="[%|loc%]RSS Latest messages[%END%]" href="[% 'rss/latest_arc' | url_abs([list],{count=>20}) %]"/>
            [% END -%]
            [% IF shared_public_access %]
                <link rel="alternate" type="application/xml" title="[%|loc%]RSS Latest documents[%END%]" href="[% 'rss/latest_d_read' | url_abs([list],{count=>20}) %]"/>
            [% END -%]
        [% ELSE -%]
            [% IF (action == 'lists') && topic -%]
                <link rel="alternate" type="application/xml" title="[%|loc%]RSS Latest lists[%END%]" href="[% 'rss/latest_lists' | url_abs([topic],{count=>20}) %]"/>
                <link rel="alternate" type="application/xml" title="[%|loc%]RSS Active lists[%END%]" href="[% 'rss/active_lists' | url_abs([topic],{count=20}) %]"/>
            [% ELSE -%]
                <link rel="alternate" type="application/xml" title="[%|loc%]RSS Latest lists[%END%]" href="[% 'rss/latest_lists' | url_abs([],{count=>20}) %]"/>
                <link rel="alternate" type="application/xml" title="[%|loc%]RSS Active lists[%END%]" href="[% 'rss/active_lists' | url_abs([],{count=>20}) %]"/>
            [% END -%]
        [% END -%]
    </head>

    <body[%IF back_to_mom%] class="backToMom"[%END%]>
        [% top_menu = 1 %]
        <div id="top">
            <a class="displayNone" name="top" href="#content-inner">
                [%|loc%]Skip to Content.[%END%]
            </a>
        </div>

        <noscript>
            <em>[%|loc%]Please activate JavaScript in your web browser[%END%]</em>
        </noscript>

        [% IF nomenu %]
            [% PROCESS error.tt2 IF errors %]
            <div class="nomenu">
                [% PROCESS notice.tt2 IF notices || last_login_epoch %]
                [% PROCESS "${action}.tt2" IF action %]
            </div>
        [% ELSE %]
            [% PROCESS error.tt2 IF errors %]
            [% IF top_menu %]
                [% PROCESS header.tt2 %]
            [% END %]

            [%# Show loading notice only when javascript is enabled. ~%]
            <div id="loading"></div>
            [% PROCESS aside_menu.tt2 %]
            [% UNLESS action == 'home' ~%]
                [% IF top_menu %]
                    [%~ IF not list ~%]
                        <main id="content-inner" class="row">
                    [%~ ELSE ~%]
                        <main id="content-inner" class="medium-9 columns">
                    [%~ END %]
                [%~ ELSE ~%]
                    <main id="content-inner" class="medium-9 columns">
                [%~ END ~%]
                <a name="content-inner"></a>
                [% IF not top_menu %]
                    <h1 class="robot_name">[% main_title %]</h1>
                [% END %]
                [% IF list %]
                    [% PROCESS title.tt2 %]
                    [% IF list_title %]
                        <p>
                            <b>[%|loc%]Subject:[%END%]</b>
                            [% list_title %]
                            [% IF is_owner %]
                                <a href="[% 'edit_list_request' | url_rel([list,'description']) %]">
                                    <i class="fa fa-pencil-square fa-lg" title="[%|loc%](Edit)[%END%]"></i>
                                </a>
                            [% END %]
                        </p>
                    [% END %]
87
88
89
90
91
                    [% IF list_status == 'pending' %]
                        <p class="alert-box warning text-center">
                            [%|loc%]List not activated yet. Please wait until a listmaster activated it to be able to use it.[%END%]
                        </p>
                    [% END %]
Luc Didry's avatar
Luc Didry committed
92
93
94
95
                [% END %]

                [% PROCESS nav.tt2 %]
            [%~ END %]
96

97
            [% PROCESS notice.tt2 IF notices || last_login_epoch %]
98
            [% PROCESS "${action}.tt2" IF action %]
Luc Didry's avatar
Luc Didry committed
99
            [% PROCESS dumpvars.tt2 IF dumpvars == 'true'%]
lumineau's avatar
lumineau committed
100

Luc Didry's avatar
Luc Didry committed
101
102
103
            [% UNLESS action == 'home' ~%]
                </main><!-- End content-inner -->
            [%~ END %]
104

Luc Didry's avatar
Luc Didry committed
105
106
            <div class="displayNone"><a href="#top">[%|loc%]Top of Page[%END%]</a></div>
            <div class="scroll-top-wrapper "></div>
107

Luc Didry's avatar
Luc Didry committed
108
109
110
            [% PROCESS footer.tt2 %]
        [% END %]
    </body>
111
    <!-- end main.tt2 -->
112
</html>