Commit graph

494 commits

Author SHA1 Message Date
Anton Khorev
c739e061cc Truncate if necessary and set dir=auto for changeset usernames 2024-12-03 10:24:56 +03:00
Andy Allan
ce342fede0 Move html_safe declaration for user_mailer from layout to helper
This allows us to enable output safety checks for all code within
erb files.

`rubocop --auto-gen-config` ignores code within the erb files, so
it is easier to maintain an exclusion on the helper than inside
the layout.
2024-11-27 18:04:32 +00:00
Anton Khorev
24ccba60cb Style small auth buttons similarly to preferred auth buttons 2024-11-15 19:09:57 +03:00
Anton Khorev
b8247478f4 Use resourceful routes for granting/revoking user roles 2024-11-06 18:38:26 +03:00
Anton Khorev
eaabf7bb59 Remove "User's Diary" from diary entry og:title 2024-10-20 19:12:09 +03:00
Tom Hughes
6789fc3081 Drop support for ruby 3.0
Also add Ubuntu 24.04 and drop 20.04 as 24.04 is needed for
ruby 3.1 without rvm so we should test it.
2024-09-17 20:39:22 +01:00
Anton Khorev
54c0361744 Always show changeset element page links below headings 2024-09-14 17:15:11 +03:00
Anton Khorev
4e97231269 Fix element pagination width calculation 2024-09-13 18:50:22 +03:00
Tom Hughes
5f2a5cadcb Merge remote-tracking branch 'upstream/pull/4565' 2024-08-28 18:59:09 +01:00
Anton Khorev
cff4c63713 Add deactivates_at date to user blocks
Block deactivation dates that take needs_view-block views into account were derived using updated_at. This was possible because inactive blocks couldn't be edited and their updated_at date wouldn't change. With editing of inactive blocks enabled deactivation date needs to be saved explicitly.
2024-08-19 14:33:20 +03:00
Anton Khorev
09721c6fee Add article:published_time meta tag to diary entries 2024-08-14 18:00:14 +03:00
Anton Khorev
5f4ae35814 Set og:description meta tag to diary entry description 2024-08-07 18:59:16 +03:00
Anton Khorev
43f5440537 Pass properties hash to OpenGraph helper 2024-08-07 18:58:47 +03:00
Anton Khorev
e0cec1a6e8 Remove default argument values of OpenGraph tag helper 2024-08-07 18:55:08 +03:00
Anton Khorev
243557a31a Set og:image:alt OpenGraph property 2024-08-05 05:32:47 +03:00
mmd-osm
b4952ff7f2 Trace picture with fixed size 2024-07-31 21:31:17 +02:00
mmd-osm
72177a3f20 Trace image with fixed size 2024-07-30 18:05:25 +02:00
Anton Khorev
80d7fe4cce Move auth provider icons to auth_providers subdirectory 2024-07-19 20:24:46 +03:00
Anton Khorev
b0e41cf142 Remove name parameter from auth button helpers 2024-07-16 17:12:17 +03:00
Anton Khorev
38bfb33c02 Remove single-use OpenID logo helper 2024-07-10 13:50:39 +03:00
Anton Khorev
088a78d83c Remove .d-block classes from auth buttons
Unnecessary on flex items.
2024-07-09 17:51:50 +03:00
Tom Hughes
330e2cc521 Merge remote-tracking branch 'upstream/pull/4963' 2024-07-08 18:29:56 +01:00
Anton Khorev
bacca516f0 Use flex gap instead of margins on auth buttons 2024-07-08 17:28:36 +03:00
Anton Khorev
a696d2b24c Remove unnecessary classes from preferred auth button
.rounded is the default rounding for this button type.
.fs-6 is the default font size for this button type.
2024-07-08 17:24:48 +03:00
Tom Hughes
5cc0b26bba Merge remote-tracking branch 'upstream/pull/4916' 2024-06-27 17:56:13 +01:00
Tom Hughes
24d535237c Merge remote-tracking branch 'upstream/pull/4917' 2024-06-27 17:47:16 +01:00
Emin Kocan
8e1071ebf1 utilize button classes on preferred auth button 2024-06-27 15:43:57 +02:00
Emin Kocan
3dc76a9bc0 style auth buttons using .btn & .btn-light classes 2024-06-27 14:55:28 +02:00
Anton Khorev
06820acc4b Discard fragments from wikimedia_commons tag values 2024-06-22 21:48:42 +03:00
Emin Kocan
b057c7ae5a Arrange button sizes to default size of 36px
As discussed in #4773 there was not any clarification as why auth button sizes were reduced so 36px is now accepted as default. This commit addresses that comment/issue.
2024-06-21 12:08:58 +02:00
Anton Khorev
9f3ac8f5ce Url-encode wikimedia_commons tag values 2024-06-20 22:13:28 +03:00
Andy Allan
d00a0667bc
Merge pull request #4887 from AntonKhorev/full-encode-wikipedia-value
Fully encode wikipedia tag values
2024-06-19 14:41:38 +01:00
Anton Khorev
b97834f1fd Use default og:image if Addressable::URI fails 2024-06-15 15:57:10 +03:00
Anton Khorev
c03649355a Join and normalize og:image url using Addressable
Avoids failing on urls that are not strictly rfc2396 URIs.
2024-06-15 15:06:07 +03:00
Anton Khorev
ebaae09797 Fully encode wikipedia tag values 2024-06-08 15:59:30 +03:00
Anton Khorev
eeb7e02f88 Don't add site name to og:title when page title is provided 2024-06-07 11:33:00 +03:00
Anton Khorev
24c138ac8d Ensure that Open Graph image url is absolute 2024-06-06 18:01:23 +03:00
Anton Khorev
a73e20cd5c Set Open Graph image to first image for diary entries 2024-06-06 17:28:57 +03:00
Anton Khorev
879c6017e0 Remove Open Graph og:image:secure_url property 2024-06-04 13:42:01 +03:00
Anton Khorev
5add2d7e1d Reload only changeset element subpages 2024-06-03 14:16:09 +03:00
Anton Khorev
b072c2935f Add titles to changeset element page links 2024-06-03 14:07:23 +03:00
Anton Khorev
5a22464224 Don't include language prefix in wikipedia links 2024-06-01 04:56:57 +03:00
Tom Hughes
161fc8ac47 Replace deprecated text-muted class with text-body-secondary 2024-05-22 11:58:32 +01:00
Hidde Wieringa
036c87b355
OpenID connect icons to SVG
re-add whitespace

trigger CI

revert size attribute
2024-05-16 21:16:28 +02:00
Milan Cvetkovic
b4f719a8c5 Use consistent sizing for social signup buttons 2024-05-10 16:08:06 +00:00
Tom Hughes
74195e38bf Merge remote-tracking branch 'upstream/pull/4771' 2024-05-08 18:24:28 +01:00
Anton Khorev
31f4ab5c46 Make blank role icons transparent 2024-05-08 17:05:57 +03:00
Anton Khorev
e2e77a4229 Lighten moderator icon color 2024-05-08 14:25:10 +03:00
Anton Khorev
12d797b351 Use inline svgs for moderator scope icons 2024-05-07 15:51:23 +03:00
Anton Khorev
d9e650fde1 Use inline svgs for user role icons 2024-05-07 15:51:23 +03:00