fix incorrect Stage ID path in template

pull/1/head
Brad Rydzewski 5 years ago
parent 7cd4588fa1
commit 07f47eebd6

@ -39,7 +39,7 @@
</div>
{{ end }}
{{ range .Items }}
<a href="/stage/{{ .ID }}" class="card stage">
<a href="/stage/{{ .Stage.ID }}" class="card stage">
<h2>{{ .Repo.Slug }}</h2>
<img src="{{ .Build.AuthorAvatar }}" />
<span class="connector"></span>

@ -77,7 +77,7 @@ var index = `<!DOCTYPE html>
</div>
{{ end }}
{{ range .Items }}
<a href="/stage/{{ .ID }}" class="card stage">
<a href="/stage/{{ .Stage.ID }}" class="card stage">
<h2>{{ .Repo.Slug }}</h2>
<img src="{{ .Build.AuthorAvatar }}" />
<span class="connector"></span>

@ -1,7 +1,6 @@
{
"Items": [
{
"ID": 1,
"Idle": false,
"Repo": {
"Slug": "octocat/hello-world"
@ -11,6 +10,7 @@
"Number": 42
},
"Stage": {
"ID": 1,
"Name": "test",
"Status": "running",
"Started": 1563059000,

@ -10,6 +10,7 @@
"Number": 42
},
"Stage": {
"ID": 1,
"Name": "test",
"Status": "success",
"Started": 1563059000,

Loading…
Cancel
Save