Henry
97554069b5
re-use pagination code
2021-03-10 09:33:27 +01:00
Henry
c7bcef4339
invite form testing
2021-03-10 09:33:15 +01:00
Henry
bbcab73cb5
add admindb.InviteService
...
interface methods: create, consume, list and revoke.
SQLite implementation and some light testing.
Related changes:
* have authfallback.Create return the user id
At some point we will need to not assume that authfallback is our users
table but that will not become relevant before we start adding
moderation roles.
* Update package documentation of admindb and admindb/sqlite
* remove leftover generated.db
now using the roomdb file created by TestSimple
Review comments by @cblgh
* better documentation of hashed token storage
* space between %d and `bytes`
* make interface assertion comments less scary
2021-03-05 08:42:11 +01:00
Henry
96a30af405
Merge pull request #61 from ssb-ngi-pointer/update-readme
...
Update readme with typo fixes
2021-03-04 15:10:18 +01:00
b28094dc05
remove "just"
2021-03-04 14:24:09 +01:00
6035d3e119
update readme with typo fixes
2021-03-04 14:17:01 +01:00
André Staltz
be1eae80f7
Merge pull request #54 from ssb-ngi-pointer/fix-code-block-wrap
...
fix CSS for long code blocks
2021-03-02 16:42:16 +02:00
Andre Staltz
11d1c8cdee
fix CSS for long code blocks
2021-03-02 16:29:35 +02:00
Henry
d85f2e4a3e
Merge pull request #53 from ssb-ngi-pointer/clarify-handlers
...
disambiguate "handlers" package
2021-03-02 14:23:08 +01:00
Henry
6132b37f39
disambiguate "handlers" package
...
This was fine when there was just one for muxrpc but "handlers"
and "web/handlers" feels like asking for confusion.
2021-03-02 14:17:42 +01:00
André Staltz
30841eb71e
Merge pull request #48 from ssb-ngi-pointer/markdown-style
...
style the markdown body
2021-03-02 11:11:29 +02:00
Andre Staltz
254fd4d0c6
style the markdown body
2021-03-01 18:09:06 +02:00
André Staltz
0f38fd3c16
Merge pull request #43 from ssb-ngi-pointer/css-notices
...
Style the notices
2021-03-01 17:17:49 +02:00
Andre Staltz
e5cc68696d
fix tests of the landing page
2021-03-01 17:10:38 +02:00
Andre Staltz
1f3c7e1dc5
add urlToNotice in tests
2021-03-01 14:16:52 +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
f774817536
Merge pull request #40 from ssb-ngi-pointer/editable-notices
2021-02-25 12:36:55 +01:00
Henry
6e630f9cd5
fix tests
2021-02-25 11:25:43 +01: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
2b79354d20
fix typo
2021-02-25 11:14:39 +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
André Staltz
f62193b94b
Merge pull request #38 from ssb-ngi-pointer/menu-route
...
new route "menu" that is accessible on mobile only
2021-02-24 18:04:22 +02:00
Andre Staltz
ad5356d58b
replace panics with returning formatted errors
2021-02-24 18:02:52 +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
André Staltz
92ee332546
Merge pull request #36 from ssb-ngi-pointer/active-menu-item
...
highlight active menu item with current_page_is
2021-02-24 11:58:19 +02:00
Andre Staltz
622b01a854
highlight active menu item with current_page_is
2021-02-23 18:41:02 +02:00
André Staltz
f392dfbcf3
Merge pull request #32 from ssb-ngi-pointer/prettify-responsive
...
responsive design of admin menus
2021-02-23 14:48:12 +02:00
Andre Staltz
1dbc09a81a
responsive design of admin menus
2021-02-23 14:24:20 +02:00
Henry
fbdba34a1d
Merge pull request #31 from ssb-ngi-pointer/prettify-members
...
Prettify members page
2021-02-23 12:42:32 +01:00
Andre Staltz
ad0f025c4d
fix allow_list tests for new HTML structure
2021-02-23 12:56:28 +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