mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-07-17 15:51:27 +00:00
Show last events for repos containing /
This commit is contained in:
parent
0889821117
commit
34fe1742cf
2
main.go
2
main.go
@ -124,7 +124,6 @@ func main() {
|
||||
})
|
||||
view.AddGlobal("url_encoded_path", func(m interface{}) string {
|
||||
return url.PathEscape(m.(string))
|
||||
|
||||
})
|
||||
view.AddGlobal("url_decoded_path", func(m interface{}) string {
|
||||
res, err := url.PathUnescape(m.(string))
|
||||
@ -207,6 +206,7 @@ func (a *apiClient) viewTags(c echo.Context) error {
|
||||
data.Set("repo", repo)
|
||||
data.Set("tags", tags)
|
||||
data.Set("deleteAllowed", deleteAllowed)
|
||||
repoPath, _ = url.PathUnescape(repoPath)
|
||||
data.Set("events", a.eventListener.GetEvents(repoPath))
|
||||
|
||||
return c.Render(http.StatusOK, "tags.html", data)
|
||||
|
Loading…
Reference in New Issue
Block a user