diff options
author | 2024-02-26 20:04:09 +0200 | |
---|---|---|
committer | 2024-02-26 20:04:09 +0200 | |
commit | 961e052b9dc74e68baa4ab01c1685b8babcdfd65 (patch) | |
tree | 9a0c0d48f090415aef65bff169a3369f2526801d /pkg/app/handler/about/index.templ | |
parent | app/maintainer: add changelog atom feed (diff) | |
download | soko-961e052b9dc74e68baa4ab01c1685b8babcdfd65.tar.gz soko-961e052b9dc74e68baa4ab01c1685b8babcdfd65.tar.bz2 soko-961e052b9dc74e68baa4ab01c1685b8babcdfd65.zip |
templ: format all files
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'pkg/app/handler/about/index.templ')
-rw-r--r-- | pkg/app/handler/about/index.templ | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/pkg/app/handler/about/index.templ b/pkg/app/handler/about/index.templ index bbb60e1..033b09a 100644 --- a/pkg/app/handler/about/index.templ +++ b/pkg/app/handler/about/index.templ @@ -17,39 +17,40 @@ func getCommitId() string { } func versionText() string { - commitId := getCommitId() - version := config.Version() - if commitId == "" { - return "Currently " + version + " is running." - } - return "Currently " + version + " is running, based on commit " + commitId + "." + commitId := getCommitId() + version := config.Version() + if commitId == "" { + return "Currently " + version + " is running." + } + return "Currently " + version + " is running, based on commit " + commitId + "." } templ index() { - <div class="container mb-5"> - <div class="row"> - <div class="col-12 text-center"> - <h1 class="px-3 pt-5 pb-1" style="font-size: 3em;">About packages.gentoo.org</h1> - <span style="font-size: 90%;" class="text-muted"> - Feel free to <a href="/about/feedback">get in touch</a> { "if" } you have any questions that are not answered on this page.<br/> - And welcome to the new packages.gentoo.org! - </span> - </div> - <div class="col-12 mt-5 pt-4"> - <h2>FAQ</h2> - <dl> - <dt>Which version is currently running?</dt> - <dd>{ versionText() }</dd> - <br /> - <dt>How often is the site updated?</dt> - <dd> - Updates are scheduled <strong>every 5 minutes now</strong>. - You can find the last time an import task was started in the footer. - </dd> - </dl> - </div> - </div> - </div> + <div class="container mb-5"> + <div class="row"> + <div class="col-12 text-center"> + <h1 class="px-3 pt-5 pb-1" style="font-size: 3em;">About packages.gentoo.org</h1> + <span style="font-size: 90%;" class="text-muted"> + Feel free to <a href="/about/feedback">get in touch</a> { "if" } you have any questions that are not answered on this page. + <br/> + And welcome to the new packages.gentoo.org! + </span> + </div> + <div class="col-12 mt-5 pt-4"> + <h2>FAQ</h2> + <dl> + <dt>Which version is currently running?</dt> + <dd>{ versionText() }</dd> + <br/> + <dt>How often is the site updated?</dt> + <dd> + Updates are scheduled <strong>every 5 minutes now</strong>. + You can find the last time an import task was started in the footer. + </dd> + </dl> + </div> + </div> + </div> } // Index shows the landing page of the about pages |