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
Andy Allan
5ce14cfa4d
Ensure that short duration blockss are shown as '0 hours'
...
Passing `:count => nil` means that i18n.t will return the hash of translations, so use a default value of 0 when checking for hours to prevent this.
Refs #3210
2021-06-09 14:17:56 +01:00
Tom Hughes
a71b8af4d1
Update to rails 6.1.3.2
2021-05-12 18:49:21 +01:00
Andy Allan
952cf0fdb4
Remove the old richtext_area helper
...
This has been superseded by the `f.richtext_field` custom form builder.
2021-03-03 15:34:16 +00:00
Tom Hughes
5912a8011b
Update to Omniauth 2.x
...
This requires converting all use of the /auth endpoints
to use the POST method as GET is no longer supported.
2021-02-02 19:49:03 +00:00
Andy Allan
c192bd0d40
Use bootstrap utility class instead of custom css
2020-12-16 17:34:12 +00:00
mxdanger
aad1c1b933
Add updated authentication logos
2020-11-13 20:02:00 -08:00
Tom Hughes
99e537859a
Fix HTML escaping issues with user role icons
2020-11-13 15:13:37 +00:00
Andy Allan
1f242978af
Prefer keyword arguments when method has optional boolean arguments
2020-11-12 11:24:44 +00:00
Tom Hughes
93e49daee2
Merge remote-tracking branch 'upstream/pull/2918' into master
2020-10-28 11:29:57 +00:00
Andy Allan
da2277505f
Ensure that test utility methods are marked as private
...
This allows us to enable the check for test method names.
2020-10-28 11:49:01 +01:00
Andy Allan
c04d05686f
Resolve some extra-long lines
2020-10-28 11:07:34 +01:00
Tom Hughes
ea59d95f4a
Fix some new rubocop warnings
2020-08-06 22:27:30 +01:00
Tom Hughes
d6f518f627
More improvements to locale selection for the data browser
...
Use the browser language preferences for non-logged in users.
2020-06-07 19:10:48 +01:00
Tom Hughes
768a792a61
Improve selection of name to display in data browser
...
If the user is logged in then consider all their preferred
languages rather than just the UI language, and use the full
locale matching algorithm instead of just checking parents.
Fixes #2636
2020-06-04 17:33:11 +01:00
Tom Hughes
7a1615bc55
Fix rubocop-minitest warnings
2020-04-15 19:07:13 +01:00
Tom Hughes
e693063fa5
Make linkify return an HTML safe result for unsafe inputs
...
Fixes #2567
2020-03-22 12:59:39 +00:00
Boubacar
5d7b09e3bd
change validation to accept only single email values
2020-02-19 23:44:40 -05:00
Boubacar
c42722d57d
Add email link helper to create mailto: links for email values in objects
2020-02-16 21:46:48 -05:00
Tom Hughes
6f8966e7c1
Note events use "opened" not "open" as the status
2019-12-16 22:26:33 +00:00
Manfred Stock
c3300d8c93
Turn wikimedia_commons values into links
...
This turns the value of the 'wikimedia_commons' tag into a link to the
respective page on commons.wikimedia.org (if it is a 'File:' or 'Category:'
item) by enhancing the browse tags helper. See [1] for the tag description.
[1] http://wiki.openstreetmap.org/wiki/Key:wikimedia_commons
2019-10-19 16:04:09 +02:00
Stefan Baebler
fe2bd1ee1a
Colour preview moved into new browse_tags_helper
...
In 74d2c4336b
browse_helper was split int two
2019-08-31 11:40:42 +02:00
Tom Hughes
91a37235ac
Remove support for old style user images
2019-07-16 22:33:26 +01:00
Tom Hughes
6c202448ad
Move user images to Active Storage with paperclip as a fallback
2019-07-09 19:17:30 +01:00
Andy Allan
fd61706e4c
Split some extremely long strings over multiple lines using squiggly heredocs
...
I'm not entirely convinced that testing walls of text like this is useful
anyway, but at least this approach makes the lines significantly less long.
2019-06-26 18:24:57 +02:00
Andy Allan
cd5e28406b
Use friendy_date_ago helper for notes
...
Refs #2255
2019-06-19 18:04:08 +02:00