Commit graph

113 commits

Author SHA1 Message Date
Anton Khorev
df1c59280f Add revoke all actions to received blocks resource 2024-12-24 08:18:58 +03:00
Anton Khorev
2df389c97e Create received blocks resource 2024-12-24 07:54:50 +03:00
Anton Khorev
7a4115f090 Create issued blocks resource 2024-12-24 07:54:11 +03:00
Anton Khorev
156c526c22 Change block end column to display strictly ends_at
Could display when block was viewed before. That's going to be unintuitive if sorting by different times is introduced.
2024-12-04 10:48:03 +03:00
Anton Khorev
30da09c5a1 Rearrange data in blocks table to start/end/status columns 2024-12-04 10:48:03 +03:00
Tom Hughes
bc70cae711 Merge remote-tracking branch 'upstream/pull/5366' 2024-12-02 15:00:45 +00:00
Anton Khorev
20ae1926a8 Truncate usernames in block navigation tabs 2024-12-02 12:22:45 +03:00
Anton Khorev
c4d16abeb7 Set dir=auto on usernames in block lists 2024-12-02 12:02:04 +03:00
Anton Khorev
de344eea83 Rename _blocks partial template to _page 2024-09-11 13:38:02 +03:00
Anton Khorev
cb65cd9adc Guess translation scope from controller name if not provided 2024-09-10 10:51:50 +03:00
Anton Khorev
7633657ecb Pass translation scope instead of keys to shared pagination 2024-09-10 10:37:36 +03:00
Tom Hughes
ec5754a9bd Merge remote-tracking branch 'upstream/pull/5110' 2024-08-23 18:09:21 +01:00
Anton Khorev
52324cba89 Disable turbo on all links inside pagination frames except older/newer 2024-08-23 15:00:55 +03:00
Anton Khorev
cc2a72bdd7 Remove revoke block pages 2024-08-23 13:23:29 +03:00
Anton Khorev
ed1e5ebe7d Remove revoke buttons from block show pages 2024-08-23 13:01:20 +03:00
Anton Khorev
1baf64e7bc Remove revoke buttons from block lists 2024-08-23 12:55:53 +03:00
Anton Khorev
76736bab4f Change submit button on block edit page when can only revoke 2024-08-22 14:01:54 +03:00
Anton Khorev
11a7bf7e0e Remove duration controls for blocks that can only be revoked by editing 2024-08-22 14:01:54 +03:00
Anton Khorev
67a5809c8a Show edit buttons on active blocks to all moderators 2024-08-22 14:01:54 +03:00
Tom Hughes
edddaab122 Use turbo for pagination 2024-08-20 14:44:10 +01:00
Anton Khorev
9479d56262 Add navigation tabs to new block pages 2024-08-19 13:48:55 +03:00
Tom Hughes
9e807aeca0 Merge remote-tracking branch 'upstream/pull/5086' 2024-08-16 17:22:59 +01:00
Tom Hughes
076a8114ef Merge remote-tracking branch 'upstream/pull/5087' 2024-08-16 17:20:33 +01:00
Anton Khorev
a9b84ff4c6 Truncate long usernames in blocks tables 2024-08-16 14:41:02 +03:00
Anton Khorev
b9828d7dbd Add navigation tabs to edit block pages 2024-08-16 13:27:10 +03:00
Anton Khorev
afffd3bf4b Remove duration and needs_view inputs from inactive block edit form 2024-08-16 13:00:19 +03:00
Anton Khorev
d88cb014cb Show edit links for revoked blocks to revokers 2024-07-25 04:05:31 +03:00
Anton Khorev
6ec1947e90 Show edit links for inactive blocks on block pages 2024-07-24 04:55:59 +03:00
Anton Khorev
d750cc3e80 Show edit links for inactive blocks in block lists 2024-07-24 04:44:59 +03:00
Anton Khorev
a3282b8542 Select closest value to remaining duration when editing a block 2024-07-22 18:58:43 +03:00
Anton Khorev
23a4adaa91 Add block tab to show block pages 2024-04-08 13:26:38 +03:00
Anton Khorev
5273b43578 Add "Blocks by user" nav tab to block list/show pages 2024-04-03 13:05:48 +03:00
Anton Khorev
031dc0fe1b Add "Blocks on user" nav tab to block list/show pages 2024-04-03 12:17:01 +03:00
Anton Khorev
1861bcf640 Add "Blocks by Me" nav tab to block list/show pages 2024-04-03 11:51:52 +03:00
Anton Khorev
288b8e1104 Add "Blocks on Me" nav tab to block list/show pages 2024-04-03 11:42:21 +03:00
Anton Khorev
a57472d282 Add "All Blocks" nav tab to block list/show pages 2024-04-03 11:31:06 +03:00
Anton Khorev
2a9888a642 Change revoke block buttons to danger style
Because revoke buttons on block show pages are also danger buttons.
2024-04-02 18:39:35 +03:00
Anton Khorev
47b4b51e08 Move edit/revoke block buttons to the bottom 2024-04-02 18:39:35 +03:00
Anton Khorev
134f9e2df1 Use before/after pagination on users page 2024-03-29 18:21:15 +03:00
Anton Khorev
8557179976 Simplify link_to user calls on block pages 2024-03-20 04:27:58 +03:00
Anton Khorev
1ff7b6217a Add controls to revoke all blocks page 2024-01-07 15:15:28 +03:00
Anton Khorev
3443533ce3 Add revoke all blocks page title 2024-01-07 15:15:28 +03:00
Anton Khorev
ba53dc7b04 Create an empty revoke all blocks page 2024-01-07 15:15:28 +03:00
Andy Allan
bc9c492c48 Use friendly_date helpers for revoking user blocks 2023-11-15 19:44:10 +00:00
Andy Allan
934d81aa55 Bootstrap 5: Replace all form-group classes with mb-3 2022-07-20 14:42:57 +01:00
Andy Allan
e80d74ae73 Bootstrap 5: Add form-label class to hand-crafted form labels
This is done automatically for forms created by bootstrap_form
2022-07-20 14:41:56 +01:00
Andy Allan
02a6ec60ec Bootstrap 5: Update manual select boxes to use form-select class 2022-07-20 14:41:55 +01:00
Harry Wood
80c639a6b5 Add newline to align with blocks_by
`blocks_on.html.erb` is almost identical to `block_by.html.erb`. Add a newline to align with the other file (makes it easier to see the more subtle important difference)
2022-03-05 02:45:50 +00:00
Tom Hughes
29e9857145 Improve behaviour of secondary action lists when wrapping
Based on https://stackoverflow.com/a/31732902 this ensure that when
a secondary action list wraps the additional lines don't start with
an item delimiter by pushing it to the left, outside of a parent nav
element which then hides it.
2021-08-21 15:38:00 +01:00
Andy Allan
536dee8fc7 Use named paths for various user blocks links 2021-08-12 17:57:40 +01:00