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