diff options
author | Miquel Lionel <lionelmiquel@sfr.fr> | 2021-02-17 13:48:13 +0100 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2021-02-17 13:48:13 +0100 |
commit | 2430bf57c22948e66b2c918d324d6e0bff4f6792 (patch) | |
tree | 0d79e5d8b5780d6c8d625de50d784a7da3a2a26b /v0.9.5/views/i18n/header.html | |
parent | 19cfd918aa30f316754b118278fc6853d7b8e04b (diff) | |
download | honk_custom-2430bf57c22948e66b2c918d324d6e0bff4f6792.tar.gz honk_custom-2430bf57c22948e66b2c918d324d6e0bff4f6792.zip |
add i18n'd html templates, newer patch for web.go
Diffstat (limited to 'v0.9.5/views/i18n/header.html')
-rw-r--r-- | v0.9.5/views/i18n/header.html | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/v0.9.5/views/i18n/header.html b/v0.9.5/views/i18n/header.html new file mode 100644 index 0000000..21cce5e --- /dev/null +++ b/v0.9.5/views/i18n/header.html @@ -0,0 +1,100 @@ +<!doctype html> +<html lang="{{ .Lang }}"> +<head> + <link rel="shortcut icon" href="/favicon.ico"/> +<title>honk</title> +<link href="/style.css{{ .StyleParam }}" rel="stylesheet"> +{{ if .LocalStyleParam }} +<link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet"> +{{ end }} +<style> +{{ .UserStyle }} +</style> +<link href="/icon.png" rel="icon"> +<meta name="theme-color" content="#305"> +<meta name="viewport" content="width=device-width"> +<meta name="description" content="Federated ActivityPub instance running the Honk server. things happen"> +<meta name="keywords" content="honk"> +</head> +<body> +<header> +{{ if .UserInfo }} +<details id="topmenu"> + <summary>menu <span> {{ .UserInfo.Username }}</span></summary> +<ul> +<li><a id="homelink" href="/">{{ .i18n.Home }}</a> +<li><a id="atmelink" href="/atme">{{ .i18n.Atme }}</a> +<li><a id="firstlink" href="/first">{{ .i18n.First }}</a> +<li style="list-style-type:none; margin-left:-1em"> +<details> +<summary>{{ .i18n.Combos }}</summary> +<ul> +{{ range .Combos }} +<li><a class="combolink" href="/c/{{ . }}">{{ . }}</a> +{{ end }} +</ul> +</details> +<li><a href="/chatter">{{ .i18n.Chatter }}</a> +<li><a href="/o">{{ .i18n.Tags }}</a> +<li><a href="/events">{{ .i18n.Events }}</a> +<li><a id="longagolink" href="/longago">{{ .i18n.Longago }}</a> +<li><a id="savedlink" href="/saved">{{ .i18n.Saved }}</a> +<li><a href="/honkers">{{ .i18n.Honkers }}</a> +<li><a href="/hfcs">{{ .i18n.Hcfs }}</a> +<li><a href="/account">{{ .i18n.Account }}</a> +<li style="list-style-type:none; margin-left:-1em"> +<details> +<summary>{{ .i18n.Morestuff }}</summary> +<ul> +<li><a href="/{{ .UserSep }}/{{ .UserInfo.Username }}">{{ .i18n.Myhonks }}</a> +<li><a href="/about">{{ .i18n.About }}</a> +<li><a href="/front">{{ .i18n.Front }}</a> +<li><a href="/funzone">{{ .i18n.Funzone }}</a> +<li><a href="/xzone">{{ .i18n.Xzone }}</a> +</ul> +</details> +<li><a href="/help/honk.1.html">{{ .i18n.Help }}</a> +<li> +<form action="/q" method="GET"> +<input type="text" name="q" autocomplete=off size=10 placeholder="{{ .i18n.Search }}"> +</form> +</ul> +</details> + +<!-- CUSTOM HONK NAVIGATION BAR --> + <div id="altnavbar"> + <a href="/newhonk" tabindex="2">{{ .i18n.Newhonk }}</a> | + <a href="/front">{{ .i18n.Front }}</a> | + <a href="/">{{ .i18n.Home }}</a> | + <a href="/xzone">{{ .i18n.Xzone }}</a> | + <a href="/atme">{{ .i18n.Atme }}</a> | + <a href="/u/{{ .UserInfo.Username}}">{{ .i18n.Myhonks }}</a> | + <a href="/account">{{ .i18n.Account }}</a> | + <form style="display:inline" action="/q" method="GET"> + <input type="text" tabindex="1" name="q" autocomplete="off" + size="10" placeholder="{{ .i18n.Search }}"> + </form> + </div> +<!-- END --> + +<p id="topspacer"></p> +{{ else }} +<span><a id="homelink" href="/">{{ .i18n.Home }}</a></span> +<span><a href="/o">{{ .i18n.Tags }}</a></span> +<span><a href="/events">{{ .i18n.Events }}</a></span> +<span><a href="/about">{{ .i18n.About }}</a></span> +{{ if .ShowRSS }} +<span><a href="/rss">rss</a></span> +{{ end }} +<span><a href="/login">{{ .i18n.Login }}</a> +<form style="display:inline" action="/langcookie" method="POST"> +<select name="lang"> + <option {{ and (eq .Lang "en") "selected"}}>en</option> + <option {{ and (eq .Lang "fr") "selected"}}>fr</option> +</select> +<button>coom</button> +</form> + +</span> +{{ end }} +</header> |