From bdfdad2585737c5760971889fd5def32e14b38c5 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 4 Dec 2019 14:51:04 +0100 Subject: [PATCH] frontend: rename main template to index.tmpl.html, fix showing HEAD Fix some Captions, too. --- frontend/frontend.go | 4 ++-- public/{submit-queue.tmpl.html => index.tmpl.html} | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename public/{submit-queue.tmpl.html => index.tmpl.html} (93%) diff --git a/frontend/frontend.go b/frontend/frontend.go index f0ea46e49..3ef691f63 100644 --- a/frontend/frontend.go +++ b/frontend/frontend.go @@ -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, diff --git a/public/submit-queue.tmpl.html b/public/index.tmpl.html similarity index 93% rename from public/submit-queue.tmpl.html rename to public/index.tmpl.html index f64cdf24a..bc145c5b6 100644 --- a/public/submit-queue.tmpl.html +++ b/public/index.tmpl.html @@ -19,7 +19,7 @@ Info