Commit f0fdc2f8 authored by Christophe Benz's avatar Christophe Benz

Remove option groups from version select

parent ac14b236
...@@ -13,20 +13,12 @@ ...@@ -13,20 +13,12 @@
<div class="form-group"> <div class="form-group">
<label for="git_ref" class="mr-2">Version</label> <label for="git_ref" class="mr-2">Version</label>
<select class="form-control" id="version_select" name="git_ref"> <select class="form-control" id="version_select" name="git_ref">
{% if tags %} {% for tag in tags or [] %}
<optgroup label="Tags">
{% for tag in tags %}
<option{% if tag.name == schema_current_version %} selected{% endif %}>{{ tag.name }}</option> <option{% if tag.name == schema_current_version %} selected{% endif %}>{{ tag.name }}</option>
{% endfor %} {% endfor %}
</optgroup> {% for branch in branches or [] %}
{% endif %}
{% if branches %}
<optgroup label="Branches">
{% for branch in branches %}
<option{% if branch.name == schema_current_version %} selected{% endif %}>{{ branch.name }}</option> <option{% if branch.name == schema_current_version %} selected{% endif %}>{{ branch.name }}</option>
{% endfor %} {% endfor %}
</optgroup>
{% endif %}
</select> </select>
</div> </div>
</form> </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