show option description in qute:settings
This commit is contained in:
parent
123aace3e8
commit
b801208d97
@ -15,6 +15,7 @@ th { background: lightgrey; }
|
|||||||
th pre { color: grey; text-align: left; }
|
th pre { color: grey; text-align: left; }
|
||||||
.noscript, .noscript-text { color:red; }
|
.noscript, .noscript-text { color:red; }
|
||||||
.noscript-text { margin-bottom: 5cm; }
|
.noscript-text { margin-bottom: 5cm; }
|
||||||
|
.option_description { margin: .5ex 0; color: grey; font-size: 80%; font-style: italic; white-space: pre-line; }
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
@ -25,7 +26,11 @@ th pre { color: grey; text-align: left; }
|
|||||||
<tr><th colspan="2"><h3>{{ section }}</h3><pre>{{ config.SECTION_DESC.get(section)|wordwrap(width=120) }}</pre></th></tr>
|
<tr><th colspan="2"><h3>{{ section }}</h3><pre>{{ config.SECTION_DESC.get(section)|wordwrap(width=120) }}</pre></th></tr>
|
||||||
{% for d, e in config.DATA.get(section).items() %}
|
{% for d, e in config.DATA.get(section).items() %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ d }} (Current: {{ confget(section, d)|truncate(100) }})</td>
|
<td>{{ d }} (Current: {{ confget(section, d)|truncate(100) }})
|
||||||
|
{% if config.DATA.get(section).descriptions[d] %}
|
||||||
|
<p class="option_description">{{ config.DATA.get(section).descriptions[d]|e }}</p>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text"
|
<input type="text"
|
||||||
onblur="cset('{{ section }}', '{{ d }}', this)"
|
onblur="cset('{{ section }}', '{{ d }}', this)"
|
||||||
|
Loading…
Reference in New Issue
Block a user