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
Paul Dexter-Sobkowiak
74d2c4336b
Split browse_helper.rb into two modules due to rubocop ModuleLength
2018-11-28 18:18:14 +00:00
Paul Dexter-Sobkowiak
5ba64efd7c
Show tel: links for multiple phone numbers separated by ;
...
Closes #2069
2018-11-27 00:06:28 +00:00
Andy Allan
252b9ef08a
Pluralize changesets controller
2018-11-14 10:34:28 +01:00
Andy Allan
26777c4464
Pluralize diary entries controller
2018-11-07 16:31:04 +01:00
Tom Hughes
f70edc02f0
Return the "large" image from the user details API call
...
Closes #1923
2018-07-09 20:26:37 +01:00
Tom Hughes
98de681e47
Update to rails 5.2.0
2018-06-19 00:16:24 +01:00
Tom Hughes
f7a35c5895
Fix new rubocop warnings
2018-06-18 09:00:49 +01:00
David Abián
ed1f441ef3
Concept URIs for Wikidata entities
...
Wikidata entities should be linked using concept URIs, which are
permanent. This is the right way of linking web resources according
to the Linked Data principles.
Closes #1884
2018-05-28 13:02:47 +01:00
Andy Allan
e1c62f1bf2
Remove if_user and similar methods
...
Rather than hiding features based on CSS, just avoid including them
in the output. Fixes #1862
2018-05-16 13:05:20 +08:00
Štefan Baebler
36a382bb43
Added support for 2 more secondary wikidata tag links
...
Listed on in https://wiki.openstreetmap.org/wiki/Key:wikidata :
* name:etymology:wikidata
* network:wikidata
2018-03-05 08:38:50 +00:00
Tom Hughes
be86e4824f
Convert various URLs to https
2018-01-08 20:18:21 +00:00
Andy Allan
cb87f02642
Merge branch 'pull/843' into titles
2017-11-22 14:42:16 +00:00
Tom Hughes
b6b9d543ac
Fix rubocop warnings
2017-10-29 19:43:02 +00:00
Tom Hughes
8379b65174
Improve user_image_url test
...
Use a user that actually has an image and updated the expect
output to match that.
2017-10-09 19:10:32 +01:00
Tom Hughes
8dae890a76
Fix rubocop warnings
2017-10-05 19:18:38 +01:00
Tom Hughes
2c9c427587
Convert @user to current_user in helpers
2017-07-27 19:27:17 +01:00
Tom Hughes
87a7829eb8
Add some tests for the user helper
2017-07-06 19:11:21 +01:00
Tom Hughes
5b33f3f8e3
Fix rubocop warnings
2017-06-02 00:08:30 +01:00