Commit f0fdc2f8 authored by Christophe Benz's avatar Christophe Benz

Remove option groups from version select

parent ac14b236
......@@ -13,20 +13,12 @@
<div class="form-group">
<label for="git_ref" class="mr-2">Version</label>
<select class="form-control" id="version_select" name="git_ref">
{% if tags %}
<optgroup label="Tags">
{% for tag in tags %}
{% for tag in tags or [] %}
<option{% if tag.name == schema_current_version %} selected{% endif %}>{{ tag.name }}</option>
{% endfor %}
</optgroup>
{% endif %}
{% if branches %}
<optgroup label="Branches">
{% for branch in branches %}
{% for branch in branches or [] %}
<option{% if branch.name == schema_current_version %} selected{% endif %}>{{ branch.name }}</option>
{% endfor %}
</optgroup>
{% endif %}
</select>
</div>
</form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment