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
Tom Hughes
e842c7be97
Add missing autocomplete attributes
2021-07-27 19:36:47 +01:00
Tom Hughes
2c5e981684
Fix erblint warnings
2021-06-05 07:40:55 +01:00
Andy Allan
2955fe4d4b
Refactor user blocks information to use a dl
...
This also standardises the labels to have the colon, in common with
oauth_clients#show.
2021-04-28 17:28:30 +01:00
Andy Allan
02bfc46ab3
Move duration to its own line, so that it can be clearly labelled
2021-04-28 16:01:03 +01:00
polarbearing
b4e2f8e34f
Show the crafted duration of a block independent of the reading time
...
Fixes #3143 .
Not tested by myself. Treat like pseudocode, I don't speak Ruby.
2021-03-23 12:37:14 +01:00
Andy Allan
fd6273cfb8
Refactor user_blocks revoke form to use bootstrap
2021-02-03 13:44:52 +00:00
Andy Allan
e94a8a45ba
Refactor user_blocks form to use bootstrap
...
Further refactoring could involve a virtual attribute for duration.
2021-01-14 10:03:11 +00:00
Tobias Jordans
b470e01f84
Break long URLs where richtext is used.
...
For example on the blog post show page.
This uses https://getbootstrap.com/docs/4.4/utilities/text/#word-break to break long URLs on the blog post show view.
2020-12-27 22:11:36 +01:00