Commit graph

144 commits

Author SHA1 Message Date
Milan Cvetkovic
518f55c191 Use official "Log in to Microsoft" icon
Downloaded from https://learn.microsoft.com/en-us/entra/identity-platform/howto-add-branding-in-apps
on 2024-03-15.
2024-03-15 15:34:51 +00:00
Milan Cvetkovic
e614faaf8a Replace "Login" labels with "Log in" when used as a verb 2024-03-14 15:34:12 +00:00
Anton Khorev
7c522a4e02 Link to current and old element versions from changeset pages 2024-02-19 05:04:18 +03:00
Anton Khorev
ba2c75641d Move element title to changeset/relation list item 2024-02-19 03:42:24 +03:00
Anton Khorev
a8f14fb509 Separate element strikethrough from classes 2024-02-19 03:41:59 +03:00
Anton Khorev
d4aa257524 Apply changeset element classes to list items 2024-02-19 02:58:52 +03:00
Andy Allan
e7ddfe1084
Merge pull request #4401 from KasperFranz/buried-wikidata
Add buried to list of secondary Wiki prefixes
2024-01-24 11:39:28 +00:00
Tom Hughes
e71355c5bb Fix new rubocop warnings 2024-01-23 18:14:28 +00:00
Anton Khorev
4453728a72 Preview colour tag value using svg 2024-01-14 18:54:33 +03:00
Anton Khorev
cda8ca0607 Use <path> instead of <line> 2023-12-24 19:47:37 +03:00
Anton Khorev
b13ac4ec21 Add border/casing/line attribute support to svg map keys 2023-12-24 19:47:37 +03:00
Anton Khorev
07436bc1b0 Keep trailing semicolons in formatted tag values 2023-12-14 18:08:06 +03:00
Kasper Sanguesa-Franz
2a6f78747e Add buried to list of secondary Wiki prefixes 2023-12-12 09:12:38 +00:00
Tom Hughes
2fcee9625d Merge remote-tracking branch 'upstream/pull/4349' 2023-11-15 22:30:41 +00:00
Andy Allan
100a7f8979 Use friendly_date for note disappear description
There's no need to reimplement this in its own helper.
2023-11-15 19:36:35 +00:00
Andy Allan
d8400320a7 Use time instead of abbr element for changesets_helper 2023-11-15 19:19:57 +00:00
Andy Allan
d739943b36 Avoid wrapping time tags in abbr for note_helper 2023-11-15 19:18:01 +00:00
Andy Allan
0d33820150 Add missing tests for friendly_date_ago helper 2023-11-15 19:16:18 +00:00
Andy Allan
24a562f885 Use html 'time' element for friendly date helpers
This provides more structure than just a simple span.
2023-11-15 17:53:38 +00:00
Tom Hughes
cebda5ffb9 Merge remote-tracking branch 'upstream/pull/4319' 2023-11-15 17:14:49 +00:00
Anton Khorev
562e7e7d32 Remove some tag table custom css 2023-11-14 17:17:18 +00:00
Tom Hughes
c6bb4a5f4e Add importer role that can be associated with higher rate limits 2023-11-02 08:58:12 +00:00
Anton Khorev
62ba143c3c Remove some search/directions custom css 2023-10-20 16:58:59 +03:00
Anton Khorev
0fae5627a5 Remove <picture>s around <img srcset=...> 2023-10-03 03:06:12 +03:00
Anton Khorev
963b8f43f1 Change issue count logic from (n-1)+ to n+ 2023-09-01 08:05:01 +03:00
Anton Khorev
113c32f65e Remove custom css for OpenID logo 2023-08-10 19:43:54 +03:00
Tom Hughes
0254f7ee09 Fix confirmation prompt when granting or revoking roles 2023-07-01 15:21:02 +01:00
Andy Allan
73e0c4ed21 Use Time.utc for consistency with other tests
This also allows times to be created in short form, e.g. Time.utc(2020)
2023-06-14 16:46:27 +01:00
Andy Allan
2f7642aa03 Fix test to work in non-UK timezones
Time.new(...).utc is not the same as Time.utc(...). The
first creates a given date in local time, and then converts that to
utc, whereas the second creates the given time in UTC.
2023-06-14 16:46:06 +01:00
Andy Allan
fad3aedbbb Rework note events to avoid raw html in translations 2023-04-02 10:22:30 +01:00
Andy Allan
4ac0c9c1e8 Rework browse pages to avoid raw html in translations 2023-03-29 18:52:45 +01:00
Andy Allan
47362f432a
Merge pull request #3691 from AntonKhorev/wikipedia-secondary-links
Link prefixed wikipedia tags
2023-02-08 17:30:25 +00:00
Andy Allan
c226d8e85e Avoid converting conditional restriction tags into emails
Fixes #3884
2023-02-01 18:57:16 +00:00
Tom Hughes
52078b5d76 Escape each portion of a semicolon seprated value individually
Fixes #3872
2023-01-04 15:41:54 +00:00
Kyle Hensel
305acfe516
fix formatting of tag values with semicolon-separated URLs 2022-12-31 17:30:03 +13:00
Andy Allan
067b0de439
Merge pull request #3676 from harry-wood/notes-disappear-time
Display how long until a note will disappear
2022-11-23 15:44:26 +00:00
Andy Allan
97b7bac956 Use the mail_to method to construct a mailto link for browse tag values
This is easier than building a mailto link ourselves. Also implement
the missing title tag and write a test for it.
2022-11-17 12:53:33 +00:00
Harry Wood
d8e51614cb Display how long until a note will disappear
Modify the message displayed at the bottom of the notes sidepanel. For already resolved notes we don't want to say "please resolve it". Fixes https://github.com/openstreetmap/openstreetmap-website/issues/3663

Instead explain that it will disappear from the map (so reporting is probably not necessary) and display how long to go until that happens. Tackling https://github.com/openstreetmap/openstreetmap-website/issues/3071
2022-09-14 23:59:25 +01:00
Anton Khorev
9aa24a0715 Link prefixed wikipedia tags 2022-09-15 01:00:19 +03:00
Tom Hughes
273cb9e00a Fix test for change in class 2022-07-22 22:48:31 +01:00
Tom Hughes
a3617b492e Drop AOL and Wordpress login links
Fixes #3555
2022-05-20 18:25:15 +01:00
Tom Hughes
03cad948e3 Fix new rubocop warnings 2022-03-15 19:24:09 +00:00
Tom Hughes
b5f06e06c1 Fix rubocop Rails/TimeZone warnings 2022-03-01 22:55:10 +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
Andy Allan
9f61d6c1cf Specify avatar dimensions in html tags
This prevents reflow when the images are loaded by the browser.

ActiveStorage variants are resized lazily when the image is requested,
so we only know the dimensions if the image was already loaded. This
means that there will be one reflow just after a new avatar is first
viewed.
2021-10-13 14:05:02 +01:00
Tom Hughes
8a9dbc94c8 Update rubocop todo and fix new warnings 2021-09-14 20:40:36 +01:00
Andy Allan
dd9eca9346 Switch to html5-compatible fragment encoding for wikipedia URLs
Fixes #3269

In the HTML4 days, fragments weren't allowed to have `%` signs, so
mediawiki generated fragments with `%` replaced with a `.`

In HTML5, fragments can have % encoded characters, and so in 2017
wikipedia switched over to this for their automatically generated
fragments, while keeping the "dot" versions available as a fallback.

However, we have been automatically converting all fragments,
including manually specified anchors that do not have "dot"-encoded
versions available. So we can now simplify everything by just using
the HTML5 percent-encoded fragments.
2021-07-28 16:01:48 +01:00
Tom Hughes
63e4a89323 Fix new ruboop warnings 2021-06-22 18:34:15 +01:00
Tom Hughes
4a45092e27 Remove the Yahoo OpenID link as they no longer support OpenID 2021-06-17 22:33:05 +01:00
Andy Allan
71be435886 Fix case when user block durations are slightly negative
The output from ActiveSupport::Duration is wildly unhelpful in those cases

Fixes #3210
2021-06-09 15:16:35 +01:00