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

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

6
    <h3>[%|loc%]Information[%END%]</h3>
7
       <ul>
8
9
10
11
          <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>
13
14
[% END %] 

sympa-authors's avatar
sympa-authors committed
15
[% IF main_robot %]
16
  [% IF subaction == 'vhosts' %]
sympa-authors's avatar
sympa-authors committed
17
18
<h2>[%|loc%]Virtual Robots[%END%]</h2> <br />
  [% IF robots %]
IKEDA Soji's avatar
IKEDA Soji committed
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
    <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 %]
sympa-authors's avatar
sympa-authors committed
58
  [% ELSE %]
59
    <p>[%|loc%]No Virtual Robot defined on this server[%END%]</p>
sympa-authors's avatar
sympa-authors committed
60
  [% END %]
61
  [% END %]
sympa-authors's avatar
sympa-authors committed
62
[% END %]
salaun's avatar
salaun committed
63

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

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

104
105
106
107
108
109
  <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>
110
    <label for="current_email">[%|loc%]Current email address:[%END%]
111
112
113
114
    </label>
    <input id="current_email" type="text" name="current_email" size="30" />
  </div>
  <div>
115
    <label for="email">[%|loc%]New email address:[%END%]</label>
116
117
118
119
120
121
122
123
124
    <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>

125
126
127
<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>
128
129
130
<form class="bold_label" action="[% path_cgi %]" method="post">
<fieldset>
<input id="session_email" type="text" name="email" size="50"/> 
131
<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>
132
133
134
135
136
</fieldset>
</form>
[% END %] 

[% IF subaction == 'archives' %]
137
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
<form action="[% path_cgi %]" method="post">
144
<fieldset>
145
146
147
<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>

<h3>[%|loc%]Rebuild archives for all lists[%END%]</h3>
148
<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%]
149
<div style="padding-bottom: 1.0em; float:clear;"> <input class="MainMenuLinks" type="submit" name="action_rebuildallarc" value="[%|loc%]Rebuild all[%END%]" /></div>
150
</fieldset>
151
</form>
152
[% END %] 
153

154
[% IF subaction == 'logs' %]
sikeda's avatar
sikeda committed
155
<h2>[%|loc%]System log[%END%]</h2>
156
157
<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>
158
<form class="bold_label" action="[% path_cgi %]" method="post">
159
<fieldset>
160
[%|loc%]Log level:[%END%] 
161
162
163
164
165
<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>
166
<input type="submit" name="action_set_loglevel" value="[%|loc%]Set log level[%END%]" />
167
</fieldset>
168
</form>
169
[% END %] 
sympa-authors's avatar
sympa-authors committed
170

171
[% IF subaction == 'templates' %]
172
<h2>[%|loc%]Templates[%END%]</h2>
173
174
<form class="bold_label" action="[% path_cgi %]" method="post">
<fieldset>
175
  <h3>[%|loc%]Edit default list template[%END%]</h3>
176
  <select id="file" name="file">
sympa-authors's avatar
sympa-authors committed
177
178
    [% FOREACH f = lists_default_files %]<option value='[% f.key %]' [% f.value.selected %]>[% f.value.complete %]</option>[% END %]
  </select>
179
  <input type="submit" name="action_editfile" value="[%|loc%]Edit[%END%]" />
180
181
</fieldset>
</form>
sympa-authors's avatar
sympa-authors committed
182

183
184
<form class="bold_label" action="[% path_cgi %]" method="post">
<fieldset>
185
  <h3>[%|loc%]Edit site-wide templates[%END%]</h3>
186
  <select id="file" name="file">
sympa-authors's avatar
sympa-authors committed
187
188
    [% FOREACH f = server_files %]<option value='[% f.key %]' [% f.value.selected %]>[% f.value.complete %]</option>[% END %]
  </select>
sympa-authors's avatar
   
sympa-authors committed
189
  <input class="MainMenuLinks" type="submit" name="action_editfile" value="[%|loc%]Edit[%END%]" />
190
</fieldset>
sympa-authors's avatar
sympa-authors committed
191
</form>
192
<br />
193
<p><a class="actionMenuLinks" href="https://translate.sympa.org/">[%|loc%]view translations[%END%]</a>
194
<a class="actionMenuLinks" href="[% 'ls_templates' | url_rel %]">[%|loc%]Customize templates[%END%]</a>
195
</p>
196
197
198

</div>

199
<div>
200
<h3>[%|loc%]Dump TT2 Variables[%END%]</h3>
201
<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>
202
<form class="bold_label" action="[% path_cgi %]" method="post">
203
<fieldset>
204
[% IF dumpvars == 'true' %]
205
  <input class="MainMenuLinks" type="submit" name="action_unset_dumpvars" value="[%|loc%]Disable template variables dump[%END%]" />
206
[% ELSE %]
207
  <input class="MainMenuLinks" type="submit" name="action_set_dumpvars" value="[%|loc%]Enable template variables dump[%END%]" />
208
[% END %]
sympa-authors's avatar
sympa-authors committed
209

210
</fieldset>
211
212
</form>
</div>
213
[% END %] 
214

215
[% IF subaction == 'skins' %]
sympa-authors's avatar
sympa-authors committed
216
<h2>[%|loc%]Skins, CSS and colors[%END%]</h2><br />
217
<div>
218
<a class="actionMenuLinks" href="[% 'skinsedit' | url_rel %]">[%|loc%]Skins administration page[%END%]</a>
219
</div>
220
[% END %] 
221
222
223
[% IF subaction == 'edit_config' %]
<h2>[%|loc%]View main config[%END%]</h2><br />
<div>
sympa-authors's avatar
sympa-authors committed
224

225
226
227
228
[% SET close_table = '' %]
[% FOREACH confparam IN editable_params %]
  [% IF confparam.title %]
     [% close_table %]
229
     <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> 
230
231
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
  [% ELSE %]
     [% IF dark == '1' %]
       <tr> [% SET dark='0'%]
     [% ELSE  %]
       <tr class="color0">[% SET dark='1'%]
     [% 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 %] 
258
[% IF subaction == 'translation' %]
259
<h2>[%|loc%]Translating Sympa[%END%]</h2><br />
260
<div>
261
[%|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%]
262
263
</div>
<div>
264
[%|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>
265
</div>
266
[% END %] 
267

268
[% IF subaction == 'tracker' %]
269
<h2>[%|loc%]Submitting a bug, a feature request[%END%]</h2><br />
270
<div>
271
[%|loc%]You can submit a problem or request a new feature: [%END%]<a href="http://www.sympa.org/tracking">http://www.sympa.org/tracking</a>
272
</div>
273
[% END %] 
sympa-authors's avatar
sympa-authors committed
274

salaun's avatar
salaun committed
275

276
[% IF subaction == 'logs' %]
salaun's avatar
salaun committed
277
[% IF loop_count %]
278
<p class="bottom_page">
sympa-authors's avatar
   
sympa-authors committed
279
[%|loc(process_id,loop_count,start_time)%]This FastCGI process (%1) has served %2 pages since %3.[%END%]
280
</p>
281
[% END %]
282
[% END %]
283
<!-- end serveradmin.tt2 (distrib) -->