serveradmin.tt2 14.6 KB
Newer Older
1
<!-- serveradmin.tt2 -->
2

3
[% IF subaction == '' or subaction == 'm_lists' %]
Luc Didry's avatar
Luc Didry committed
4
    <h2>[%|loc%]Lists[%END%]</h2>
5

6
    <h3>[%|loc%]Information[%END%]</h3>
Luc Didry's avatar
Luc Didry committed
7
8
9
10
11
        <ul>
            <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>
12
       </ul>
Luc Didry's avatar
Luc Didry committed
13
[% END %]
14

sympa-authors's avatar
sympa-authors committed
15
[% IF main_robot %]
Luc Didry's avatar
Luc Didry committed
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
    [% IF subaction == 'vhosts' %]
        <h2>[%|loc%]Virtual Robots[%END%]</h2> <br />
        [% IF robots %]
            <p>
                [%|loc%]The following virtual robots are running on this server:[%END%]
            </p>
            [% FOREACH vr = robots %]
                <h4>
                    [% IF vr.value.wwsympa_url ~%]
                        <a href="[% vr.value.wwsympa_url %]/serveradmin">
                            [% vr.value.title || vr.key %]
                        </a>
                    [%~ ELSE ~%]
                        [% vr.value.title || vr.key %]
                    [%~ END %]
                </h4>
                <ul>
                    <li>
                        <i>[%|loc%]Mail domain:[%END%]</i>
                        <b>[% vr.key %]</b>
                    </li>
                    [% IF vr.value.wwsympa_url ~%]
                        <li>
                            <i>[%|loc%]Sympa URL:[%END%]</i>
                            <b>[% vr.value.wwsympa_url %]</b>
                        </li>
                    [%~ END %]
                    <li>
                        <i>[%|loc%]Listmaster(s):[%END%]</i>
                        [% FOREACH admin = vr.value.listmasters ~%]
                            [% UNLESS loop.first ~%]
                                [% UNLESS loop.last ~%]
                                    [%|loc%], [%END%]
                                [%~ ELSE ~%]
                                    [%|loc%], and [%END%]
                                [%~ END %]
                            [%~ END ~%]
                            <b>[% admin %]</b>
                        [%~ END %]
                    </li>
                </ul>
            [% END %]
        [% ELSE %]
            <p>[%|loc%]No Virtual Robot defined on this server[%END%]</p>
        [% END %]
IKEDA Soji's avatar
IKEDA Soji committed
61
    [% END %]
sympa-authors's avatar
sympa-authors committed
62
[% END %]
salaun's avatar
salaun committed
63

64
[% IF families -%]
Luc Didry's avatar
Luc Didry committed
65
66
67
68
69
70
71
72
73
74
75
76
77
78
    [% IF subaction == 'families' %]
        <h2>[%|loc%]Families[%END%]</h2><br />
        <form action="[% path_cgi %]" method="post">
            <fieldset>
                <select name="family_name">
                    [% FOREACH f = families %]
                        <option value='[% f %]'>[% f %]</option>
                    [% END %]
                </select>
                <input class="MainMenuLinks" type="submit" name="action_review_family" value="[%|loc%]Review lists from this family[%END%]" />
            </fieldset>
        </form>
    [% END %]
[% END %]
79
[% IF subaction == 'users' %]
Luc Didry's avatar
Luc Didry committed
80
81
82
83
84
85
86
87
88
89
90
91
    <hr>
    <h2>[%|loc%]Users[%END%]</h2>
    <p>[%|loc%]Enter an email address of a user to view lists that they are subscribed to:[%END%]</p>
    <form action="[% path_cgi %]" method="post">
        <fieldset>
            <div style="padding-bottom:1.0em;">
                <input type="text" name="email" size="30" value="[% email %]" />
            </div>
            <input type="hidden" name="action" value="search_user" />
            <input class="MainMenuLinks" type="submit" name="action_search_user" value="[%|loc%]Search User[%END%]" />
        </fieldset>
    </form>
92

Luc Didry's avatar
Luc Didry committed
93
94
95
96
97
98
99
100
101
102
103
    <hr>
    <h2>[%|loc%]Sessions[%END%]</h2>
    <form class="bold_label" action="[% path_cgi %]" method="post">
        <fieldset>
            <span>[%|loc%]View session information for users connected to this web interface:[%END%]</span>
            <label for="session_delay">[%|loc%]Delay for active sessions (minutes)[%END%] </label>
            <input type="text" id="session_delay" name="session_delay" size="2" value="10" />
            <input type="checkbox" id="connected_only" name="connected_only" /> <label for="connected_only">[%|loc%]Show only currently connected users[%END%] </label><br />
            <input type="submit" name="action_show_sessions" value="[%|loc%]Show Sessions[%END%]" />
        </fieldset>
    </form>
104

Luc Didry's avatar
Luc Didry committed
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
    <hr>
    <h2>[%|loc%]Changing user's email[%END%]</h2>
    <p>[%|loc%]You can update a user's email address for all their list memberships at once. If they are also list owner or list moderator, their email address for these roles will also be updated.[%END%]</p>
    <form class="bold_label" action="[% path_cgi %]" method="post">
        <fieldset>
            <div>
                <label for="current_email">[%|loc%]Current email address:[%END%]</label>
                <input id="current_email" type="text" name="current_email" size="30" />
            </div>
            <div>
                <label for="email">[%|loc%]New email address:[%END%]</label>
                <input id="email" type="text" name="email" size="30" />
            </div>
            <input type="hidden" name="action" value="move_user" />
            <input type="hidden" name="previous_action" value="serveradmin" />
            <input class="MainMenuLinks" type="submit" name="action_move_user" value="[%|loc%]Update user's email[%END%]" />
        </fieldset>
    </form>
123

Luc Didry's avatar
Luc Didry committed
124
125
126
127
128
129
130
131
132
133
134
135
    <hr>
    <h2>[%|loc%]Impersonate another User[%END%]</h2>
    <p>[%|loc%]Listmasters can switch context (impersonate) other users; this may be useful when providing assistance or when testing privileges.  Enter the email address of the user you'd like to switch context to:[%END%]</p>
    <form class="bold_label" action="[% path_cgi %]" method="post">
        <fieldset>
            <input id="session_email" type="text" name="email" size="50"/>
            <div style="padding-top:1.0em; clear:both;">
                <input class="MainMenuLinks" type="submit" name="action_set_session_email" value="[%|loc%]Switch User Context[%END%]" />
            </div>
        </fieldset>
    </form>
[% END %]
136
137

[% IF subaction == 'archives' %]
Luc Didry's avatar
Luc Didry committed
138
139
140
141
142
    <h2>[%|loc%]Archives[%END%]</h2>
    [%|loc%]It is possible to rebuild HTML archives for an individual list or for all lists (in batch).[%END%]
    <hr>
    <h3>[%|loc%]Rebuild archives for an individual list[%END%]</h3>
    <p>[%|loc%]Enter the name of the list that you'd like to rebuild HTML archives for:[%END%]</p>
143

Luc Didry's avatar
Luc Didry committed
144
145
146
147
148
149
150
    <form action="[% path_cgi %]" method="post">
        <fieldset>
            <label for="list"></label>
            <input id="list" type="text" name="list" size="20" />
            <div style="padding-top:1.0em; padding-bottom:0.25em; float:clear;">
                <input class="MainMenuLinks" type="submit" name="action_rebuildarc" value="[%|loc%]Rebuild archive[%END%]" />
            </div>
151

Luc Didry's avatar
Luc Didry committed
152
153
154
155
156
157
158
159
160
161
            <h3>[%|loc%]Rebuild archives for all lists[%END%]</h3>
            <p>
                <b>[%|loc%]Note:[%END%]</b> [%|loc%]As this option may take a long time to complete, it is recommended (if possible) to use it during non-busy times.[%END%]
            </p>
            <div style="padding-bottom: 1.0em; float:clear;">
                <input class="MainMenuLinks" type="submit" name="action_rebuildallarc" value="[%|loc%]Rebuild all[%END%]" />
            </div>
        </fieldset>
    </form>
[% END %]
162

163
[% IF subaction == 'logs' %]
Luc Didry's avatar
Luc Didry committed
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
    <h2>[%|loc%]System log[%END%]</h2>
    <h3>[%|loc%]Sympa log level[%END%]</h3>
    <p>[%|loc%]Set debug level for logs written to disk.  This setting is temporary, applying only for the lifetime of the fastcgi session hosting this interface.[%END%]</p>
    <form class="bold_label" action="[% path_cgi %]" method="post">
        <fieldset>
            [%|loc%]Log level:[%END%]
            <input id="log_level_0" type="radio" name="log_level" value="0" [%IF log_level == 0 %]checked="checked"[%END%]/>
            <label class="inlineLabel" for="log_level_0">0 </label>
            <input id="log_level_1" type="radio" name="log_level" value="1" [%IF log_level == 1 %]checked="checked"[%END%]/>
            <label class="inlineLabel" for="log_level_1">1 </label>
            <input id="log_level_2" type="radio" name="log_level" value="2" [%IF log_level == 2 %]checked="checked"[%END%]/>
            <label class="inlineLabel" for="log_level_2">2 </label>
            <input id="log_level_3" type="radio" name="log_level" value="3" [%IF log_level == 3 %]checked="checked"[%END%]/>
            <label class="inlineLabel" for="log_level_3">3 </label>
            <input id="log_level_4" type="radio" name="log_level" value="4" [%IF log_level == 4 %]checked="checked"[%END%]/>
            <label class="inlineLabel" for="log_level_4">4 </label>
            <input type="submit" name="action_set_loglevel" value="[%|loc%]Set log level[%END%]" />
        </fieldset>
    </form>
[% END %]
sympa-authors's avatar
sympa-authors committed
184

185
[% IF subaction == 'templates' %]
Luc Didry's avatar
Luc Didry committed
186
187
188
189
190
191
192
193
194
195
196
197
    <h2>[%|loc%]Templates[%END%]</h2>
    <form class="bold_label" action="[% path_cgi %]" method="post">
        <fieldset>
            <h3>[%|loc%]Edit default list template[%END%]</h3>
            <select id="file" name="file">
                [% FOREACH f = lists_default_files %]
                    <option value='[% f.key %]' [% f.value.selected %]>[% f.value.complete %]</option>
                [% END %]
            </select>
            <input type="submit" name="action_editfile" value="[%|loc%]Edit[%END%]" />
        </fieldset>
    </form>
198

Luc Didry's avatar
Luc Didry committed
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
    <form class="bold_label" action="[% path_cgi %]" method="post">
        <fieldset>
            <h3>[%|loc%]Edit site-wide templates[%END%]</h3>
            <select id="file" name="file">
                [% FOREACH f = server_files %]
                    <option value='[% f.key %]' [% f.value.selected %]>[% f.value.complete %]</option>
                [% END %]
            </select>
            <input class="MainMenuLinks" type="submit" name="action_editfile" value="[%|loc%]Edit[%END%]" />
        </fieldset>
    </form>
    <br />
    <p>
        <a class="actionMenuLinks" href="https://translate.sympa.org/">
            [%|loc%]view translations[%END%]
        </a>
        <a class="actionMenuLinks" href="[% 'ls_templates' | url_rel %]">
            [%|loc%]Customize templates[%END%]
        </a>
    </p>
sympa-authors's avatar
sympa-authors committed
219

Luc Didry's avatar
Luc Didry committed
220
221
222
223
224
225
226
227
228
229
230
231
232
233
    <div>
        <h3>[%|loc%]Dump TT2 Variables[%END%]</h3>
        <p>[%|loc%]Toggle the dumping of available TT2 variables when rendering web interface pages. This may be useful when developing or debugging custom TT2 templates. This setting is temporary, applying only for the lifetime of the web interface fastcgi process.[%END%]</p>
        <form class="bold_label" action="[% path_cgi %]" method="post">
            <fieldset>
                [% IF dumpvars == 'true' %]
                    <input class="MainMenuLinks" type="submit" name="action_unset_dumpvars" value="[%|loc%]Disable template variables dump[%END%]" />
                [% ELSE %]
                    <input class="MainMenuLinks" type="submit" name="action_set_dumpvars" value="[%|loc%]Enable template variables dump[%END%]" />
                [% END %]
            </fieldset>
        </form>
    </div>
[% END %]
234

235
[% IF subaction == 'skins' %]
Luc Didry's avatar
Luc Didry committed
236
237
238
239
240
241
    <h2>[%|loc%]Skins, CSS and colors[%END%]</h2><br />
    <div>
        <a class="actionMenuLinks" href="[% 'skinsedit' | url_rel %]">
            [%|loc%]Skins administration page[%END%]
        </a>
    </div>
242
243
[% END %]

Luc Didry's avatar
Luc Didry committed
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
[% IF subaction == 'edit_config' %]
    <h2>[%|loc%]View main config[%END%]</h2><br />
    <div>
        [% SET close_table = '' %]
        [% FOREACH confparam IN editable_params %]
            [% IF confparam.title %]
                [% close_table %]
                <h4> [% confparam.title %] </h4>
                <table class="responsive listOfItems">
                    <tr>
                        <th>[%|loc%]parameter name[%END%]</th>
                        <th>value</th>
                        <th>[%|loc%]default[%END%]</th>
                        <th>[%|loc%]semantic[%END%]</th>
                    </tr>
            [% ELSE %]
                [% IF dark == '1' %]
                    [% SET dark='0'%]
                    <tr>
                [% ELSE %]
                    [% SET dark='1'%]
                    <tr class="color0">
                [% END %]
                        <td>[% confparam.name  %]</td>
                        <td>
                            [% IF confparam.edit == '1' %]
                                <form action="[% path_cgi %]" method="post">
                                    <fieldset>
                                        <input type="text" name="new_value"  value="[% confparam.current_value %]" style="width:75%"/>
                                        <input type="hidden" name="conf_parameter_name" value="[% confparam.name  %]" />
                                        <input class="MainMenuLinks" type="submit" name="action_set_param" value="[%|loc%]Set[%END%]" style="width:20%" />
                                    </fieldset>
                                </form>
                            [% ELSE %]
                                [% confparam.current_value %]
                            [% END %]
                        </td>
                        <td>[% confparam.default %]</td>
                        <td>[% confparam.query %]</td>
                    </tr>
                [% SET close_table = '</table>' %]
            [% END %]
        [% END %]
        [% close_table %]
    </div>
[% END %]
290
[% IF subaction == 'translation' %]
Luc Didry's avatar
Luc Didry committed
291
292
293
294
295
296
297
298
    <h2>[%|loc%]Translating Sympa[%END%]</h2><br />
    <div>
        [%|loc%]Sympa is designed to allow easy internationalization of its user interface (service email messages and web interface). All translations for a language are gathered into a single PO file that can be manipulated by the standard GNU gettext tools.[%END%]
    </div>
    <div>
        [%|loc%]Check our translation FAQ if you wish to translate the Sympa GUI into your native language: [%END%] <a href="https://translate.sympa.org/pages/help">https://translate.sympa.org/pages/help</a>
    </div>
[% END %]
299

300
[% IF subaction == 'tracker' %]
Luc Didry's avatar
Luc Didry committed
301
302
    <h2>[%|loc%]Submitting a bug, a feature request[%END%]</h2><br />
    <div>
303
        [%|loc%]You can submit a problem or request a new feature: [%END%]<a href="https://github.com/sympa-community/sympa/issues/new/choose">https://github.com/sympa-community/sympa/issues/new/choose</a>
Luc Didry's avatar
Luc Didry committed
304
305
    </div>
[% END %]
sympa-authors's avatar
sympa-authors committed
306

salaun's avatar
salaun committed
307

308
[% IF subaction == 'logs' %]
Luc Didry's avatar
Luc Didry committed
309
310
311
312
313
    [% IF loop_count %]
        <p class="bottom_page">
            [%|loc(process_id,loop_count,start_time)%]This FastCGI process (%1) has served %2 pages since %3.[%END%]
        </p>
    [% END %]
314
[% END %]
315
<!-- end serveradmin.tt2 (distrib) -->