Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homu/html/queue.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</style>
</head>
<body>
<h1>Homu queue - {{repo_label}}</h1>
<h1>Homu queue - {% if repo_url %}<a href="{{repo_url}}" target="_blank">{{repo_label}}</a>{% else %}{{repo_label}}{% endif %}</h1>

<p>
<button type="button" id="rollup">Create a rollup</button>
Expand Down
5 changes: 5 additions & 0 deletions homu/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,13 @@ def queue(repo_label):
if repo_label == 'all':
labels = g.repos.keys()
multiple = True
repo_url = None
else:
labels = repo_label.split('+')
multiple = len(labels) > 1
repo_url = 'https://github.com/{}/{}'.format(
g.cfg['repo'][repo_label]['owner'],
g.cfg['repo'][repo_label]['name'])

states = []
for label in labels:
Expand Down Expand Up @@ -88,6 +92,7 @@ def queue(repo_label):
})

return g.tpls['queue'].render(
repo_url=repo_url,
repo_label=repo_label,
states=rows,
oauth_client_id=g.cfg['github']['app_client_id'],
Expand Down