Merge pull request #1161 from jpmens/rst03

rst output template tweak for 'required'
This commit is contained in:
Michael DeHaan 2012-09-30 05:34:31 -07:00
commit f13e20655e

View file

@ -32,7 +32,7 @@
{% for (k,v) in options.iteritems() %}
<tr>
<td>@{ k }@</td>
<td>@{ v.get('required',False) }@</td>
<td>{% if v.get('required', False) %}yes{% else %}no{% endif %}</td>
<td>{% if v['default'] %}@{ v['default'] }@{% endif %}</td>
<td><ul>{% for choice in v.get('choices',[]) -%}<li>@{ choice }@</li>{% endfor -%}</ul></td>
<td>{% for desc in v.description -%}@{ desc | html_ify }@{% endfor -%}</td>