Anton Khorev
dc52cdc612
Adjust browse line/icon height/alignment for text-only zooming
2024-12-09 13:22:54 +03:00
Anton Khorev
5b5ffaf90f
Allow to specify browse icon priorities
2024-12-09 13:22:34 +03:00
Anton Khorev
f051a7c1f5
Write browse element icons as <img>
2024-12-09 13:22:34 +03:00
Tom Hughes
6789fc3081
Drop support for ruby 3.0
...
Also add Ubuntu 24.04 and drop 20.04 as 24.04 is needed for
ruby 3.1 without rvm so we should test it.
2024-09-17 20:39:22 +01:00
Anton Khorev
54c0361744
Always show changeset element page links below headings
2024-09-14 17:15:11 +03:00
Anton Khorev
4e97231269
Fix element pagination width calculation
2024-09-13 18:50:22 +03:00
Anton Khorev
5add2d7e1d
Reload only changeset element subpages
2024-06-03 14:16:09 +03:00
Anton Khorev
b072c2935f
Add titles to changeset element page links
2024-06-03 14:07:23 +03:00
Anton Khorev
6a5fea01b1
Update outdated tags of amenity/office/shop browse icons
2024-05-01 10:25:38 +03:00
Anton Khorev
927cc9f45e
Don't pass paths to element_single_current_link helper
2024-03-16 04:51:42 +03:00
Anton Khorev
7d4b48f0f8
Move changeset element headings to changesets locale
2024-03-01 10:48:30 +03:00
Tom Hughes
71cb2c50fc
Merge remote-tracking branch 'upstream/pull/4272'
2024-02-25 13:40:11 +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
43a4a3a887
Add element list item helper
2024-02-19 03:41:59 +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
Anton Khorev
d404bc04d5
Move sidebar pagination to helpers
2023-11-16 13:36:57 +03:00
Andy Allan
78b9d92207
Prefer keyword arguments when method has optional boolean arguments
2020-11-12 11:24:44 +00:00
Tom Hughes
abca51e4d8
Fix some Style/StringConcatenation warnings
2020-08-09 19:48:16 +01:00
Tom Hughes
4d2ea31516
Don't fall back to name:en if it's not in the user's language list
...
Fix to #2755
2020-08-06 14:21:30 +01:00
Tom Hughes
39b60219fe
Fix new rubocop warnings
2020-06-11 19:21:41 +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
Andy Allan
061c53ff1d
Remove unnecessary requires from helpers
2019-02-06 12:17:54 +01: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
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
Š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
a83030dab7
Fix new rubocop warnings
2018-01-22 18:55:45 +00:00
Tom Hughes
be86e4824f
Convert various URLs to https
2018-01-08 20:18:21 +00:00
Tom Hughes
e16311125e
Use Hash#dig to simplify code
2017-10-05 20:22:24 +01:00
Tom Hughes
8dae890a76
Fix rubocop warnings
2017-10-05 19:18:38 +01:00
Tom Hughes
5b33f3f8e3
Fix rubocop warnings
2017-06-02 00:08:30 +01:00
Tom Hughes
5f4dcd34ff
Fix some rubocop warnings
2016-09-15 22:41:07 +01:00
Tom Hughes
47e6637f18
Fix rubocop warnings
2016-08-16 19:27:14 +01:00
Florian Schäfer
3251cdf5d6
Added fixes for rubocop complaints
2016-07-14 15:22:52 +02:00
Florian M. Schäfer
10cde3bb92
Link the prefixed wikidata-tags to wikidata.org
...
With this commit, the prefixed wikidata-tags get linked to the
corresponding wikidata.org-page in the current interface-language.
Multiple semicolon-separated wikidata-IDs are shown as multiple
semicolon-separated links to wikidata.
This commit contains also some tests for those links.
2016-07-14 15:22:52 +02:00
Simon Legner
6f144e8b7d
Show ref of object when no name is present
2016-03-09 18:47:54 +00:00
Tom Hughes
8fe1899596
Fix rubocop warnings
2016-01-19 09:51:24 +00:00
Tom Hughes
18b8fc60bb
Add rel=nofollow to links to tagless nodes in browse pages
2015-12-20 00:19:16 +00:00
Tom Hughes
c9d35839be
Fix new rubocopy warnings
2015-08-18 20:57:14 +01:00
Tom Hughes
ca213b873f
More improvements to mediawiki fragment escaping
...
It turns out that the PHP urlencode encodes more characters than
the ruby URI.encode does by default, so specify our own characters
to encode based on http://php.net/manual/en/function.urlencode.php
with the extra exclusion of colon, which the mediawiki code reverses
after the encoding is done.
Fixes #967
2015-05-15 15:34:12 +01:00
Tom Hughes
b40353b9b0
Escape fragment identifiers in wikipedia URLs
...
Fixes #967
2015-05-14 20:34:25 +01:00
Tom Hughes
2af0840ff3
Fix style issues found by new rubocop version
2015-04-14 09:38:24 +01:00
Tom Hughes
8e404f3a46
Fix some more rubocop style issues
2015-02-20 20:39:52 +00:00
Tom Hughes
dc2a2c8ebd
Standardise on double quoted strings
2015-02-20 19:47:26 +00:00
Tom Hughes
5cbd4038ed
Fix rubocop style issues
2015-02-20 08:56:16 +00:00
Tom Hughes
ef7f3d800c
Fix most auto-correctable rubocop issues
2015-02-20 08:56:16 +00:00
Tom Hughes
c53db246f6
Merge branch 'rails41'
2014-07-21 08:53:44 +01:00