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
Andy Allan
86822ea225
Remove remaining references to fixtures.
2017-06-01 11:00:50 +01:00
Andy Allan
17e9bcd2d4
Use factories for nodes in browse_helper tests.
2017-03-30 13:19:24 +01:00
Andy Allan
88ca1f9ed8
Rework the changeset helper tests to use factories.
2017-03-22 11:42:29 +00:00
Tom Hughes
47a5d2f37d
Add some whitespace
2017-03-10 15:34:34 +00:00
Andy Allan
5de04a8cc2
Use user factory for application_helper tests.
2017-03-10 10:53:00 +00:00
Andy Allan
5ae96d6cb7
Use user factory for note_helper tests.
2017-03-10 10:33:59 +00:00
Andy Allan
8b9ad9bf4b
Use user factory for user_roles_helper test
2017-03-09 17:12:11 +00:00
Tom Hughes
9b52542e52
Use simple string matches for user_blocks_helper tests
...
Testing against the translations is not something we do anywhere
else is and is dangerously close to testing the helper against
itself which is a bit pointless.
2017-02-19 11:50:01 +00:00
Tom Hughes
9c926c6c71
Use the factory to create user blocks
2017-02-19 11:42:38 +00:00
Simon Poole
325cd12c24
Make rupocop happy and correct placement of include
2017-02-19 12:35:02 +01:00
Simon Poole
455e906afa
Improve wording and add test
2017-02-19 11:59:34 +01:00