Commit graph

45 commits

Author SHA1 Message Date
Anton Khorev
615a669345 Convert Auth.providers into array 2025-01-03 14:09:53 +03:00
Anton Khorev
24ccba60cb Style small auth buttons similarly to preferred auth buttons 2024-11-15 19:09:57 +03:00
Tom Hughes
17bc0853a0 Drop support for OAuth 1 2024-09-01 03:43:02 +03:00
Tom Hughes
c0cf556c05 Merge remote-tracking branch 'upstream/pull/5007' 2024-07-20 12:03:43 +01:00
Anton Khorev
80d7fe4cce Move auth provider icons to auth_providers subdirectory 2024-07-19 20:24:46 +03:00
Anton Khorev
010f0e1aaf Use Bootstrap collapse to toggle OpenID login form 2024-07-19 20:02:04 +03:00
Anton Khorev
fa4e0360ef Use Auth.providers in auth providers template 2024-07-18 15:56:55 +03:00
Anton Khorev
206012ae8e Remove unnecessary loop when rendering preferred auth provider button 2024-07-17 17:47:13 +03:00
Anton Khorev
b0e41cf142 Remove name parameter from auth button helpers 2024-07-16 17:12:17 +03:00
Anton Khorev
6d5752ad62 Set OpenID URL input value in html instead of javascript 2024-07-15 18:18:12 +03:00
Anton Khorev
66140c8d1d Show/hide entire OpenID form 2024-07-12 14:22:11 +03:00
Anton Khorev
686c512543 Stack preferred auth button over other auth buttons on small screens 2024-07-11 16:10:53 +03:00
Tom Hughes
2419a011f0 Merge remote-tracking branch 'upstream/pull/4972' 2024-07-10 18:32:32 +01:00
Anton Khorev
24275fe237 Change OpenID provider link to button 2024-07-10 14:12:36 +03:00
Anton Khorev
9a9cf59adc Remove alt text of OpenID logo inside input label
This keeps the input focusing when the logo is clicked but the alt text is not read by screen readers.
2024-07-10 13:50:39 +03:00
Anton Khorev
38bfb33c02 Remove single-use OpenID logo helper 2024-07-10 13:50:39 +03:00
Anton Khorev
86b1e934b6 Move OpenID logo out of locale string 2024-07-10 13:32:11 +03:00
Anton Khorev
088a78d83c Remove .d-block classes from auth buttons
Unnecessary on flex items.
2024-07-09 17:51:50 +03:00
Anton Khorev
1d15f96a70 Remove unused .openid_url class from OpenID url input 2024-07-09 17:14:41 +03:00
Anton Khorev
9cea1ecc74 Remove .w-100 classes from auth providers template
This is the default width.
2024-07-09 16:48:31 +03:00
Anton Khorev
149ff72caa Remove .list-inline classes from auth providers template
None of them were on html lists.
2024-07-09 16:44:12 +03:00
Anton Khorev
bacca516f0 Use flex gap instead of margins on auth buttons 2024-07-08 17:28:36 +03:00
Anton Khorev
c1882f0ff3 Use alt text in OpenID image alt attribute 2024-07-05 12:36:02 +03:00
Tom Hughes
5cc0b26bba Merge remote-tracking branch 'upstream/pull/4916' 2024-06-27 17:56:13 +01:00
Tom Hughes
1c179621d2 Use SVG for OpenID icon on the login screen 2024-06-27 17:51:32 +01:00
Emin Kocan
3dc76a9bc0 style auth buttons using .btn & .btn-light classes 2024-06-27 14:55:28 +02: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
Nenad Vujicic
1d35daa0b5 Fixed "auth_button_preferred alignment" issue described in #4773 2024-05-29 11:20:13 +02:00
Tom Hughes
161fc8ac47 Replace deprecated text-muted class with text-body-secondary 2024-05-22 11:58:32 +01:00
Milan Cvetkovic
9649b192c0 Add preferred provider social signup
- Add preferred provider for authorization to login and signup pages.
  To use, the 3rd party application would have to add `preferred_provider=...`
  parameter to OAuth2 authorization request.
- Resize 3rd party provider icons
- Add "login to authorize" heading to login and signup screens
2024-04-29 11:32:54 +00:00
Milan Cvetkovic
ae87d2ca7f Extract 3rd party login buttons from login screen 2024-04-27 12:44:09 +01:00
Gregory Igelmund
efc61f1315 Add basic structures for UserMute and Message muting logic
Including models, migration, controllers, views & locales.
2023-12-19 12:57:47 -05:00
Anton Khorev
672c79c79c Remove setting 100% width with w-100 where it's the default width 2023-07-28 20:27:58 +03:00
Anton Khorev
6c415ef142 Add aria-label to close buttons 2022-10-31 23:54:58 +03:00
Anton Khorev
dbcf256976 Use close button instead of geolink in sidebar content 2022-10-26 15:49:13 +03:00
Anton Khorev
58f0eea2a4 Remove unnecessary wrapper divs 2022-09-20 10:15:19 +03:00
Anton Khorev
fb75f447d7 Remove top margins from close buttons 2022-09-02 17:02:46 +03:00
Anton Khorev
351a785949 Remove geolink and close button nesting 2022-09-01 00:42:50 +03:00
Anton Khorev
41924fb69e Remove unnecessary float from flex-positioned close button 2022-08-27 23:20:36 +03:00
Anton Khorev
4000a4004b Changed feature close buttons to Bootstrap 2022-07-27 21:02:16 +03:00
Andy Allan
6c1d73a509 Allow users to delete their own accounts
This PR allows users to delete their own accounts. The logic implemented matches
that currently used by the admins when they manually close accounts, although
there is room to be more complex in future e.g. completely removing accounts
with no content.

The error handling has been slightly adapted for namespaced controllers, by
anchoring the controller name with a leading forward slash.
2022-02-09 16:15:24 +00:00
Andy Allan
a8e8ba1a64 Refactor the account edit/update pages out into a separate accounts controller 2021-12-08 15:17:50 +00:00
Andy Allan
6ab522b2b3 Convert account setting menu to tabs, and include on other pages
This makes it easier to navigate around these pages. Since each tab
corresponds to a given controller, this makes the selection of active
tabs straightforward.
2021-08-18 14:30:35 +01:00
Andy Allan
c8f0a81eb7 Rework sidebar to use padding on the sidebar_content div
This saves every header, list, paragraph etc having to sort out their own padding. The couple of instances where we want edge-to-edge can be acheived using the negative margin spacing utilities.

The padding is based on $spacer so that it can be adjusted automatically via bootstrap configuration.

This also means that we can remove many (mis-)uses of the browse-section class, which is only supposed to be for cases where there are multiple browse-sections in sequence (e.g. multiple nodes in the node history browse pages).
2021-06-16 15:45:58 +01:00
Andy Allan
c233bec67b Use flexbox to position the close icon on the sidebars
This ensures that the text and the close icon don't overlap, regardless
of the length of the title. The title div grows to use all available
space, while ensuring the text breaks if necessary to prevent it from
pushing the close icon offscreen.
2020-10-21 17:11:28 +02:00