Commit graph

115 commits

Author SHA1 Message Date
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
Andy Allan
b9988bdbc8
Merge pull request #5093 from AntonKhorev/diary-comments-shallow-paths
Use shallow routes for diary comments
2024-08-28 14:58:53 +01:00
Anton Khorev
52324cba89 Disable turbo on all links inside pagination frames except older/newer 2024-08-23 15:00:55 +03:00
Tom Hughes
edddaab122 Use turbo for pagination 2024-08-20 14:44:10 +01:00
Anton Khorev
71f31bfc4c Use shallow routes for diary comments 2024-08-17 15:12:52 +03:00
Anton Khorev
580daf06bd Check diary entry edit/update ability using CanCanCan 2024-07-23 18:22:46 +03:00
Anton Khorev
1f4c298f76 Simplify subscribe path helper calls 2024-07-16 17:32:00 +03:00
Anton Khorev
00c2589374 Move diary comment action to comments controller 2024-07-12 17:58:43 +03:00
Anton Khorev
e415ba764d Always set z-index of embedded maps 2024-07-08 19:32:51 +03:00
Anton Khorev
29583e0713 Use inline svg for new diary entry icon 2024-07-03 15:14:11 +03:00
Anton Khorev
a128b4f585 Move diary comments hide/unhide actions to comments controller 2024-06-17 18:16:31 +03:00
Anton Khorev
6624beff11 Move diary comments index action to comments controller 2024-06-10 16:32:53 +03:00
Anton Khorev
0cd90e76db Move changeset subscribe/unsubscribe locale strings out of javascripts 2024-06-04 16:34:03 +03:00
Tom Hughes
161fc8ac47 Replace deprecated text-muted class with text-body-secondary 2024-05-22 11:58:32 +01:00
Anton Khorev
528c2fb4da Use .icon-link for new diary entry icon 2024-04-28 01:57:38 +03:00
Anton Khorev
0fb635e8bc Replace border-grey css class with border-secondary-subtle
No noticeable difference (#cccccc vs #cfcfcf) and no problems with dark mode.
2024-04-06 17:11:38 +03:00
Anton Khorev
a8fcf9034b Remove unused user parameter for subscribe/unsubscribe headings 2024-03-29 13:53:23 +03:00
Anton Khorev
ff8fbcbdc5 Simplify links on diary pages 2024-03-21 17:30:59 +03:00
Anton Khorev
3a873b1668 Add diary entry subscribe/unsubscribe GET pages 2024-02-17 05:43:13 +03:00
Tom Hughes
168087eba0 Prevent dividers between diary comments overflowing into the margins 2024-02-14 18:40:48 +00:00
Anton Khorev
9603bb404e Adjust diary comment widths and borders 2024-02-14 02:51:41 +03:00
Anton Khorev
f02100b963 Add diary discussion heading and move subscribe button next to it 2024-02-12 02:36:06 +03:00
Anton Khorev
57d4b3d8ce Move new diary entry link to the end 2024-01-03 13:18:08 +03:00
Anton Khorev
f4d84c4806 Add links to diaries in preferred languages 2024-01-03 13:10:08 +03:00
Anton Khorev
d6827e6e96 Fix indent 2024-01-03 13:10:07 +03:00
Andy Allan
0195dd60a4 Simplify date display by using friendly_date helpers 2023-11-15 19:46:10 +00:00
Anton Khorev
e143726f1a Combine comments and traces pagination partials 2023-09-09 14:33:59 +03:00
Anton Khorev
a780a7456f Don't interpolate in pagination partial 2023-09-09 14:33:58 +03:00
Anton Khorev
ea86f8f682 Make pagination partial view 2023-09-09 14:23:12 +03:00
Anton Khorev
299c59e34f Change diary comments pagination to before/after id 2023-09-09 14:23:10 +03:00
Anton Khorev
5244b2cd0b Fix alignment in profile and diary location forms 2023-09-07 17:20:43 +03:00
Tom Hughes
f138055849 Merge remote-tracking branch 'upstream/pull/4225' 2023-09-06 18:42:29 +01:00
Anton Khorev
728ad161c4 Mute hidden comment text in each table cell 2023-09-05 11:50:58 +03:00
Anton Khorev
7e6de66444 Swap older/newer diary entries buttons 2023-09-04 16:32:54 +03:00
Anton Khorev
8efc15ea7a Replace top margin on comments with bottom padding on diary posts 2023-08-16 04:22:50 +03:00
Anton Khorev
e5ce6ffbb8 Remove empty comments anchor 2023-08-16 04:17:50 +03:00
Anton Khorev
41f8607810 Use article html elements for diary posts 2023-08-12 01:40:34 +03:00
Anton Khorev
6fcaa0e53c Update diary edit form styling 2023-08-12 01:40:32 +03:00
Anton Khorev
9d95d548e8 Update diary comments styling 2023-08-12 01:30:54 +03:00
Anton Khorev
98f1e2a21d Update diary entry styling
user_<id> class was kept because
https://github.com/openstreetmap/openstreetmap-website/pull/2266
2023-08-12 01:30:53 +03:00
Tom Hughes
f29ba01eb9 Replace page numbers with ID based selection for diary indexes 2023-07-27 20:37:07 +01:00
Andy Allan
d58cae6ff6 Avoid using the zero key for pluralisation in English
This makes it impossible to translate to other languages that use the
`zero:` key, e.g. for other numbers that end in zero.

An alternative approach would be possible in future, when ruby-i18n
and rails and translatewiki all have full support for `0:` and `1:` keys.

Fixes #3997
2023-07-05 14:47:39 +01:00
Wille Marcel
525c041743
Add space between form and Publish diary button 2023-03-10 15:16:44 -03:00
Andy Allan
2080696fe6 Bootstrap 5: Remove use of form-row class
This has been replaced by simple `row` class in v5. We can also use the
gx-N classes here, which tighten up the horizontal gutter sizes for
space-constrained forms.
2022-07-20 14:41:41 +01:00
Tom Hughes
9adad9f90d Fix new rubocop warnings 2022-06-14 19:04:39 +01:00
Tom Hughes
6403515897 Replace to_s on TimeWithZone objects with to_formatted_s 2022-01-10 18:59:22 +00:00
Tom Hughes
5dfbf00776 Merge remote-tracking branch 'upstream/pull/3378' 2021-11-25 17:15:10 +00:00
Andy Allan
cb68450ac7 Simplify margins when showing diary entries 2021-11-24 12:24:16 +00:00
Andy Allan
52cd62bf13 Replace CSS-driven borders with bootstrap borders
This makes future refactoring easier, since the elements will
retain their borders even if the hierarchy changes.

Also round some maps and the legale section since I think those now
look nicer.
2021-11-24 12:24:16 +00:00