diff options
author | knotteye <knotteye@airmail.cc> | 2021-07-01 17:56:04 -0500 |
---|---|---|
committer | knotteye <knotteye@airmail.cc> | 2021-07-01 17:56:04 -0500 |
commit | 4e3848cadbb3fd89b94a7ef24838173939d198db (patch) | |
tree | 06ea5434986b2b9c00e392a7d44b93d7eae23668 /static | |
parent | 638a03b458b71564b1db439e6386d7dbf2a5181c (diff) |
Add a list of local boards and server news
Diffstat (limited to 'static')
-rw-r--r-- | static/index.html | 28 | ||||
-rw-r--r-- | static/nadmin.html | 8 |
2 files changed, 36 insertions, 0 deletions
diff --git a/static/index.html b/static/index.html index 19c5da2..de06c6c 100644 --- a/static/index.html +++ b/static/index.html @@ -25,6 +25,34 @@ <div style="margin-top:50px;"> <table align="center" style="text-align: left;"> <th> + <tr>Local boards</tr> + </th> + + {{ range .Boards }} + <tr> + <td><a href="{{.Location}}">{{.Name}} - {{.PrefName}}</a></td> + </tr> + {{ end }} + </table> + </div> + + <div style="margin-top:50px;"> + <table align="center" style="text-align: left;"> + <th> + <tr>{{ .PreferredUsername }} news</tr> + </th> + + {{ range .NewsItems }} + <tr> + <td><p><em><b>{{.Time}} - {{.Title}}</b></em><br>{{.Content}}</p></td> + </tr> + {{ end }} + </table> + </div> + + <div style="margin-top:50px;"> + <table align="center" style="text-align: left;"> + <th> <tr>Current known instances</tr> </th> diff --git a/static/nadmin.html b/static/nadmin.html index 984eb76..877e1e5 100644 --- a/static/nadmin.html +++ b/static/nadmin.html @@ -17,6 +17,14 @@ <option value="False">False</option> </select> </form> + + <h3>Post News</h3> + <form id="news" action="/{{ .Key }}/postnews" method="post" enctype="application/x-www-form-urlencoded"> + <label>Title:</label><br> + <input type="text" name="title" placeholder="{{.Actor}} was created!" required><input type="submit" value="Post"><br> + <label>Content:</label><br> + <textarea name="summary" rows="8" cols="50"></textarea><br> + </form> <ul style="display: inline-block; padding: 0;"> <li style="display: inline-block;"><a href="#following">Subscribed</a></li> |