OLD | NEW |
---|---|
1 {% set title = 'Swarming global config' %} | 1 {% set title = 'Swarming global config' %} |
2 {% extends "swarming/base.html" %} | 2 {% extends "swarming/base.html" %} |
3 | 3 |
4 {% block headers %} | 4 {% block headers %} |
5 <script> | 5 <script> |
6 function onclick_ts_mon() { | 6 function onclick_ts_mon() { |
7 document.getElementById("enable_ts_monitoring_hidden").disabled = | 7 document.getElementById("enable_ts_monitoring_hidden").disabled = |
8 document.getElementById("enable_ts_monitoring").checked; | 8 document.getElementById("enable_ts_monitoring").checked; |
9 } | 9 } |
10 </script> | 10 </script> |
11 {% endblock %} | 11 {% endblock %} |
12 | 12 |
13 {% block body %} | 13 {% block body %} |
14 <h1>Server global config</h1> | 14 <h1>Server global config</h1> |
15 This config is distributed by | |
16 <a href="https://luci-config.appspot.com">luci-config</a>. | |
M-A Ruel
2016/04/27 17:50:46
The path can't be hardcoded.
nodir
2016/04/27 18:37:21
Done.
| |
17 Using revision <a href="{{rev_url}}">{{rev}}</a>. | |
15 | 18 |
16 Last updated by: | 19 <h2>General</h2> |
17 <strong>{% if cfg.updated_by %}{{cfg.updated_by.to_bytes()}}{% else%}N/A{%endif% } | 20 <p> |
18 </strong>.<br> | 21 Google Analytics ID: |
19 Last updated on: | 22 <input name="google_analytics" value="{{cfg.google_analytics}}"/> |
20 <strong>{{cfg.updated_ts|datetimeformat}}</strong>.<br> | 23 </p> |
21 | 24 |
22 {% if note %} | 25 <p> |
23 <span style="color: red; font-style: italic">{{note}}</span><p> | 26 Enable timeseries monitoring: <input id="enable_ts_monitoring" type="checkbox" n ame="enable_ts_monitoring" value="True" onclick="onclick_ts_mon()" {% if cfg.ena ble_ts_monitoring %}checked{% endif %}> |
24 {% endif %} | 27 <input id="enable_ts_monitoring_hidden" type="hidden" name="enable_ts_monitorin g" value="False"> |
28 </p> | |
25 | 29 |
26 <form method="post" action="{{path}}"> | 30 <h2>Bots</h2> |
27 <h2>General</h2> | 31 Delay in seconds before a bot is considered dead after it stops pinging: |
28 <p> | 32 <input name="bot_death_timeout_secs" value="{{cfg.bot_death_timeout_secs}}"/> |
29 Google Analytics ID: | 33 <br> |
30 <input name="google_analytics" value="{{cfg.google_analytics}}"/> | |
31 </p> | |
32 | 34 |
33 <p> | 35 <h2>Tasks</h2> |
34 Enable timeseries monitoring: <input id="enable_ts_monitoring" type="checkbox" name="enable_ts_monitoring" value="True" onclick="onclick_ts_mon()" {% if cfg.e nable_ts_monitoring %}checked{% endif %}> | 36 Max age in seconds for task reuse: |
35 <input id="enable_ts_monitoring_hidden" type="hidden" name="enable_ts_monitor ing" value="False"> | 37 <input name="reusable_task_age_secs" value="{{cfg.reusable_task_age_secs}}"/> |
36 </p> | |
37 | 38 |
38 <h2>Bots</h2> | |
39 Delay in seconds before a bot is considered dead after it stops pinging: | |
40 <input name="bot_death_timeout_secs" value="{{cfg.bot_death_timeout_secs}}"/> | |
41 <br> | |
42 | |
43 <h2>Tasks</h2> | |
44 Max age in seconds for task reuse: | |
45 <input name="reusable_task_age_secs" value="{{cfg.reusable_task_age_secs}}"/> | |
46 <br> | |
47 | |
48 <br> | |
49 <input type="hidden" name="keyid" value="{{cfg.key.integer_id()}}" /> | |
50 <input type="hidden" name="xsrf_token" value="{{xsrf_token}}" /> | |
51 <input type="submit" value="Update" /> | |
52 <br> | |
53 </form> | |
54 {% endblock %} | 39 {% endblock %} |
OLD | NEW |