nav.tt2 22.7 KB
Newer Older
1
<!-- nav.tt2 -->
2
[% IF action == 'create_list_request' %]
Luc Didry's avatar
Luc Didry committed
3
4
5
6
7
8
9
    [% IF all_lists.size > 0 ~%]
        <h2 class="show-for-medium">
            <i class="fa fa-plus"></i> [%|loc%]Create list[%END%]
            <a class="openInNewWindow" href="[% 'nomenu/help' | url_rel(['admin-createlist.html']) %]" target="wws_help">
                <i class="fa fa-info-circle" title="[%|loc%]Help[%END%]" aria-hidden="true"></i>
            </a>
        </h2>
10

Luc Didry's avatar
Luc Didry committed
11
12
13
14
15
16
17
18
19
20
        <div class="title-bar" data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
            <span class="menu-text" aria-hidden="true">
                <i class="fa fa-plus"></i>
            </span>
            <div class="title-bar-right">
                <div class="title-bar-title">
                    <span>[%|loc%]Create list[%END%]</span>
                </div>
                <a class="menu-icon" href="#" data-toggle="sympa-nav-bar"></a>
            </div>
IKEDA Soji's avatar
IKEDA Soji committed
21
22
        </div>

Luc Didry's avatar
Luc Didry committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
        <nav class="top-bar" id="sympa-nav-bar">
            <menu class="top-bar-left">
                <ul class="vertical medium-horizontal menu" data-responsive-menu="drilldown medium-dropdown">
                    <li>
                        <a href="#list_create">[%|loc%]Create a list using a template[%END%]</a>
                    </li>
                    [% IF 0 %]
                        <li class="divider" role="separator"></li>
                    [% END %]
                    <li>
                        <a href="#list_copy">[%|loc%]Copy an existing list[%END%]</a>
                    </li>
                </ul>
            </menu>
        </nav>
    [%~ END %]
39
40
[% END %]

41
[% IF action == 'serveradmin' or action == 'skinsedit'  or action == 'edit_config' or action == 'get_pending_lists'  or action == 'get_closed_lists'  or action == 'get_latest_lists'   or action == 'get_inactive_lists' %]
Luc Didry's avatar
Luc Didry committed
42
43
44
    <h2 class="show-for-medium">
        <i class="fa fa-wrench"></i> [%|loc%]Listmaster Admin[%END%]
    </h2>
45

Luc Didry's avatar
Luc Didry committed
46
47
48
49
50
51
52
53
54
    <div class="title-bar" data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
        <span class="menu-text" aria-hidden="true">
            <i class="fa fa-wrench"></i>
        </span>
        <div class="title-bar-right">
            <div class="title-bar-title">
                <span>[%|loc%]Listmaster Admin[%END%]</span>
            </div>
            <a class="menu-icon" href="#" data-toggle="sympa-nav-bar"></a>
IKEDA Soji's avatar
IKEDA Soji committed
55
56
57
        </div>
    </div>

Luc Didry's avatar
Luc Didry committed
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
    <nav class="top-bar" id="sympa-nav-bar">
        <menu class="top-bar-left">
            <ul class="vertical medium-horizontal menu" data-responsive-menu="drilldown medium-dropdown">
                [% IF (subaction == '' or subaction == 'm_lists') and action != 'skinsedit' %]
                    [% SET class = 'active' %]
                [% ELSE %]
                    [% SET class = '' %]
                [% END %]
                <li class="[% class %]"><a href="[% 'serveradmin/m_lists' | url_rel %]">[%|loc%]Lists[%END%]</a>
                    <ul class="vertical menu">
                        <li>
                            <a href="[% 'get_pending_lists' | url_rel %]">[%|loc%]View Pending (Requested) lists[%END%]</a>
                        </li>
                        <li>
                            <a href="[% 'get_closed_lists' | url_rel %]">[%|loc%]View Closed Lists[%END%]</a>
                        </li>
                        <li>
                            <a href="[% 'get_latest_lists' | url_rel %]">[%|loc%]View Lists sorted by Creation Date[%END%]</a>
                        </li>
                        <li>
                            <a href="[% 'get_inactive_lists' | url_rel %]">[%|loc%]View Lists sorted by Last Message Date[%END%]</a>
                        </li>
                    </ul>
                </li>
                [% IF subaction == 'users' %][% SET class = 'active' %][% ELSE %][% SET class = '' %][% END %]
                    <li class="[% class %]">
                        <a href="[% 'serveradmin/users' | url_rel %]">[%|loc%]Users[%END%]</a>
                    </li>
                [% IF subaction == 'archives' %][% SET class = 'active' %][% ELSE %][% SET class = '' %][% END %]
                    <li class="[% class %]">
                        <a href="[% 'serveradmin/archives' | url_rel %]">[%|loc%]Archives[%END%]</a>
                    </li>
                [% IF subaction == 'logs' %][% SET class = 'active' %][% ELSE %][% SET class = '' %][% END %]
                    <li class="[% class %]">
                        <a href="[% 'serveradmin/logs' | url_rel %]">[%|loc%]System log[%END%]</a>
                    </li>
                [% IF subaction == 'templates' %][% SET class = 'active' %][% ELSE %][% SET class = '' %][% END %]
                    <li class="[% class %]">
                        <a href="[% 'serveradmin/templates' | url_rel %]">[%|loc%]Templates[%END%]</a>
                    </li>
                [% IF action == 'skinsedit' %][% SET class = 'active' %][% ELSE %][% SET class = '' %][% END %]
                    <li class="[% class %]">
                        <a href="[% 'skinsedit' | url_rel %]">[%|loc%]Skins, CSS and colors[%END%]</a>
                    </li>
                [% IF main_robot && robots ~%]
                    [% IF subaction == 'vhosts' %]
                        [% SET class = 'active' %]
                    [% ELSE %]
                        [% SET class = '' %]
                    [% END %]
                    <li class="[% class %]">
                        <a href="[% 'serveradmin/vhosts' | url_rel %]">[%|loc%]Virtual Robots[%END%]</a>
                    </li>
                [%~ END %]
                [% IF main_robot ~%]
                    [% IF action == 'edit_config' %]
                        [% SET class = 'active' %]
                    [% ELSE %]
                        [% SET class = '' %]
                    [% END %]
                    <li class="[% class %]">
                        <a href="[% 'edit_config' | url_rel %]">[%|loc%]Edit Robot Config[%END%]</a>
                    </li>
                [%~ END %]
                [% IF families -%]
                    [% IF subaction == 'families' %]
                        [% SET class = 'active' %]
                    [% ELSE %]
                        [% SET class = '' %]
                    [% END %]
                    <li class="[% class %]">
                        <a href="[% 'serveradmin/families' | url_rel %]">[%|loc%]Families[%END%]</a>
                    </li>
                [% END %]
                [% IF subaction == 'translation' %]
                    [% SET class = 'active' %]
                [% ELSE %]
                    [% SET class = '' %]
                [% END %]
                <li class="[% class %]">
                    <a href="[% 'serveradmin/translation' | url_rel %]">[%|loc%]Translating Sympa[%END%]</a>
                </li>
                [% IF subaction == 'tracker' %]
                    [% SET class = 'active' %]
                [% ELSE %]
                    [% SET class = '' %]
                [% END %]
                <li class="[% class %]">
                    <a href="[% 'serveradmin/tracker' | url_rel %]">[%|loc%]Submitting a bug, a feature request[%END%]</a>
                </li>
            </ul>
        </menu>
    </nav>
151
152
153
[% END %]

[% IF action == 'lists' %]
Luc Didry's avatar
Luc Didry committed
154
155
156
    <h2 class="show-for-medium">
        <i class="fa fa-list"></i> [%|loc%]Index of lists[%END%]
    </h2>
IKEDA Soji's avatar
IKEDA Soji committed
157

Luc Didry's avatar
Luc Didry committed
158
    [% letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','others' ] ~%]
IKEDA Soji's avatar
IKEDA Soji committed
159

Luc Didry's avatar
Luc Didry committed
160
161
162
163
164
165
166
167
168
    <div class="title-bar" data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
        <span class="menu-text" aria-hidden="true">
            <i class="fa fa-list"></i>
        </span>
        <div class="title-bar-right">
            <div class="title-bar-title">
                <span>[%|loc%]Index of lists[%END%]</span>
            </div>
            <a class="menu-icon" href="#" data-toggle="sympa-nav-bar"></a>
IKEDA Soji's avatar
IKEDA Soji committed
169
170
171
        </div>
    </div>

Luc Didry's avatar
Luc Didry committed
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
    <nav class="top-bar" id="sympa-nav-bar">
        <menu class="top-bar-left">
            <ul class="vertical medium-horizontal menu" data-responsive-menu="drilldown medium-dropdown">
                [% FOREACH letter IN letters %]
                    [% IF orderedlist.$letter.0 %]
                        <li class="letter">
                            <a href="#[%letter%]">
                                [%IF letter == 'others'%]
                                    [%|loc%]others[%END%]
                                [%ELSE%]
                                    [%letter%]
                                [%END%]
                            </a>
                        </li>
                    [% ELSE %]
                        <li class="nolink letter">
                            [%IF letter == 'others'%]
                                [%|loc%]others[%END%]
                            [%ELSE%]
                                [%letter%]
                            [%END%]
                        </li>
                    [% END %]
                [% END %]
                <li class="letter">
                    [% topic_paths = [];
                        IF topic;
                            topic_paths.push(topic);
                            IF subtopic;
                                topic_paths.push(subtopic);
                            END;
                        END;
                    ~%]
                    <a class="heavyWork" href="[% 'lists' | url_rel(topic_paths) %]">
                        [%|loc%]All[%END%]
                    </a>
                </li>
            </ul>
        </menu>
    </nav>
212
213
[% END %]

214
[% IF action == 'admin' || action_type == 'admin' || action == 'editfile' ~%]
Luc Didry's avatar
Luc Didry committed
215
    <h2 class="show-for-medium">[%|loc%]Basic Operations[%END%]</h2>
IKEDA Soji's avatar
IKEDA Soji committed
216

Luc Didry's avatar
Luc Didry committed
217
218
219
220
221
222
    <div class="title-bar" data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
        <div class="title-bar-right">
            <div class="title-bar-title">
                <span>[%|loc%]Basic Operations[%END%]</span>
            </div>
            <a class="menu-icon" href="#" data-toggle="sympa-nav-bar"></a>
IKEDA Soji's avatar
IKEDA Soji committed
223
224
225
        </div>
    </div>

Luc Didry's avatar
Luc Didry committed
226
227
228
229
230
    [% IF action == 'edit_list_request' || action == 'editfile' %]
        [% SET class = 'active' %]
    [% ELSE %]
        [% SET class = '' %]
    [% END %]
231

Luc Didry's avatar
Luc Didry committed
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
    <nav class="top-bar" id="sympa-nav-bar">
        <menu class="top-bar-left">
            <ul class="vertical medium-horizontal menu" data-responsive-menu="drilldown medium-dropdown">
                <li class="[% class %]"><a href="[% 'edit_list_request' | url_rel([list,'description']) %]">[%|loc%]Edit List Config[%END%]</a>
                    <ul class="vertical menu">
                        [% IF group == 'description' %]
                            [% SET class = 'active' %]
                        [% ELSE %]
                            [% SET class = '' %]
                        [% END %]
                        <li class="[% class %]">
                            <a href="[% 'edit_list_request' | url_rel([list,'description']) %]" >
                                [%|loc%]List definition[%END%]
                            </a>
                        </li>
                        [% IF group == 'sending' %]
                            [% SET class = 'active' %]
                        [% ELSE %]
                            [% SET class = '' %]
                        [% END %]
                        <li class="[% class %]">
                            <a href="[% 'edit_list_request' | url_rel([list,'sending']) %]" >
                                [%|loc%]Sending/receiving setup[%END%]
                            </a>
                        </li>
                        [% IF group == 'command' %]
                            [% SET class = 'active' %]
                        [% ELSE %]
                            [% SET class = '' %]
                        [% END %]
                        <li class="[% class %]">
                            <a href="[% 'edit_list_request' | url_rel([list,'command']) %]" >
                                [%|loc%]Privileges[%END%]
                            </a>
                        </li>
                        [% IF group == 'archives' %]
                            [% SET class = 'active' %]
                        [% ELSE %]
                            [% SET class = '' %]
                        [% END %]
                        <li class="[% class %]">
                            <a href="[% 'edit_list_request' | url_rel([list,'archives']) %]" >
                                [%|loc%]Archives[%END%]
                            </a>
                        </li>
                        [% IF group == 'bounces' %]
                            [% SET class = 'active' %]
                        [% ELSE %]
                            [% SET class = '' %]
                        [% END %]
                        <li class="[% class %]">
                            <a href="[% 'edit_list_request' | url_rel([list,'bounces']) %]" >
                                [%|loc%]Bounces[%END%]
                            </a>
                        </li>
                        [% IF group == 'data_source' %]
                            [% SET class = 'active' %]
                        [% ELSE %]
                            [% SET class = '' %]
                        [% END %]
                        <li class="[% class %]">
                            <a href="[% 'edit_list_request' | url_rel([list,'data_source']) %]" >
                                [%|loc%]Data sources setup[%END%]
                            </a>
                        </li>
                        [% IF group == 'dkim' %]
                            [% SET class = 'active' %]
                        [% ELSE %]
                            [% SET class = '' %]
                        [% END %]
                        <li class="[% class %]">
                            <a href="[% 'edit_list_request' | url_rel([list,'dkim']) %]" >
                                [%|loc%]DKIM/DMARC/ARC[%END%]
                            </a>
                        </li>
                        [% IF action == 'editfile' && selected_file == 'description_templates' %]
                            [% SET class = 'active' %]
                        [% ELSE %]
                            [% SET class = '' %]
                        [% END %]
                        <li class="[% class %]">
                            <a href="[% 'editfile' | url_rel([list,'description_templates']) %]">
                                [%|loc%]List description/homepage[%END%]
                            </a>
                        </li>
                        [% IF action == 'editfile' && selected_file == 'message_templates' %]
                            [% SET class = 'active' %]
                        [% ELSE %]
                            [% SET class = '' %]
                        [% END %]
                        <li class="[% class %]">
                            <a href="[% 'editfile' | url_rel([list,'message_templates']) %]">
                                [%|loc%]Message templates[%END%]
                            </a>
                        </li>
                        [% IF group == 'other' %]
                            [% SET class = 'active' %]
                        [% ELSE %]
                            [% SET class = '' %]
                        [% END %]
                        <li class="[% class %]">
                            <a href="[% 'edit_list_request' | url_rel([list,'other']) %]" >
                                [%|loc%]Miscellaneous[%END%]
                            </a>
                        </li>
                    </ul>
                </li>
                [% IF is_owner ~%]
                    [% IF action == 'review' %]
                        [% SET class = 'active' %]
                    [% ELSE %]
                        [% SET class = '' %]
                    [%END%]
                    <li class="[% class %]">
                        <a href="#">
                            [%|loc%]Users[%END%]
                        </a>
                        <ul class="vertical menu">
                            <li [% IF page.match('^\d+$') %]class="active"[%END%]>
                                <a href="[% 'review' | url_rel([list]) %]" >
                                    [%|loc%]Subscribers[%END%]
                                </a>
                            </li>
                            <li [% IF page == 'owner' %]class="active"[%END%]>
                                <a href="[% 'review' | url_rel([list,'owner']) %]" >
                                    [%|loc%]Owners[%END%]
                                </a>
                            </li>
                            <li [% IF page == 'editor' %]class="active"[%END%]>
                                <a href="[% 'review' | url_rel([list,'editor']) %]" >
                                    [%|loc%]Moderators[%END%]
                                </a>
                            </li>
                        </ul>
                    </li>
                [%~ END %]
368
369
                [% IF conf.use_blocklist != 'none' %]
                    [% IF action == 'blocklist' %]
Luc Didry's avatar
Luc Didry committed
370
371
372
373
374
                        [% SET class = 'active' %]
                    [% ELSE %]
                        [% SET class = '' %]
                    [% END %]
                    <li class="[% class %]">
375
                        <a href="[% 'blocklist' | url_rel([list]) %]" >
376
                            [%|loc%]Blocklist[%END%]
Luc Didry's avatar
Luc Didry committed
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
                        </a>
                    </li>
                [% END %]
                [% IF is_archived %]
                    [% IF action == 'arc_manage' %]
                        [% SET class = 'active' %]
                    [% ELSE %]
                        [% SET class = '' %]
                    [% END %]
                    <li class="[% class %]">
                        <a href="[% 'arc_manage' | url_rel([list]) %]">
                            [%|loc%]Manage Archives[%END%]
                        </a>
                    </li>
                [% END %]
                [% IF is_owner %]
                    [% IF action == 'reviewbouncing' %]
                        [% SET class = 'active' %]
                    [% ELSE %]
                        [% SET class = '' %]
                    [% END %]
                    <li class="[% class %]">
                        <a href="[% 'reviewbouncing' | url_rel([list]) %]">
                            [%|loc%]Bounces[%END%]
                        </a>
                    </li>
                [% END %]
                [% IF is_priv || is_listmaster %]
                    [% IF action == 'viewlogs' %]
                        [% SET class = 'active' %]
                    [% ELSE %]
                        [% SET class = '' %]
                    [% END %]
                    <li class="[% class %]">
                        <a href="[% 'viewlogs' | url_rel([list]) %]" >
                            [%|loc%]Logs[%END%]
                        </a>
                    </li>
                [% END %]
            </ul>
        </menu>
    </nav>
419
[% END %]
420

421
[% IF action == 'compose_mail' %]
Luc Didry's avatar
Luc Didry committed
422
423
    <h2 class="show-for-medium">
        [% IF subaction == "html_news_letter" ~%]
424
            [%|loc%]Sending an HTML page to the list[%END%]
Luc Didry's avatar
Luc Didry committed
425
        [%~ ELSE ~%]
426
            [%|loc%]Sending a message to the list[%END%]
Luc Didry's avatar
Luc Didry committed
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
        [%~ END %]
        <a class="openInNewWindow" href="[% 'nomenu/help' | url_rel(['user-sendmsg.html']) %]" target="wws_help">
            <i class="fa fa-info-circle" title="[%|loc%]Help[%END%]" aria-hidden="true"></i>
        </a>
    </h2>

    <div class="title-bar" data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
        <div class="title-bar-right">
            <div class="title-bar-title">
                <span>
                    [% IF subaction == "html_news_letter" ~%]
                        [%|loc%]Sending an HTML page to the list[%END%]
                    [%~ ELSE ~%]
                        [%|loc%]Sending a message to the list[%END%]
                    [%~ END %]
                </span>
            </div>
            <a class="menu-icon" href="#" data-toggle="sympa-nav-bar"></a>
IKEDA Soji's avatar
IKEDA Soji committed
445
446
447
        </div>
    </div>

Luc Didry's avatar
Luc Didry committed
448
449
450
451
452
    [% IF subaction == '' %]
        [% SET class = 'active' %]
    [% ELSE %]
        [% SET class = '' %]
    [% END %]
IKEDA Soji's avatar
IKEDA Soji committed
453

Luc Didry's avatar
Luc Didry committed
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
    <nav class="top-bar" id="sympa-nav-bar">
        <menu class="top-bar-left">
            <ul class="vertical medium-horizontal menu" data-responsive-menu="drilldown medium-dropdown">
                <li class="[% class %]">
                    <a href="[% 'compose_mail' | url_rel([list]) %]">
                        [%|loc%]Send a message[%END%]
                    </a>
                </li>
                [% IF subaction == 'html_news_letter' %]
                    [% SET class = 'active' %]
                [% ELSE %]
                    [% SET class = '' %]
                [% END %]
                <li class="[% class %]">
                    <a href="[% 'compose_mail' | url_rel([list,'html_news_letter']) %]">
                        [%|loc%]Send an html page[%END%]
                    </a>
                </li>
            </ul>
        </menu>
    </nav>
475
476
[% END %]

477
[% IF action == 'd_read' ~%]
Luc Didry's avatar
Luc Didry committed
478
479
480
481
482
483
    <h2 class="show-for-medium">
        [%|loc%]Shared documents[%END%]
        <a class="openInNewWindow" href="[% 'nomenu/help' | url_rel(['shared.html']) %]" target="wws_help">
            <i class="fa fa-info-circle" title="[%|loc%]Help[%END%]" aria-hidden="true"></i>
        </a>
    </h2>
IKEDA Soji's avatar
IKEDA Soji committed
484

Luc Didry's avatar
Luc Didry committed
485
486
487
488
489
490
    <div class="title-bar" data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
        <div class="title-bar-right">
            <div class="title-bar-title">
                <span>[%|loc%]Shared documents[%END%]</span>
            </div>
            <a class="menu-icon" href="#" data-toggle="sympa-nav-bar"></a>
IKEDA Soji's avatar
IKEDA Soji committed
491
492
493
        </div>
    </div>

Luc Didry's avatar
Luc Didry committed
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
    <nav class="top-bar" id="sympa-nav-bar">
        <menu class="top-bar-left">
            <ul class="vertical medium-horizontal menu" data-responsive-menu="drilldown medium-dropdown">
                <li class="[% UNLESS expert_page %]active not-click[%END%]">
                    <a href="[% 'd_read' | url_rel([list,shared_doc.paths_d],{type=>'directory',previous_action=>'d_read',show_user_page=>'1'}) %]">
                        <i class="fa fa-user "></i> [%|loc%]User mode[%END%]
                    </a>
                </li>
                [%IF 0%]<li class="divider" role="separator"></li>[%END%]
                <li class="[% IF expert_page %]active not-click[%END%]">
                    <a href="[% 'd_read' | url_rel([list,shared_doc.paths_d],{type=>'directory',previous_action=>'d_read',show_expert_page=>'1'}) %]">
                        <i class="fa fa-cogs"></i> [%|loc%]Expert mode[%END%]
                    </a>
                </li>
            </ul>
        </menu>
    </nav>
511
512
[%~ END %]

513
<!-- end nav.tt2 -->