Commit Graph

160 Commits

Author SHA1 Message Date
Andre Staltz 25663d4d8f
support mobile layout on invite-list 2021-03-12 16:56:46 +02:00
Andre Staltz 134d9124bf
style the invite-list page 2021-03-12 13:25:27 +02:00
Henry b95c8de8be add room v1 "invite" until we have ssb-uri finalized 2021-03-10 09:35:54 +01:00
Henry b21e2b2062 More testing
* test for invite accept form rendering
* show placeholder if there is no suggested alias
* accept form and consume endpoint
2021-03-10 09:35:30 +01:00
Henry fd21dfc60a Various fixes
* fix accept and consumed view
* Apply suggestions from Alex' code review
* define admin.Databases options struct
* structify database parameters of web/handlers
2021-03-10 09:34:36 +01:00
Henry 98468e93a5 Invite endpoints
* Add revoke and created templates
* Render invite accept with domain
* Flesh out accept page
2021-03-10 09:33:55 +01:00
Henry c7bcef4339 invite form testing 2021-03-10 09:33:15 +01:00
Andre Staltz 254fd4d0c6
style the markdown body 2021-03-01 18:09:06 +02:00
Andre Staltz e5162fea5d
style the notice-edit page 2021-03-01 12:21:05 +02:00
Andre Staltz 2156ed1af0
style the notices page 2021-02-25 18:42:00 +02:00
Andre Staltz 03fb9b9833
don't show menu button on mobile menu page 2021-02-25 18:40:42 +02:00
Andre Staltz 7700eb6d4f
don't show footer in mobile menu 2021-02-25 18:38:13 +02:00
Andre Staltz 874a37cbbc
format the HTML in allow-list.tmpl 2021-02-25 18:18:58 +02:00
Andre Staltz 2b7200512f
move the notices-list link to the admin nav 2021-02-25 18:17:51 +02:00
Andre Staltz 70e82752cb
style the landing page 2021-02-25 18:15:18 +02:00
Andre Staltz 96b6e097dc
display description notice on the landing page 2021-02-25 18:00:57 +02:00
Andre Staltz b02932228e
style the show notice page 2021-02-25 17:42:57 +02:00
Andre Staltz ce98eeb377
style the footer and notice links 2021-02-25 17:23:51 +02:00
Andre Staltz 62d31f08b9
implement new template func "urlToNotice" 2021-02-25 17:18:51 +02:00
Henry ec7e57d2f5 place list of notices in the top nav 2021-02-25 11:22:25 +01:00
Henry d22996c24d rm news 2021-02-25 11:22:15 +01:00
Henry e254803717 nits 2021-02-25 11:17:52 +01:00
Henry 99e56dbcbf re-use edit template for new translation 2021-02-25 11:13:48 +01:00
Henry a5e8165a73 fix HTML list 2021-02-25 10:27:26 +01:00
Henry 1ec3e8b064 list, set and get pinned notices 2021-02-25 10:07:47 +01:00
Henry e5a07fd8bc (Pinned)Notices
Notices are pages that admins can fill with their content to describe
and customize the room.

Pinned notices are common notices that each room has. Like a description
and privacy policy.

* update models
* simple crud test for basic notices
* edit and save notices as admin
2021-02-25 10:07:44 +01:00
André Staltz 3c921cef80
Merge pull request #39 from ssb-ngi-pointer/paginate-members
implement pagination in allow-list overview
2021-02-24 18:19:16 +02:00
Andre Staltz 743cc074d7
implement pagination in allow-list overview 2021-02-24 15:54:36 +02:00
Andre Staltz eaf4a4447c
new route "menu" that is accessible on mobile only 2021-02-24 12:08:21 +02:00
Andre Staltz 622b01a854
highlight active menu item with current_page_is 2021-02-23 18:41:02 +02:00
Andre Staltz 1dbc09a81a
responsive design of admin menus 2021-02-23 14:24:20 +02:00
Andre Staltz fee39ac3b7
format HTML templates with each attribute on its own line 2021-02-23 12:56:28 +02:00
Andre Staltz 90455ae34b
prettify the allow-list removal confirmation page 2021-02-23 12:24:12 +02:00
Andre Staltz 0aa8265cd4
prettify the allow-list main page 2021-02-23 12:23:16 +02:00
Henry af53bf71f5 comment broken back href 2021-02-22 16:25:13 +01:00
Henry d774056f29 establish old asset paths 2021-02-22 15:51:58 +01:00
Henry b5330884ab move inline style tag to seperate file
also the assets paths they are a little different after #26
2021-02-22 15:13:16 +01:00
Andre Staltz 143b910f9f improve styles of template containers and sign-in 2021-02-22 14:57:45 +01:00
Henry f1f4e9dcb9 add CSRF protection
updates #14
2021-02-17 12:22:05 +01:00
Henry 412545ac50 small fixes
* news/overview was still using PostID
* fix singular in testing {{ i18npl ... }}
2021-02-16 10:33:28 +01:00
Henry b82ff3051a add test for remove 2021-02-15 18:54:00 +01:00
Henry 29d884b4fc allow-list: add test for add 2021-02-15 18:26:20 +01:00
Henry 58f795d5e6 route with query params instead of named routers
Since we don't use the web/router through and through to setup handler
functions, accessing the named route varaibles doesn't work inside those
handler functions.

Since I dont find it acceptable to juggle two concepts here I switch the
url generation to classical get query paramters (route?varA=xyz&varB=2).
2021-02-15 14:43:55 +01:00
Henry 6416d1c215 allow list interface 2021-02-15 14:43:32 +01:00
Andre Staltz 0eb957dbb8
fix css flash-of-unstyled-content 2021-02-12 17:34:20 +02:00
Henry 9019ebd130 just one /style.css
use 'go generate -tags dev' to produce the dev build and 'go generate'
for the prod build. have them produce the same file.

The only problem is that one needs to run this in web/styles first
before updating assets.
2021-02-11 18:37:51 +01:00
Andre Staltz 8401472b8f
setup Tailwind css project in web/styles 2021-02-11 18:30:16 +02:00
Henry 7fa52a6e2d various fixes
* fix nav link
* fix roomstate lock and ticker
* fix copy pasta typos

web/handlers: stop using /testing/base in news

This was a brainfart. The idea for a more minimal base template came
from another project with different frontend code.

This stopped us from seeing tempalting errors in the nav area.

Might want to scratch these tests alltogether and just have one place
with all the http tests.
2021-02-11 15:31:45 +01:00
Henry beea19f93e seperate room state from muxrpc handler
There is a new roomstate package now with a Manager which is shared between muxrpc and the http
handler(s).

Also adds a list of peers in the room to admin dashboard.
2021-02-11 15:30:51 +01:00
Henry 158ef5221e web/i18n: Add defaults and test for labels (fixes #8) 2021-02-10 14:39:38 +01:00
Henry e62d6c06fb web/tempalates: add missing closing a tag to base 2021-02-09 16:11:48 +01:00
Henry 743de1d1f6 add simple authenticated navigation
{{is_logged_in}} returns a *admindb.User value or nil depending on their
state. This can be used to build conditional rendering.
2021-02-09 12:39:57 +01:00
Henry ef4a2f3f22 sqlite and auth setup 2021-02-08 17:47:42 +01:00
Henry 01ed66d6df basic auth middleware setup 2021-02-08 13:02:45 +01:00
Henry 025a5be7ad add embedded assets server 2021-02-04 17:46:51 +01:00
Henry 2d38db1bc7 embedded templates 2021-02-04 17:25:39 +01:00
Henry f741065836 add i18n support
TODO: default files once embedded assets are there
2021-02-04 16:52:55 +01:00
Henry 0a67bf690b some cleanup and a Readme 2021-02-04 14:13:52 +01:00
Henry 98ca4f8408 examples for the news/ section 2021-02-04 12:00:12 +01:00
Henry fdf11f9a23 start http and html skelleton 2021-02-04 11:36:02 +01:00