Commit 86dbef23 authored by Pietro Albini's avatar Pietro Albini

Don't show on the index not started branches

parent 50d47921
......@@ -55,7 +55,8 @@ def create_app(manager, processor):
@app.route("/")
def list_branches():
branches = list(manager.branches.values())
branches = [b for b in manager.branches.values()
if b.name in manager.instances._processes]
branches.sort(key=lambda branch: branch.name)
branches.sort(key=lambda branch: branch.pinned, reverse=True)
......
......@@ -20,6 +20,7 @@
{% block content %}
{% if not branches %}
<p>Nessun branch disponibile...</p>
{% else %}
<ul class="branches">
{% for branch in branches %}
......
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