Anton Khorev
24d6b3c55f
Add JSON output to /api/0.6/capabilities
2023-08-12 06:00:46 +03:00
Anton Khorev
0abab48f5d
Add order parameter to changeset query api entry point
2023-08-12 03:57:48 +03:00
Anton Khorev
abdce62a03
Add ordered changeset test method
2023-08-12 03:40:52 +03:00
Anton Khorev
41f8607810
Use article html elements for diary posts
2023-08-12 01:40:34 +03:00
Anton Khorev
113c32f65e
Remove custom css for OpenID logo
2023-08-10 19:43:54 +03:00
Anton Khorev
665bde6ccd
Use max changeset query limit setting in tests
2023-08-08 03:43:35 +03:00
Andy Allan
aceef47cd8
Merge pull request #4106 from tomhughes/diary-paging
...
Replace page numbers with ID based selection for diary indexes
2023-08-02 16:57:26 +01:00
Andy Allan
a56cdd547e
Merge pull request #4125 from tomhughes/oauth-scopes
...
Only show granted permissions in the authorized application list
2023-08-02 15:52:41 +01:00
Andy Allan
9619e699e1
Merge pull request #4107 from tomhughes/diary-visibility
...
Allow administrators to see deleted diary entries
2023-08-02 14:47:05 +01:00
Tom Hughes
c376962c9c
Only show granted permissions in the authorized application list
...
Fixes #4124
2023-07-30 20:35:13 +01:00
Tom Hughes
f29ba01eb9
Replace page numbers with ID based selection for diary indexes
2023-07-27 20:37:07 +01:00
Tom Hughes
b57ed0bf23
Improve testing of paged access to trace lists
2023-07-27 20:30:15 +01:00
Tom Hughes
7fb984f915
Allow moderator to unhide diary entries as well as hide them
2023-07-27 18:07:35 +01:00
Tom Hughes
6651d713d7
Allow administrators to see deleted diary entries
2023-07-27 18:03:58 +01:00
Andy Allan
925d12cc81
Merge pull request #3933 from AntonKhorev/api-changesets-limit
...
Add limit parameter to api changesets query
2023-07-26 16:45:00 +01:00
Tom Hughes
c909b29c35
Replace page numbers with ID based selection for trace indexes
2023-07-23 19:28:37 +01:00
Tom Hughes
ba3d3269e3
Fix new rubocop warnings
2023-07-18 18:27:06 +01:00
Tom Hughes
62c68b9f20
Merge remote-tracking branch 'upstream/pull/4077'
2023-07-05 15:10:12 +01:00
Andy Allan
d58cae6ff6
Avoid using the zero key for pluralisation in English
...
This makes it impossible to translate to other languages that use the
`zero:` key, e.g. for other numbers that end in zero.
An alternative approach would be possible in future, when ruby-i18n
and rails and translatewiki all have full support for `0:` and `1:` keys.
Fixes #3997
2023-07-05 14:47:39 +01:00
Andy Allan
22c137cc0c
Expand raw html checks to all translation files
...
This closes a potential security issue, where unreviewed html could
be added via translation files.
2023-07-05 13:47:12 +01:00
Tom Hughes
0254f7ee09
Fix confirmation prompt when granting or revoking roles
2023-07-01 15:21:02 +01:00
Tom Hughes
772e480766
Merge remote-tracking branch 'upstream/pull/4063'
2023-06-14 17:08:59 +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
e9e4b10473
Merge pull request #3907 from Dimitar5555/patch-1
...
Facelift `offline.html` and use Bootstrap classes for "notifications" under the search bar
2023-06-14 14:08:38 +01:00
Tom Hughes
52296d1cad
Add rubocop-factory_bot and fix warnings
2023-05-16 18:44:14 +01:00
Andy Allan
387d130e87
Add some validations for i18n values
...
These only apply to the en.yml file for now, but can be expanded
in due course.
2023-04-12 13:58:55 +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
Dimitar
318064b2a7
Facelift offline.html and use Bootstrap classes for "notifications"
...
Update site_controller_test.rb
Update site_controller_test.rb
Remove whitespace
Reset Settings.status after test is done
Update test for offline page
Update site_controller.rb
Fix indentation
Update offline controller
Update offline.html.erb
Remove flash CSS classes and fix missed tests
Updated tests
Address most PR comments
Update _flash.html.erb
Update _flash.html.erb
Update edit.html.erb
Update offline.html.erb
2023-03-26 13:57:51 +03:00
Andy Allan
a91afa0e78
Use .with_locale for about page
...
This simplifies the code, since we can avoid having to specify the
locale for every translation.
The test was added since I originally developed another approach,
but that caused exceptions on invalid locales.
2023-03-22 10:13:01 +00:00
Tom Hughes
8919c8c404
Use POST for geocoder backends
...
The geocoder backend calls are a private implementation detail
and using POST enables request forgery checks and makes scraping
of nominatim via the backend calls harder.
2023-03-07 17:24:48 +00:00
Tom Hughes
2b3133d2e8
Fix new rubocop warnings
2023-02-28 15:20:33 +00:00
Tom Hughes
721d33033c
Merge remote-tracking branch 'upstream/pull/3936'
2023-02-22 18:17:51 +00:00
Andy Allan
4af923dbf9
Ensure kramdown table alignment styles are converted to bootstrap classes
...
Adds tests for commit f42a7a2d8d
2023-02-22 09:46:52 +00:00
Andy Allan
10e035df93
Refactor trace guidance to avoid raw html in translations
...
Also rearrange to avoid multiple sentences in a heading.
2023-02-22 09:16:17 +00:00
Anton Khorev
e286ce515c
Add limit parameter to api changesets query
2023-02-14 20:56:29 +03: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
Tom Hughes
52591c5561
Merge remote-tracking branch 'upstream/pull/3911'
2023-02-01 19:10:22 +00:00
Andy Allan
c226d8e85e
Avoid converting conditional restriction tags into emails
...
Fixes #3884
2023-02-01 18:57:16 +00:00
Andy Allan
9bb8dd739a
Use data attributes to pass alternative button labels
...
This allows the text to be defined in the html partials, instead
of looking up the i18n via javascript.
2023-02-01 17:24:47 +00:00
Andy Allan
9748ce301c
Move browse#note to notes#show
...
This allows a more resourceful routing approach.
2023-02-01 17:13:41 +00:00
Andy Allan
b5046fdcd0
Move browse#new_note to notes#new
...
This allows a more resourceful routing approach.
2023-02-01 17:13:41 +00:00
Andy Allan
f7367baa6b
Rename api_notes resource to avoid conflict with non-API resource
...
This allows using e.g. note_path for notes#show in the future.
2023-01-25 19:01:57 +00:00
Tom Hughes
4704059096
Update tests for changes in osm-community-index
2023-01-14 15:12:23 +00:00
Richard Fairhurst
b7887b049f
Remove Geonames and geocoder.ca
2023-01-09 21:23:48 +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
Tom Hughes
6033359bd0
Preserve rel=me on links in rich text
...
Fixes #3859
2022-12-29 18:02:23 +00:00
Tom Hughes
600ed78b04
Use CGI.escape for ruby 2.7 compatibility
2022-12-29 17:45:29 +00:00