aboutsummaryrefslogtreecommitdiff
path: root/static/index.html
diff options
context:
space:
mode:
authorknotteye <knotteye@airmail.cc>2021-07-02 07:43:54 -0500
committerknotteye <knotteye@airmail.cc>2021-07-02 07:43:54 -0500
commitd98441da108725a76d697e358d161c06783cb066 (patch)
tree4a32df3435407f15039eecf4b210d21f305a64ae /static/index.html
parent9180db359438a4d2833c2e094ebc870da37262ef (diff)
Display most recents news item and create a table for boards
Diffstat (limited to 'static/index.html')
-rw-r--r--static/index.html24
1 files changed, 14 insertions, 10 deletions
diff --git a/static/index.html b/static/index.html
index 05197c0..518c012 100644
--- a/static/index.html
+++ b/static/index.html
@@ -23,17 +23,17 @@
<p style="text-align: justify">{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code <a href="https://github.com/FChannel0">here</a>.</p>
<div style="margin-top:50px;">
- <table align="center" style="text-align: left;">
- <th>
- <tr>Local boards</tr>
- </th>
+ <div style="display: grid;border-right: 2px solid #820404">
+ <div style="display: inline-grid;grid-column: 1 / 4;border-bottom: 2px solid #820404;border-left: 2px solid #820404;border-top: 2px solid #820404;"><span style="font-size: 1.5em;font-weight: bold;">Local boards</span></div>
{{ range .Boards }}
- <tr>
- <td><a href="{{.Location}}">{{.Name}} - {{.PrefName}}</a></td>
- </tr>
+ <div style="whitespace: nowrap;display: inline-grid;text-align: left;padding: 5px;border-bottom: 2px solid #820404;border-left: 2px solid #820404;"><a href="{{.Location}}">{{.Name}} - {{.PrefName}}</a></div>
{{ end }}
- </table>
+ {{ range .BoardRemainer }}
+ <div style="whitespace: nowrap;display: inline-grid;text-align: left;padding: 5px;border-bottom: 2px solid #820404;border-left: 2px solid #820404;"></div>
+ {{ end }}
+ </div>
+
</div>
<div style="margin-top:50px;">
@@ -42,9 +42,13 @@
<tr>{{ .PreferredUsername }} news</tr>
</th>
- {{ range .NewsItems }}
+ {{ range $i, $e := .NewsItems }}
<tr>
- <td><a href="/news/{{.Time}}">{{unixtoreadable .Time}} - {{.Title}}</a></td>
+ <td><a href="/news/{{.Time}}">{{unixtoreadable $e.Time}} - {{$e.Title}}</a>
+ {{ if eq $i 0 }}
+ <br><p>{{$e.Content}}</p>
+ {{ end }}
+ </td>
</tr>
{{ end }}
</table>