Last events were not shown when viewing a repo of non-default namespace.

This commit is contained in:
Roman Vynar 2018-06-12 12:27:29 +03:00
parent 4db9ceb0a6
commit 16fd6d944f
3 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,7 @@
### Unreleased
* When using MySQL for event storage, do not leak connections.
* Last events were not shown when viewing a repo of non-default namespace.
### 0.6

View File

@ -196,7 +196,7 @@ func (a *apiClient) viewTags(c echo.Context) error {
data.Set("repo", repo)
data.Set("tags", tags)
data.Set("deleteAllowed", deleteAllowed)
data.Set("events", a.eventListener.GetEvents(repo))
data.Set("events", a.eventListener.GetEvents(repoPath))
return c.Render(http.StatusOK, "tags.html", data)
}

View File

@ -23,12 +23,16 @@
{{block body()}}
<div style="float: right">
<select id="namespace" class="form-control input-sm" style="height: 36px">
<option value="" disabled>-- Namespace --</option>
{{range namespace := namespaces}}
<option value="{{ namespace }}">{{ namespace }}</option>
{{end}}
</select>
</div>
<div style="float: right">
<ol class="breadcrumb">
<li class="active">Namespace</li>
</ol>
</div>
<ol class="breadcrumb">
<li><a href="/">Home</a></li>