frontend: rename main template to index.tmpl.html, fix showing HEAD
Fix some Captions, too.
This commit is contained in:
parent
3125b79f2f
commit
bdfdad2585
2 changed files with 5 additions and 5 deletions
|
@ -71,12 +71,12 @@ func MakeFrontend(rotatingLogHandler *misc.RotatingLogHandler, gerritClient *ger
|
|||
}
|
||||
|
||||
tmpl := template.Must(loadTemplate([]string{
|
||||
"submit-queue.tmpl.html",
|
||||
"index.tmpl.html",
|
||||
"serie.tmpl.html",
|
||||
"changeset.tmpl.html",
|
||||
}, funcMap))
|
||||
|
||||
tmpl.ExecuteTemplate(c.Writer, "submit-queue.tmpl.html", gin.H{
|
||||
tmpl.ExecuteTemplate(c.Writer, "index.tmpl.html", gin.H{
|
||||
// Config
|
||||
"projectName": projectName,
|
||||
"branchName": branchName,
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<a class="nav-link" href="#region-info">Info</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#region-queue">Current Queue</a>
|
||||
<a class="nav-link" href="#region-wipserie">WIP Serie</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#region-log">Log</a>
|
||||
|
@ -49,13 +49,13 @@
|
|||
<tr>
|
||||
<th scope="row">HEAD:</th>
|
||||
<td>
|
||||
{{ if .currentlyRunning }}{{ .HEAD }}{{ else }}-{{ end }}
|
||||
{{ if .HEAD }}{{ .HEAD }}{{ else }}-{{ end }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h2 id="region-wipserie">wip Serie</h2>
|
||||
<h2 id="region-wipserie">WIP Serie</h2>
|
||||
{{ if .wipSerie }}
|
||||
{{ block "serie" .wipSerie }}{{ end }}
|
||||
{{ else }}
|
Loading…
Reference in a new issue