Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1953)

Unified Diff: appengine/swarming/templates/restricted_config.html

Issue 1926443003: swarming: read configs from luci-config (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: unlint Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/templates/restricted_config.html
diff --git a/appengine/swarming/templates/restricted_config.html b/appengine/swarming/templates/restricted_config.html
index 8e94b966cdbc4f707685e1e0b430b08c134c5819..f5c8e61b2a67e28dde520020d2f6e7c5a69c53af 100644
--- a/appengine/swarming/templates/restricted_config.html
+++ b/appengine/swarming/templates/restricted_config.html
@@ -12,43 +12,28 @@ function onclick_ts_mon() {
{% block body %}
<h1>Server global config</h1>
+This config is distributed by
+<a href="https://luci-config.appspot.com">luci-config</a>.
+Using revision <a href="{{rev_url}}">{{rev}}</a>.
+
+<h2>General</h2>
+<p>
+Google Analytics ID:
+<input name="google_analytics" value="{{cfg.google_analytics}}"/>
+</p>
+
+<p>
+Enable timeseries monitoring: <input id="enable_ts_monitoring" type="checkbox" name="enable_ts_monitoring" value="True" onclick="onclick_ts_mon()" {% if cfg.enable_ts_monitoring %}checked{% endif %}>
+ <input id="enable_ts_monitoring_hidden" type="hidden" name="enable_ts_monitoring" value="False">
+</p>
+
+<h2>Bots</h2>
+Delay in seconds before a bot is considered dead after it stops pinging:
+<input name="bot_death_timeout_secs" value="{{cfg.bot_death_timeout_secs}}"/>
+<br>
+
+<h2>Tasks</h2>
+Max age in seconds for task reuse:
+<input name="reusable_task_age_secs" value="{{cfg.reusable_task_age_secs}}"/>
-Last updated by:
-<strong>{% if cfg.updated_by %}{{cfg.updated_by.to_bytes()}}{% else%}N/A{%endif%}
- </strong>.<br>
-Last updated on:
-<strong>{{cfg.updated_ts|datetimeformat}}</strong>.<br>
-
-{% if note %}
-<span style="color: red; font-style: italic">{{note}}</span><p>
-{% endif %}
-
-<form method="post" action="{{path}}">
- <h2>General</h2>
- <p>
- Google Analytics ID:
- <input name="google_analytics" value="{{cfg.google_analytics}}"/>
- </p>
-
- <p>
- Enable timeseries monitoring: <input id="enable_ts_monitoring" type="checkbox" name="enable_ts_monitoring" value="True" onclick="onclick_ts_mon()" {% if cfg.enable_ts_monitoring %}checked{% endif %}>
- <input id="enable_ts_monitoring_hidden" type="hidden" name="enable_ts_monitoring" value="False">
- </p>
-
- <h2>Bots</h2>
- Delay in seconds before a bot is considered dead after it stops pinging:
- <input name="bot_death_timeout_secs" value="{{cfg.bot_death_timeout_secs}}"/>
- <br>
-
- <h2>Tasks</h2>
- Max age in seconds for task reuse:
- <input name="reusable_task_age_secs" value="{{cfg.reusable_task_age_secs}}"/>
- <br>
-
- <br>
- <input type="hidden" name="keyid" value="{{cfg.key.integer_id()}}" />
- <input type="hidden" name="xsrf_token" value="{{xsrf_token}}" />
- <input type="submit" value="Update" />
- <br>
-</form>
{% endblock %}
« appengine/swarming/server/config.py ('K') | « appengine/swarming/server/task_scheduler_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698