Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Managetests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Managetests
Commits
86dbef23
Commit
86dbef23
authored
Dec 11, 2015
by
Pietro Albini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't show on the index not started branches
parent
50d47921
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
managetests/frontend/__init__.py
managetests/frontend/__init__.py
+2
-1
managetests/frontend/templates/index.html
managetests/frontend/templates/index.html
+1
-0
No files found.
managetests/frontend/__init__.py
View file @
86dbef23
...
...
@@ -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
)
...
...
managetests/frontend/templates/index.html
View file @
86dbef23
...
...
@@ -20,6 +20,7 @@
{% block content %}
{% if not branches %}
<p>
Nessun branch disponibile...
</p>
{% else %}
<ul
class=
"branches"
>
{% for branch in branches %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment