Have current log level selected by default in dropdown (#268)

* Have current log level selected

* Simplify footer
This commit is contained in:
Daniel Markstedt 2021-09-25 19:33:21 -07:00 committed by GitHub
parent 88c5bb0643
commit 3d0c200521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -53,9 +53,7 @@
{% block content %}{% endblock %}
</div>
<div class="footer">
<center><tt>RaSCSI version: <strong>{{server_info["version"]}}</strong></tt></center>
<center><tt>RaSCSI git revision: <strong><a href="https://github.com/akuker/RASCSI/commit/{{running_env["git"]}}">{{running_env["git"][:7]}}</a></strong></tt></center>
<center><tt>Server log level: <strong>{{server_info["current_log_level"]}}</strong></tt></center>
<center><tt>RaSCSI version: <strong>{{server_info["version"]}} <a href="https://github.com/akuker/RASCSI/commit/{{running_env["git"]}}">{{running_env["git"][:7]}}</a></strong></tt></center>
<center><tt>Pi environment: {{running_env["env"]}}</tt></center>
</div>
</div>

View File

@ -285,7 +285,7 @@
<label for="level">Log Level:</label>
<select name="level">
{% for level in server_info["log_levels"] %}
<option value="{{level}}">{{level}}</option>
<option value="{{level}}"{% if level == server_info["current_log_level"] %} selected{% endif %}>{{level}}</option>
{% endfor %}
</select>
<input type="submit" value="Set Log Level" />