| 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 %} | |
| 5 <script> | |
| 6 function onclick_ts_mon() { | |
| 7 document.getElementById("enable_ts_monitoring_hidden").disabled = | |
| 8 document.getElementById("enable_ts_monitoring").checked; | |
| 9 } | |
| 10 </script> | |
| 11 {% endblock %} | |
| 12 | |
| 13 {% block body %} | 4 {% block body %} |
| 14 <h1>Server global config</h1> | 5 <h1>Server global config</h1> |
| 15 | 6 {% if not config_service_url %} |
| 16 Last updated by: | 7 Config service URL is not configured for this instance of swarming. |
| 17 <strong>{% if cfg.updated_by %}{{cfg.updated_by.to_bytes()}}{% else%}N/A{%endif%
} | 8 Configure it using |
| 18 </strong>.<br> | 9 <a href="/_ah/api/explorer#p/config/v1/config.settings">configuration api<a>. |
| 19 Last updated on: | 10 Using default values. |
| 20 <strong>{{cfg.updated_ts|datetimeformat}}</strong>.<br> | 11 {% else %} |
| 21 | 12 This config is distributed by |
| 22 {% if note %} | 13 <a href="{{config_service_url}}">luci-config</a>. |
| 23 <span style="color: red; font-style: italic">{{note}}</span><p> | 14 {% if not rev %} |
| 15 Config file was not imported. Using default values. |
| 16 {% else %} |
| 17 Using revision <a href="{{rev_url}}">{{rev}}</a>. |
| 18 {% endif %} |
| 24 {% endif %} | 19 {% endif %} |
| 25 | 20 |
| 26 <form method="post" action="{{path}}"> | 21 <h2>General</h2> |
| 27 <h2>General</h2> | 22 <p> |
| 28 <p> | 23 Google Analytics ID: |
| 29 Google Analytics ID: | 24 <input value="{{cfg.google_analytics}}" disabled/> |
| 30 <input name="google_analytics" value="{{cfg.google_analytics}}"/> | 25 </p> |
| 31 </p> | |
| 32 | 26 |
| 33 <p> | 27 <p> |
| 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 %}> | 28 Enable timeseries monitoring: |
| 35 <input id="enable_ts_monitoring_hidden" type="hidden" name="enable_ts_monitor
ing" value="False"> | 29 <input id="enable_ts_monitoring" type="checkbox" name="enable_ts_monitoring" |
| 36 </p> | 30 value="True" disabled |
| 31 {% if cfg.enable_ts_monitoring %}checked{% endif %}> |
| 32 </p> |
| 37 | 33 |
| 38 <h2>Bots</h2> | 34 <h2>Bots</h2> |
| 39 Delay in seconds before a bot is considered dead after it stops pinging: | 35 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}}"/> | 36 <input value="{{cfg.bot_death_timeout_secs}}" disabled/> |
| 41 <br> | 37 <br> |
| 42 | 38 |
| 43 <h2>Tasks</h2> | 39 <h2>Tasks</h2> |
| 44 Max age in seconds for task reuse: | 40 Max age in seconds for task reuse: |
| 45 <input name="reusable_task_age_secs" value="{{cfg.reusable_task_age_secs}}"/> | 41 <input value="{{cfg.reusable_task_age_secs}}" disabled/> |
| 46 <br> | |
| 47 | 42 |
| 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 %} | 43 {% endblock %} |
| OLD | NEW |