aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-05-02 21:21:52 +0200
committerMax Magorsch <arzano@gentoo.org>2020-05-02 21:21:52 +0200
commit3bfaf780d832e39e044eea97572cd13a712d5c9b (patch)
tree60799d150200788db551e1c4eb003a3090ff8de7 /web
parentFix the longdescription in case of different languages (diff)
downloadsoko-3bfaf780d832e39e044eea97572cd13a712d5c9b.tar.gz
soko-3bfaf780d832e39e044eea97572cd13a712d5c9b.tar.bz2
soko-3bfaf780d832e39e044eea97572cd13a712d5c9b.zip
Rework the titles of each page
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r--web/templates/about/feedback.tmpl4
-rw-r--r--web/templates/about/feeds.tmpl4
-rw-r--r--web/templates/about/help.tmpl4
-rw-r--r--web/templates/about/index.tmpl4
-rw-r--r--web/templates/arches/changedVersions.tmpl4
-rw-r--r--web/templates/arches/index.tmpl4
-rw-r--r--web/templates/categories/index.tmpl4
-rw-r--r--web/templates/categories/show.tmpl4
-rw-r--r--web/templates/index/show.tmpl4
-rw-r--r--web/templates/layout/head.tmpl2
-rw-r--r--web/templates/layout/tyriannav.tmpl12
-rw-r--r--web/templates/packages/changedVersions.tmpl4
-rw-r--r--web/templates/packages/search.tmpl4
-rw-r--r--web/templates/packages/show.tmpl4
-rw-r--r--web/templates/useflags/index.tmpl4
-rw-r--r--web/templates/useflags/search.tmpl4
-rw-r--r--web/templates/useflags/show.tmpl4
-rw-r--r--web/templates/useflags/showexpand.tmpl4
18 files changed, 39 insertions, 39 deletions
diff --git a/web/templates/about/feedback.tmpl b/web/templates/about/feedback.tmpl
index 2dacd2f..e7d50a8 100644
--- a/web/templates/about/feedback.tmpl
+++ b/web/templates/about/feedback.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
<div class="container mb-5">
diff --git a/web/templates/about/feeds.tmpl b/web/templates/about/feeds.tmpl
index aea73cf..a1560ad 100644
--- a/web/templates/about/feeds.tmpl
+++ b/web/templates/about/feeds.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
<div class="container mb-5">
diff --git a/web/templates/about/help.tmpl b/web/templates/about/help.tmpl
index 657bbaa..e2c1fe6 100644
--- a/web/templates/about/help.tmpl
+++ b/web/templates/about/help.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
<div class="container mb-5">
diff --git a/web/templates/about/index.tmpl b/web/templates/about/index.tmpl
index 72858ea..4564cd7 100644
--- a/web/templates/about/index.tmpl
+++ b/web/templates/about/index.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
<div class="container mb-5">
diff --git a/web/templates/arches/changedVersions.tmpl b/web/templates/arches/changedVersions.tmpl
index 4b10114..3a402ce 100644
--- a/web/templates/arches/changedVersions.tmpl
+++ b/web/templates/arches/changedVersions.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
diff --git a/web/templates/arches/index.tmpl b/web/templates/arches/index.tmpl
index fc86d81..098997f 100644
--- a/web/templates/arches/index.tmpl
+++ b/web/templates/arches/index.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
<div class="container mb-5">
diff --git a/web/templates/categories/index.tmpl b/web/templates/categories/index.tmpl
index 3d3a82e..7e7002a 100644
--- a/web/templates/categories/index.tmpl
+++ b/web/templates/categories/index.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
diff --git a/web/templates/categories/show.tmpl b/web/templates/categories/show.tmpl
index f2de6c3..19eed0b 100644
--- a/web/templates/categories/show.tmpl
+++ b/web/templates/categories/show.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
<div class="container mb-5">
diff --git a/web/templates/index/show.tmpl b/web/templates/index/show.tmpl
index a68f9a7..1874dae 100644
--- a/web/templates/index/show.tmpl
+++ b/web/templates/index/show.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
<div class="container mb-5">
<div class="row">
diff --git a/web/templates/layout/head.tmpl b/web/templates/layout/head.tmpl
index 42e1f17..3dc694d 100644
--- a/web/templates/layout/head.tmpl
+++ b/web/templates/layout/head.tmpl
@@ -1,6 +1,6 @@
{{define "head"}}
<head>
- <title>Gentoo Packages</title>
+ <title>{{.Title}}Gentoo Packages</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#54487a">
diff --git a/web/templates/layout/tyriannav.tmpl b/web/templates/layout/tyriannav.tmpl
index 1501728..092f729 100644
--- a/web/templates/layout/tyriannav.tmpl
+++ b/web/templates/layout/tyriannav.tmpl
@@ -9,15 +9,15 @@
<div class="collapse navbar-collapse navbar-main-collapse" id="navbar-main-collapse">
<ul class="navbar-nav mr-auto">
- <li class="nav-item {{ if (eq . "home")}}active{{end}}"><a class="nav-link" href="/">Home</a></li>
- <li class="nav-item {{ if (eq . "packages")}}active{{end}}"><a class="nav-link" href="/categories">Packages</a></li>
- <li class="nav-item {{ if (eq . "useflags")}}active{{end}}"><a class="nav-link" href="/useflags">USE flags</a></li>
- <li class="nav-item {{ if (eq . "arches")}}active{{end}}"><a class="nav-link" href="/arches">Architectures</a></li>
- <li class="nav-item {{ if (eq . "about")}}active{{end}}"><a class="nav-link" href="/about">About</a></li>
+ <li class="nav-item {{ if (eq .Tab "home")}}active{{end}}"><a class="nav-link" href="/">Home</a></li>
+ <li class="nav-item {{ if (eq .Tab "packages")}}active{{end}}"><a class="nav-link" href="/categories">Packages</a></li>
+ <li class="nav-item {{ if (eq .Tab "useflags")}}active{{end}}"><a class="nav-link" href="/useflags">USE flags</a></li>
+ <li class="nav-item {{ if (eq .Tab "arches")}}active{{end}}"><a class="nav-link" href="/arches">Architectures</a></li>
+ <li class="nav-item {{ if (eq .Tab "about")}}active{{end}}"><a class="nav-link" href="/about">About</a></li>
</ul>
- {{ if ne . "home"}}
+ {{ if ne .Tab "home"}}
<form class="form-inline inlinesearch" role="search" action="/packages/search" method="get">
<div class="input-group">
diff --git a/web/templates/packages/changedVersions.tmpl b/web/templates/packages/changedVersions.tmpl
index 79373d4..cfec5b1 100644
--- a/web/templates/packages/changedVersions.tmpl
+++ b/web/templates/packages/changedVersions.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
diff --git a/web/templates/packages/search.tmpl b/web/templates/packages/search.tmpl
index 106a1f7..476830b 100644
--- a/web/templates/packages/search.tmpl
+++ b/web/templates/packages/search.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
<div class="container mb-5">
<div class="row">
diff --git a/web/templates/packages/show.tmpl b/web/templates/packages/show.tmpl
index a952a47..b66a119 100644
--- a/web/templates/packages/show.tmpl
+++ b/web/templates/packages/show.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
{{template "packageheader" .}}
diff --git a/web/templates/useflags/index.tmpl b/web/templates/useflags/index.tmpl
index 5cb7437..300d61b 100644
--- a/web/templates/useflags/index.tmpl
+++ b/web/templates/useflags/index.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
diff --git a/web/templates/useflags/search.tmpl b/web/templates/useflags/search.tmpl
index 0a7bc51..a03d1e4 100644
--- a/web/templates/useflags/search.tmpl
+++ b/web/templates/useflags/search.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
diff --git a/web/templates/useflags/show.tmpl b/web/templates/useflags/show.tmpl
index 59e2bca..b0015b1 100644
--- a/web/templates/useflags/show.tmpl
+++ b/web/templates/useflags/show.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}
diff --git a/web/templates/useflags/showexpand.tmpl b/web/templates/useflags/showexpand.tmpl
index 5481f5d..adfb50c 100644
--- a/web/templates/useflags/showexpand.tmpl
+++ b/web/templates/useflags/showexpand.tmpl
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
-{{template "head"}}
+{{template "head" .Header}}
<body>
-{{template "header" .Page}}
+{{template "header" .Header}}