aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-02-26 20:04:09 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2024-02-26 20:04:09 +0200
commit961e052b9dc74e68baa4ab01c1685b8babcdfd65 (patch)
tree9a0c0d48f090415aef65bff169a3369f2526801d /pkg/app/handler/about/index.templ
parentapp/maintainer: add changelog atom feed (diff)
downloadsoko-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.templ61
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