Bryan Housel
3ab39f48ba
Add iD walkthrough autostart parameter
2017-07-07 17:58:02 -04:00
Tom Hughes
d4a461dc26
Merge remote-tracking branch 'upstream/pull/1575'
2017-07-06 19:15:55 +01:00
Tom Hughes
87a7829eb8
Add some tests for the user helper
2017-07-06 19:11:21 +01:00
Andy Allan
cbf71f04c2
Hide contributor terms details, unless the user hasn't agreed
...
It's no longer important to show when users agreed to the contributor terms.
For users that haven't agreed, we still show their status on their profile.
Logic was also re-written to avoid lots of `if not` things, and tests added.
2017-07-05 12:39:52 +01:00
Tom Hughes
5d740d8733
Don't disable search submission buttons on form submission
2017-06-30 10:01:22 +01:00
Tom Hughes
fe1e28b4f4
Fix more parameter sanitisation issues and add tests
2017-06-29 20:52:57 +01:00
Tom Hughes
3763cbc7d4
Disable forgery protection for notes API methods
...
Fixes #1571
2017-06-29 19:14:55 +01:00
Tom Hughes
117f0e8226
Sanitize parameters for various paged views
2017-06-29 10:55:53 +01:00
Tom Hughes
3893fd72a9
Fix some tests for changes in rails 5
2017-06-27 08:26:44 +01:00
Tom Hughes
81deb35331
Update to rails 5.0.4
2017-06-27 08:26:44 +01:00
Andy Allan
396f2e28dd
Rework coordinates to avoid scientific formatting of small numbers. Fixes #1509
2017-06-23 14:03:57 +01:00
Tom Hughes
ea9a4c2aa2
Convert XML document to a string when returning it
...
Otherwise the Rak::ETag module will throw an exception when it
tries to test if the response is empty.
2017-06-13 12:55:13 +01:00
Tom Hughes
fb4ea1a02a
Add explicit primary key declaration for changeset subscriptions
...
This table has a composite primary key and although we don't really
rely on that at all rails 5.0 warns about itif you don't explcitly
declare it in order to trigger the CPK extension.
2017-06-06 22:42:25 +01:00
Tom Hughes
18c8946556
Use explicit to_unsafe_h method when converting parameters to a hash
2017-06-05 22:44:15 +01:00
Tom Hughes
d85621c7ae
Replace deprecated ActiveModel::Errors get/set methods
2017-06-05 22:41:23 +01:00
Tom Hughes
d4df87c1e1
Replace deprecated env method with request.env
2017-06-05 22:38:27 +01:00
Tom Hughes
4248e10946
Use distinct instead of uniq which is deprecated
2017-06-04 22:52:41 +01:00
Tom Hughes
9dafeda080
Replace render :nothing with non-deprecated alternatives
2017-06-04 22:52:41 +01:00
Tom Hughes
339d8e46ff
Sanitise parameters used in URL generation
2017-06-04 20:24:53 +01:00
Tom Hughes
03a9df9288
Replace render :nothing with head
2017-06-04 20:24:53 +01:00
Tom Hughes
8412ed0bed
Replace deprecated Mime::XXX with Mime[:xxx]
2017-06-03 17:33:13 +01:00
Tom Hughes
2357118c46
Avoid using format as a URL parameter name
...
This prevents rails confusing it with the builtin format
parameter derived from the URL extension.
2017-06-03 12:08:35 +01:00
Tom Hughes
3b2d1886eb
Make delete button translatable
2017-06-03 12:04:00 +01:00
Hamel Desai
fa7b3022a8
Add delete button to message view
...
Fixes #1504
Closes #1557
2017-06-02 20:31:59 +01:00
Tom Hughes
80d27a7fae
Sanitise parameters used in URL generation
2017-06-02 20:27:07 +01:00
Tom Hughes
4ef7b2c651
Remove duplicate size specification for user image
...
Either the size or the width and height can be passed but passing
both doesn't make any sense and in rails 5.0 will error.
2017-06-02 20:27:07 +01:00
Tom Hughes
ff97501ed0
Remove all use of the :text option to render
...
It doesn't actually do what it says, as it sets the content type
to text/html not text/plain so is just confusing and as a result
has been deprecated in newer rails versions.
2017-06-02 19:12:05 +01:00
Tom Hughes
9b89d4eefe
Remove conditions from delete_all
...
Passing conditions directory to delete_all is deprecated
in rails 5.0 so use a separate where instead.
2017-06-02 16:33:48 +01:00
Tom Hughes
5b33f3f8e3
Fix rubocop warnings
2017-06-02 00:08:30 +01:00
Andy Allan
060230fb94
Ensure closed changesets appear in the feed, and update some misleading comments.
2017-06-01 15:43:51 +01:00
Peter Karich
0531091fd1
Include car profile for GraphHopper routing
...
Closes #1547
2017-05-24 21:17:22 +01:00
Tom Hughes
6e5240e198
Merge remote-tracking branch 'openstreetmap/pull/1521'
2017-05-17 20:37:01 +01:00
Tom Hughes
cb79ce2833
Parse asset map JSON before passing it to iD
2017-05-10 09:14:09 +01:00
Tom Hughes
3a16b68368
Use POST when editing GPX trace details
...
Fixes #1533
2017-05-01 16:56:02 +01:00
daganzdaanda
8b68acec3e
Move list of containing relations to top of browse views
...
Moves the list of containing relations to above the list of
members for ways and relations - nodes have no equivalent list
so no change is needed there.
Fixes #794
Closes #1501
2017-04-24 20:25:22 +01:00
Matt Amos
c7391595d8
Credit the whole of UCL, rather than just the Bartlett / VR centre.
2017-04-22 11:47:12 +01:00
Dan Stowell
5f35d37fee
Remember user's choice of directions engine
2017-04-11 19:42:37 +01:00
Herve Saint-Amand
2ae479e3f3
Fix indentation in email template
...
The plain text templates had nice indentation in the source however that
got reflected in the output, which was visibly and needlessly indented.
Closes #1512
2017-04-08 16:36:40 +01:00
Tom Hughes
3d6a3a6de3
Merge remote-tracking branch 'openstreetmap/pull/1508'
2017-03-30 15:45:37 +01:00
Andy Allan
4afedb07a2
Update mapzen directions credit link
...
Rather than pointing at a redirect, point at the target of the
redirect. Refs #1388
2017-03-30 15:18:16 +01:00
Andy Allan
4fb775d6d5
Format latitudes and longitudes as %7f in XML output
...
This matches the double formatting in XML from cgimap. Fixes #341 .
2017-03-30 14:30:54 +01:00
Tom Hughes
1b9ea430d1
Make the publisher URL configurable, with no default
2017-03-22 18:42:58 +00:00
Tom Hughes
24271b75bd
Use canonical-rails gem to generate canonical URLs
2017-03-22 18:16:53 +00:00
Tom Hughes
419edf951d
Add a canonical URL to the head
2017-03-22 17:14:55 +00:00
Tom Hughes
7c9229fbfc
Throw an exception if adding a note comment fails
2017-03-13 14:49:16 +00:00
Christian Stadelmann
cd922a99f8
Make search use HTTPS automatically
...
Currently users end up having a HTTP search function even if they
install it to their browsers from the HTTPS site. This is a unexpected
reduction in privacy.
Since search requests are private data they should be sent via HTTPS.
Closes #936
2017-03-13 11:22:19 +00:00
Simon Poole
9606e440bc
Return maximum size of bounding box for note retrieval
2017-03-13 08:53:49 +01:00
Tom Hughes
4ac9ed6f14
Improve styling of flash messages on the front page
2017-03-10 16:46:29 +00:00
Tom Hughes
5cdb835de3
Show offline/readonly messages as normal flash messages
2017-03-10 16:30:04 +00:00
Tom Hughes
33669daefb
Do more preloading in browse controller methods
...
Fixes #1476
2017-03-07 09:10:24 +00:00