diff options
author | FChannel <> | 2021-07-03 20:27:51 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-03 20:27:51 -0700 |
commit | 2d06abf5049e67e05c068461908c492f43ff4026 (patch) | |
tree | 55faa23dee742372bd79bede6eabccf9e1384e0d /static/main.html | |
parent | 978dd92272c4e4139820d575094c62a99cd9c470 (diff) |
formating changes for local board grid when there is only 1 or 2 boards
Diffstat (limited to 'static/main.html')
-rw-r--r-- | static/main.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/static/main.html b/static/main.html index 00b395f..ba7e7f5 100644 --- a/static/main.html +++ b/static/main.html @@ -86,7 +86,9 @@ <ul style="display: inline; padding:0;"> {{ $l := len .Boards }} {{range $i, $e := .Boards}} - {{ if eq $i 0 }} + {{ 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> |