diff options
author | sageman_ <sageman@anomine.net> | 2021-07-04 13:45:13 +0200 |
---|---|---|
committer | sageman_ <sageman@anomine.net> | 2021-07-04 13:45:13 +0200 |
commit | bc868ba51864f2f1569f942cc44b01d631d0d337 (patch) | |
tree | e95d6a3d54349d416cf7f271bb2319f3934943e1 /static/main.html | |
parent | d287a2d0bb19f6a7eef682cd411e0e7cc31c1e3d (diff) | |
parent | 2d06abf5049e67e05c068461908c492f43ff4026 (diff) |
Merge branch 'development' of https://github.com/FChannel0/FChannel-Server into faq-and-rules
# Conflicts:
# client.go
# static/faq.html
Diffstat (limited to 'static/main.html')
-rw-r--r-- | static/main.html | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/static/main.html b/static/main.html index a295a36..3cb8555 100644 --- a/static/main.html +++ b/static/main.html @@ -7,7 +7,7 @@ <meta name="keywords" content="Federated Imageboard based on Activtypub"> <meta property="og:locale" content="en_US" /> <meta property="og:type" content="website" /> - <link rel="icon" type="image/png" href="/static/favicon.png"> + <link rel="icon" type="image/png" href="/static/favicon.png"> <style> a, a:link, a:visited, a:hover, a:active { text-decoration: none @@ -40,6 +40,14 @@ background-color: #f9f9e0; {{ end }} } + + .box { + {{ if .Board.Restricted }} + background-color: #eff5ff; + {{ else }} + background-color: #f9f9e0; + {{ end }} + } .quote { color: #789922; @@ -76,8 +84,17 @@ </head> <body> <ul style="display: inline; padding:0;"> - {{range .Boards}} - <li style="display: inline;"><a href="{{.Location}}">{{.Name}}</a></li> + {{ $l := len .Boards }} + {{range $i, $e := .Boards}} + {{ if eq (sub $l 1) 0 }} + <li style="display: inline;">[ <a href="{{.Location}}">{{$e.Name}} </a>]</li> + {{ else if eq $i 0 }} + <li style="display: inline;">[<a href="{{.Location}}">{{$e.Name}} </a>/</li> + {{ else if eq $i (sub $l 1) }} + <li style="display: inline;"><a href="{{.Location}}">{{$e.Name}}</a>]</li> + {{ else }} + <li style="display: inline;"><a href="{{.Location}}">{{$e.Name}} </a>/</li> + {{ end }} {{end}} </ul> {{ if .Board.ModCred }} |