Tom Hughes
6afa132b84
erblint: use word arrays
2019-03-27 18:57:04 +00:00
Tom Hughes
ecd81eadbe
erblint: use parentheses for nested function calls
2019-03-27 18:55:48 +00:00
Tom Hughes
40141993f7
erblint: use symbols as procs
2019-03-27 18:54:16 +00:00
Tom Hughes
70f571fbcf
erblint: avoid negated if conditions
2019-03-27 18:49:01 +00:00
Tom Hughes
7cd7354673
erblint: prefer symbolic logical operators over and/or/not
2019-03-27 18:47:51 +00:00
Andy Allan
22c1be4db7
Set image dimensions in order to avoid a reflow after the page is drawn by the browser
2019-03-27 18:05:44 +01:00
Andy Allan
a5f4124681
Refactor notes#mine to simplify code
2019-03-27 18:04:44 +01:00
Tom Hughes
3af16f6337
erblint: fix remaining single quoted strings
2019-03-27 16:15:19 +00:00
Andy Allan
3834ed45e6
erblint: avoid parentheses for method calls with no arguments
2019-03-27 10:59:10 +01:00
Andy Allan
6d0100b91d
erblint: prefer double quoted strings
2019-03-27 10:57:00 +01:00
Andy Allan
74b91c0e3e
erblint: Add or remove curly braces around hash parameters as required
2019-03-27 10:30:48 +01:00
Andy Allan
040c0184a4
erblint: use hash rocket syntax
2019-03-27 10:03:56 +01:00
Tom Hughes
4adc6680ee
Fix capitalisation of div tag
2019-03-26 20:52:43 +00:00
Andy Allan
4dd0a74a3b
Whitespace fixes to various erb files
2019-03-26 20:23:35 +00:00
Andy Allan
c703a3d1a7
Whitespace fixes for messages erb files
2019-03-26 20:23:35 +00:00
Andy Allan
9077419ca8
Whitespace fixes for layouts erb files
2019-03-26 20:23:35 +00:00
Andy Allan
0625c1effb
Whitespace fixes for diary_entry erb files
2019-03-26 20:23:35 +00:00
Andy Allan
3c410bcd7e
Whitespace fixes for browse erb files
2019-03-26 20:23:35 +00:00
Andy Allan
df49529237
Whitespace fixes for errors erb files
2019-03-26 20:23:35 +00:00
Andy Allan
e3470746bf
Whitespace fixes for oauth_clients erb files
2019-03-26 20:23:35 +00:00
Andy Allan
84bdc5d048
Whitespace fixes for issues erb files
2019-03-26 20:23:35 +00:00
Andy Allan
5029db24fa
Whitespace fixes for users erb files
2019-03-26 20:23:35 +00:00
Andy Allan
aa9e9a5eb1
Whitespace fixes for user_blocks erb files
2019-03-26 20:23:35 +00:00
Andy Allan
68a5aa5ed8
Whitespace fixes for notifier erb views
2019-03-26 20:23:35 +00:00
Andy Allan
38cfc35eb2
Whitespace fixes for site erb files
2019-03-26 20:23:35 +00:00
Andy Allan
bbd44f8099
Whitespace fixes in traces erb files
2019-03-26 20:23:35 +00:00
Tom Hughes
141df02e67
Move status into the settings object
...
Only the very early boot code needs to look at the value
from the environment directly.
2019-03-17 11:15:34 +00:00
Tom Hughes
6600221fe3
Fix database offline mode
2019-03-17 11:15:34 +00:00
Tom Hughes
e3ed9988ce
Merge remote-tracking branch 'upstream/pull/2177'
2019-03-16 15:39:03 +00:00
Tom Hughes
874fddf499
Merge remote-tracking branch 'upstream/pull/2164'
2019-03-16 15:31:29 +00:00
Andy Allan
d98683abfb
Rubocop fix
2019-03-16 15:30:41 +00:00
Andy Allan
656ed0af76
Move changeset builder views to the api namespace
2019-03-16 15:30:41 +00:00
Frederik Ramm
538bfed8a6
Move changeset XML generation to a view
2019-03-16 15:30:18 +00:00
Tom Hughes
8949737692
Add Spanish attribution to copyright page
...
Fixes #2179
2019-03-15 09:17:52 +00:00
Andy Allan
d102c9aaf4
Move all settings to settings.yml
...
We leave the STATUS setting alone, since it's required before rails
boots. The test-specific settings now live in config/settings/test.yml
2019-03-13 18:06:23 +01:00
Tom Hughes
94b59f4403
Merge remote-tracking branch 'upstream/pull/2161'
2019-02-28 19:17:40 +00:00
Tom Hughes
73214da35d
Merge remote-tracking branch 'upstream/pull/2160'
2019-02-28 18:58:05 +00:00
Andy Allan
b4dbf6233c
Move the notes api methods into a controller in the api namespace
2019-02-28 17:12:28 +01:00
Andy Allan
4b4c5aac2f
Move the user api methods into a separate controller in the api namespace
2019-02-28 17:12:28 +01:00
Andy Allan
b38343e5bd
Move node/way/relation/old_* controllers into the api namespace
2019-02-28 17:12:28 +01:00
Tom Hughes
d2ff1491b4
Avoid CSP issues with OpenID login
...
To avoid Chrom getting upset about sending form data to sites
that our policy doesn't allow, even when it isn't, use Javascript
to jump straight to Omniauth as the direct OpenID based login
buttons were already doing.
Fixes #1909
2019-02-25 11:46:12 +00:00
Andy Allan
1778fa3d9c
Move the api methods from changesets_controller into the api namespaced controller
2019-02-24 12:18:31 +01:00
Andy Allan
8383fd0928
Move the permissions call out of api_controller
2019-02-24 11:00:28 +01:00
Andy Allan
6a4092bc16
Move the capabilities call out of api_controller
2019-02-24 11:00:20 +01:00
Tom Hughes
22fefc3df0
Set language and text direction properly on the copyright page
...
Also add style overrides for explicit LTR and RTL text that work
independently of the main page styling.
Fixes #2148
2019-02-19 10:09:07 +00:00
Tom Hughes
fa0a933c24
Replace augment.js with conditional polyfills for ES5 and ES6
2019-01-30 12:11:57 +00:00
Tom Hughes
9c83235f72
Replace conditional comments with browser detection
2019-01-30 12:11:34 +00:00
Andy Allan
8a2df0e0b5
More resourceful routing for nodes, ways, relations and changesets controllers
2019-01-16 13:10:11 +01:00
Andy Allan
58c101762e
Use a builder view for the capabilities call
...
This is easier to work with than building the XML document by hand
in the controller.
2019-01-09 14:30:18 +01:00
Andy Allan
686fee43bf
Use full list of osm xml root attributes in builder templates
2019-01-09 14:15:39 +01:00