]> git.openstreetmap.org Git - rails.git/log
rails.git
10 years agoFilter out nodes which are too far away
Tom Hughes [Sun, 9 Mar 2014 11:46:38 +0000 (11:46 +0000)]
Filter out nodes which are too far away

10 years agoInitial work on overpass based query API
Tom Hughes [Sat, 8 Mar 2014 17:40:27 +0000 (17:40 +0000)]
Initial work on overpass based query API

10 years agoDrop client side parsing of lat/lon parameters
Tom Hughes [Sun, 16 Mar 2014 12:55:43 +0000 (12:55 +0000)]
Drop client side parsing of lat/lon parameters

The server always redirects these to a new style link with the
position in the hash, so we don't need to do it client side

10 years agoMake the search form a GET form with no extra fields
Tom Hughes [Fri, 7 Mar 2014 19:18:24 +0000 (19:18 +0000)]
Make the search form a GET form with no extra fields

We only accept GET requests for the search, and although the form is
never normally submitted directly some browsers offer an option to
create a bookmark from a form, so make that work.

10 years agoAdd more helper tests
Tom Hughes [Wed, 5 Mar 2014 22:54:59 +0000 (22:54 +0000)]
Add more helper tests

10 years agoRemove an unused method
Tom Hughes [Wed, 5 Mar 2014 22:54:50 +0000 (22:54 +0000)]
Remove an unused method

10 years agoUpdate to Leaflet 0.7.2
Tom Hughes [Tue, 4 Mar 2014 15:53:40 +0000 (15:53 +0000)]
Update to Leaflet 0.7.2

10 years agoAdd more tests for BrowseHelper
Tom Hughes [Sat, 1 Mar 2014 16:02:06 +0000 (16:02 +0000)]
Add more tests for BrowseHelper

10 years agoUpdate config/wiki_pages.yml
Tom Hughes [Sat, 1 Mar 2014 12:36:30 +0000 (12:36 +0000)]
Update config/wiki_pages.yml

10 years agoFixed wikipedia link reference to specific sections
João G. Packer [Fri, 28 Feb 2014 01:30:30 +0000 (22:30 -0300)]
Fixed wikipedia link reference to specific sections

When creating  a wikipedia link from a tag, the function
is (correctly) appending "?userlang=#{I18N.lang}" to the URL,
but doing this breaks the reference to a specific section
of a wikipedia article (if there is any).

For example, if the tag is "wikipedia=Article#Section", the function
would create a link to "../Article#Section?uselang=xx", and then the
browser wouldn't be able to correctly find the section. The correct
link result should be "../Article?uselang=xx#Section".

This commit fixes this by verifying if there is a reference to a
specific section of the article, and then putting "?uselang=#{I18N.lang}"
between the article's name and the section name.

10 years agoAdd tests for BrowseHelper#wikipedia_link
Tom Hughes [Sat, 1 Mar 2014 00:25:33 +0000 (00:25 +0000)]
Add tests for BrowseHelper#wikipedia_link

10 years agoAdd tests for OSM.locationCookie
Tom Hughes [Fri, 28 Feb 2014 00:28:26 +0000 (00:28 +0000)]
Add tests for OSM.locationCookie

10 years agoApply zoomPrecision to location cookie
Tom Hughes [Fri, 28 Feb 2014 00:26:34 +0000 (00:26 +0000)]
Apply zoomPrecision to location cookie

10 years agoMove cookieContent to OSM.locationCookie
Tom Hughes [Fri, 28 Feb 2014 00:10:55 +0000 (00:10 +0000)]
Move cookieContent to OSM.locationCookie

10 years agoUpdate osm.js tests for changes and add some more
Tom Hughes [Thu, 27 Feb 2014 19:10:36 +0000 (19:10 +0000)]
Update osm.js tests for changes and add some more

10 years agoMove zoomPrecision function to the OSM namespace
Tom Hughes [Thu, 27 Feb 2014 18:15:54 +0000 (18:15 +0000)]
Move zoomPrecision function to the OSM namespace

10 years agoUse Konacha for testing JavaScript
John Firebaugh [Tue, 11 Sep 2012 15:54:50 +0000 (08:54 -0700)]
Use Konacha for testing JavaScript

10 years agoRemove unused (and non-functioning) code
Tom Hughes [Wed, 26 Feb 2014 18:53:25 +0000 (18:53 +0000)]
Remove unused (and non-functioning) code

10 years agoUpdate to iD v1.3.7
John Firebaugh [Wed, 26 Feb 2014 00:09:18 +0000 (16:09 -0800)]
Update to iD v1.3.7

10 years agoAdd some more tests for library code
Tom Hughes [Wed, 26 Feb 2014 00:33:19 +0000 (00:33 +0000)]
Add some more tests for library code

10 years agoRemove unused session model
Tom Hughes [Wed, 26 Feb 2014 00:13:47 +0000 (00:13 +0000)]
Remove unused session model

10 years agoReorganise tests to match modern rails test layout
Tom Hughes [Wed, 26 Feb 2014 00:13:19 +0000 (00:13 +0000)]
Reorganise tests to match modern rails test layout

10 years agoAdd a test to check that html.dir is sensible in every locale
Tom Hughes [Sun, 23 Feb 2014 00:20:57 +0000 (00:20 +0000)]
Add a test to check that html.dir is sensible in every locale

10 years agoUniqify lists of containing ways/relations
Tom Hughes [Sun, 23 Feb 2014 00:08:51 +0000 (00:08 +0000)]
Uniqify lists of containing ways/relations

Fixes #707

10 years agoThe html.dir key should not be translated...
Tom Hughes [Sun, 23 Feb 2014 00:04:59 +0000 (00:04 +0000)]
The html.dir key should not be translated...

Fixes #709

10 years agoApparently asin now throws Math::DomainError instead of Errno::EDOM
Tom Hughes [Thu, 20 Feb 2014 09:12:41 +0000 (09:12 +0000)]
Apparently asin now throws Math::DomainError instead of Errno::EDOM

10 years agoFix updateLinks({lat: 0, lon: 0}, ...)
John Firebaugh [Wed, 19 Feb 2014 01:20:52 +0000 (17:20 -0800)]
Fix updateLinks({lat: 0, lon: 0}, ...)

Fixes openstreetmap/iD#2130

10 years agoUpdate to rails 4.0.3
Tom Hughes [Tue, 18 Feb 2014 21:38:43 +0000 (21:38 +0000)]
Update to rails 4.0.3

10 years agoFixed missing translation
Tom Hughes [Mon, 17 Feb 2014 20:10:29 +0000 (20:10 +0000)]
Fixed missing translation

10 years agoDrop the slim layout
Tom Hughes [Sun, 16 Feb 2014 16:03:00 +0000 (16:03 +0000)]
Drop the slim layout

The slim layout is not really needed since the redesign as the
pages it was used for in the OAuth flow now have less chrome and
work fine on small screens with the normal layout.

Fixes #689

10 years agoAdd some more shortlink tests
Tom Hughes [Sat, 15 Feb 2014 12:46:09 +0000 (12:46 +0000)]
Add some more shortlink tests

10 years agoImprove redirection of shortlinks
Tom Hughes [Sat, 15 Feb 2014 12:42:52 +0000 (12:42 +0000)]
Improve redirection of shortlinks

If a shortlink includes an object reference then redirect to a new
style browse URL for that object.

Fixes #702

10 years agoInclude selected layer in short links
Tom Hughes [Sat, 15 Feb 2014 12:05:30 +0000 (12:05 +0000)]
Include selected layer in short links

Fixes #703

10 years agoRemove https load test
Tom Hughes [Tue, 11 Feb 2014 08:23:55 +0000 (08:23 +0000)]
Remove https load test

10 years agoUpdate to paperclip 4.x and add content type validation
Tom Hughes [Mon, 10 Feb 2014 00:34:23 +0000 (00:34 +0000)]
Update to paperclip 4.x and add content type validation

10 years agoRemoved bogus translations
Tom Hughes [Sun, 9 Feb 2014 15:43:31 +0000 (15:43 +0000)]
Removed bogus translations

10 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Sun, 9 Feb 2014 15:35:43 +0000 (15:35 +0000)]
Localisation updates from https://translatewiki.net.

10 years agoMore interpolation fixes
Tom Hughes [Sun, 9 Feb 2014 12:53:22 +0000 (12:53 +0000)]
More interpolation fixes

10 years agoFix various broken interpolations
Tom Hughes [Sun, 9 Feb 2014 12:43:42 +0000 (12:43 +0000)]
Fix various broken interpolations

Fixes #699

10 years agoFix some mixed content issues
Tom Hughes [Sat, 8 Feb 2014 17:43:34 +0000 (17:43 +0000)]
Fix some mixed content issues

10 years agoMake it clear that notes are for map improvements
Richard Fairhurst [Fri, 7 Feb 2014 13:41:25 +0000 (13:41 +0000)]
Make it clear that notes are for map improvements

...and use friendlier-sounding language. Should help avoid
instances like http://www.openstreetmap.org/note/114639 and
http://www.openstreetmap.org/note/114640, though I'm sorely
tempted to add "amenity=brian" and "amenity=george" in response
to these.

10 years agoAvoid using one translation as the key for a second
Tom Hughes [Thu, 6 Feb 2014 09:14:06 +0000 (09:14 +0000)]
Avoid using one translation as the key for a second

Translation keys need to be fixed, so we can't use the result of
one lookup to derive the key for another...

Fixes #697

10 years agoBoost https tile traffic to 20%
Tom Hughes [Wed, 5 Feb 2014 19:43:44 +0000 (19:43 +0000)]
Boost https tile traffic to 20%

10 years agoUpdate to iD v1.3.6
John Firebaugh [Wed, 5 Feb 2014 18:17:25 +0000 (10:17 -0800)]
Update to iD v1.3.6

10 years agoSend 5% of users tiles over https as a test
Tom Hughes [Wed, 5 Feb 2014 18:38:36 +0000 (18:38 +0000)]
Send 5% of users tiles over https as a test

10 years agoPreserve message details over validation errors
Tom Hughes [Tue, 4 Feb 2014 22:31:44 +0000 (22:31 +0000)]
Preserve message details over validation errors

If a validation error occurs while saving a message then make
sure the values are preserved in the new form.

10 years agoFix broken interpolation variables
Tom Hughes [Sun, 2 Feb 2014 15:35:56 +0000 (15:35 +0000)]
Fix broken interpolation variables

10 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Sun, 2 Feb 2014 13:13:49 +0000 (13:13 +0000)]
Localisation updates from https://translatewiki.net.

10 years agoRemove version lock on dalli now that ruby-openid is updated
Tom Hughes [Wed, 29 Jan 2014 22:47:17 +0000 (22:47 +0000)]
Remove version lock on dalli now that ruby-openid is updated

10 years agoPass preferred language to geonames API calls
Tom Hughes [Mon, 27 Jan 2014 21:07:34 +0000 (21:07 +0000)]
Pass preferred language to geonames API calls

10 years agoUse api.geonames.org for reverse searches
Tom Hughes [Mon, 27 Jan 2014 21:02:00 +0000 (21:02 +0000)]
Use api.geonames.org for reverse searches

10 years agoFix interpolation variables
Tom Hughes [Fri, 24 Jan 2014 20:37:29 +0000 (20:37 +0000)]
Fix interpolation variables

10 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Fri, 24 Jan 2014 20:15:41 +0000 (20:15 +0000)]
Localisation updates from https://translatewiki.net.

10 years agoCompile the fixthemap javascript
Tom Hughes [Sun, 19 Jan 2014 20:19:33 +0000 (20:19 +0000)]
Compile the fixthemap javascript

10 years agoReserve enough space for the buttons at the bottom of the message list
Marco Antonio Frias Butrón [Thu, 16 Jan 2014 04:13:26 +0000 (00:13 -0400)]
Reserve enough space for the buttons at the bottom of the message list

10 years agoAdd a tests for the fixthemap page
Tom Hughes [Sun, 19 Jan 2014 13:52:17 +0000 (13:52 +0000)]
Add a tests for the fixthemap page

10 years agoAdd a landing page for "fix the map / report a problem" links
Simon Poole [Sun, 19 Jan 2014 13:48:27 +0000 (13:48 +0000)]
Add a landing page for "fix the map / report a problem" links

10 years agoChanging the note search limit from 9999 to 10000
Toby Murray [Thu, 16 Jan 2014 08:28:34 +0000 (02:28 -0600)]
Changing the note search limit from 9999 to 10000

The documentation says the limit is 10000 which seems like a
nicer round number anyway.

10 years agoStick with dalli 2.6.x for now until ruby-openid is updated
Tom Hughes [Sat, 18 Jan 2014 16:54:20 +0000 (16:54 +0000)]
Stick with dalli 2.6.x for now until ruby-openid is updated

https://github.com/openid/ruby-openid/pull/67
https://github.com/mperham/dalli/issues/424

10 years agoRemove code to populate countries table
Tom Hughes [Fri, 17 Jan 2014 19:57:58 +0000 (19:57 +0000)]
Remove code to populate countries table

10 years agoLoad soap4r so IP geolocation works
Tom Hughes [Fri, 17 Jan 2014 19:57:20 +0000 (19:57 +0000)]
Load soap4r so IP geolocation works

10 years agoReplace the country table with a static XML countries file
Tom Hughes [Fri, 17 Jan 2014 19:25:58 +0000 (19:25 +0000)]
Replace the country table with a static XML countries file

Storing the countries in the database is overkill, so just use a
copy of the geonames countryInfo data that is loaded into a hash
the first time it is used.

10 years agoHighlight erroneous fields by adding a class to them
Tom Hughes [Wed, 15 Jan 2014 21:09:54 +0000 (21:09 +0000)]
Highlight erroneous fields by adding a class to them

The default rails scheme for highlighting errors is to wrap the
field in a div, but that changes the structure of the page and can
change the meaning of CSS rules applied to the fields.

As an alternative we now apply a class to the fields, and use that
in the CSS to apply a highlight.

10 years agoChange attribute names for diary/message titles to match UI labels
Tom Hughes [Wed, 15 Jan 2014 20:26:22 +0000 (20:26 +0000)]
Change attribute names for diary/message titles to match UI labels

10 years agoReenable the note search API
Tom Hughes [Wed, 15 Jan 2014 19:58:58 +0000 (19:58 +0000)]
Reenable the note search API

Add a postgress freetext index on the note comments, and enable
note searching using freetext matching.

10 years agoPreserve aspect ratio when scaling a user thumbnail
Tom Hughes [Sun, 12 Jan 2014 20:32:33 +0000 (20:32 +0000)]
Preserve aspect ratio when scaling a user thumbnail

Fixes #675

10 years agoSet empty alt text on user images
Tom Hughes [Sun, 12 Jan 2014 19:28:01 +0000 (19:28 +0000)]
Set empty alt text on user images

This stops a stupidly long URL being shown if something goes wrong
with the gravatar redirect back to the default image.

10 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Sat, 11 Jan 2014 17:02:33 +0000 (17:02 +0000)]
Localisation updates from https://translatewiki.net.

10 years agoUpdate to iD v1.3.5
John Firebaugh [Thu, 9 Jan 2014 02:06:33 +0000 (18:06 -0800)]
Update to iD v1.3.5

10 years agoDisable notes search until it can be made scalable
Tom Hughes [Thu, 9 Jan 2014 08:41:59 +0000 (08:41 +0000)]
Disable notes search until it can be made scalable

10 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Mon, 6 Jan 2014 11:21:23 +0000 (11:21 +0000)]
Localisation updates from https://translatewiki.net.

10 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Sat, 28 Dec 2013 18:00:47 +0000 (18:00 +0000)]
Localisation updates from https://translatewiki.net.

10 years agoUpdate bundle
Tom Hughes [Mon, 23 Dec 2013 20:28:53 +0000 (20:28 +0000)]
Update bundle

10 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Mon, 23 Dec 2013 20:23:19 +0000 (20:23 +0000)]
Localisation updates from https://translatewiki.net.

10 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Fri, 20 Dec 2013 11:05:55 +0000 (11:05 +0000)]
Localisation updates from https://translatewiki.net.

10 years agoUpdate bundle
Tom Hughes [Thu, 19 Dec 2013 17:32:23 +0000 (17:32 +0000)]
Update bundle

10 years agoAdd details for Finland to copyright page
Tom Hughes [Thu, 19 Dec 2013 17:30:15 +0000 (17:30 +0000)]
Add details for Finland to copyright page

10 years agoAdd a close icon to the feature warning panel
Tom Hughes [Wed, 18 Dec 2013 00:14:29 +0000 (00:14 +0000)]
Add a close icon to the feature warning panel

Fixes #660

10 years agoStop the "Load" button overlaying text in the data browser warning
Tom Hughes [Tue, 17 Dec 2013 21:49:18 +0000 (21:49 +0000)]
Stop the "Load" button overlaying text in the data browser warning

Fixes #959

10 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Tue, 17 Dec 2013 09:01:42 +0000 (09:01 +0000)]
Localisation updates from https://translatewiki.net.

10 years agoRestore the duplicate search form in the header
Tom Hughes [Mon, 16 Dec 2013 09:39:54 +0000 (09:39 +0000)]
Restore the duplicate search form in the header

It turns out the duplicate form is used, for the the mobile view.

10 years agoChange "My Inbox" to "My Messages" in user menu
Tom Hughes [Sun, 15 Dec 2013 22:36:00 +0000 (22:36 +0000)]
Change "My Inbox" to "My Messages" in user menu

Fixes #661

10 years agoAdd an index on created_at to the note_comments table
Tom Hughes [Thu, 12 Dec 2013 12:49:13 +0000 (12:49 +0000)]
Add an index on created_at to the note_comments table

10 years agoFix typo in diary form html
Martin Raifer [Thu, 12 Dec 2013 09:40:29 +0000 (10:40 +0100)]
Fix typo in diary form html

10 years agoFix typo
Richard Fairhurst [Wed, 11 Dec 2013 16:12:15 +0000 (16:12 +0000)]
Fix typo

restauraunt => restaurant

10 years agoMake rich text edit controls use as much space as possible
Tom Hughes [Thu, 12 Dec 2013 08:55:26 +0000 (08:55 +0000)]
Make rich text edit controls use as much space as possible

Use CSS3 calculations to set the width of a rich text edit control
to the maximum possible while still allowing space for the help.

Also set the subject/title fields to the same width.

Fixes #657

10 years agoAllow word-breaks in changeset comments
Tom Hughes [Wed, 11 Dec 2013 17:56:22 +0000 (17:56 +0000)]
Allow word-breaks in changeset comments

10 years agoIssue all _osm_location cookies against the root path
Tom Hughes [Wed, 11 Dec 2013 00:19:49 +0000 (00:19 +0000)]
Issue all _osm_location cookies against the root path

To ensure that any old cookies issued against other paths are
removed we make sure to do a removeCookie call first without a
path being specified so that any cookie for the current page is
removed before we add a new one against the root.

Fixes #652

10 years agoUpdate jquery.cookie
Tom Hughes [Wed, 11 Dec 2013 00:12:39 +0000 (00:12 +0000)]
Update jquery.cookie

10 years agoRestore autofocusing of the search field
Tom Hughes [Tue, 10 Dec 2013 19:45:28 +0000 (19:45 +0000)]
Restore autofocusing of the search field

Use the HTML5 autofocus attribute, and focus on load for browsers
which don't support it.

Also change the removal of the "Where am I?" prompt to happen on
input rather than when the field is focused, so that it is properly
removed and restored when the field has been autofocused.

Fixes https://trac.openstreetmap.org/ticket/5065

10 years agoRemove duplicate (hidden) search box from header
Tom Hughes [Tue, 10 Dec 2013 18:52:49 +0000 (18:52 +0000)]
Remove duplicate (hidden) search box from header

10 years agoRefine zooming and panning for note and data layers
Aaron Lidman [Mon, 9 Dec 2013 16:24:51 +0000 (11:24 -0500)]
Refine zooming and panning for note and data layers

Fixes #629
Fixes #643

10 years agoRequire i18n-js 3.0.0.rc5.3 for proper dependency on configuration
Tom Hughes [Mon, 9 Dec 2013 10:18:31 +0000 (10:18 +0000)]
Require i18n-js 3.0.0.rc5.3 for proper dependency on configuration

10 years agoUpdate gitignore
Tom Hughes [Mon, 9 Dec 2013 10:04:12 +0000 (10:04 +0000)]
Update gitignore

10 years agoRemove export rule for translations which no longer exist
Tom Hughes [Mon, 9 Dec 2013 09:29:21 +0000 (09:29 +0000)]
Remove export rule for translations which no longer exist

10 years agoUpdate page title when switching to the front page view
Tom Hughes [Mon, 9 Dec 2013 09:28:13 +0000 (09:28 +0000)]
Update page title when switching to the front page view

Fixes https://trac.openstreetmap.org/ticket/5063

10 years agoDrop redundant monkey patches
Tom Hughes [Sun, 8 Dec 2013 22:49:31 +0000 (22:49 +0000)]
Drop redundant monkey patches

10 years agoAdd functions tests for the oauth_clients controller
Tom Hughes [Sun, 8 Dec 2013 21:54:21 +0000 (21:54 +0000)]
Add functions tests for the oauth_clients controller

10 years agoRemove unused controllers
Tom Hughes [Sun, 8 Dec 2013 19:15:23 +0000 (19:15 +0000)]
Remove unused controllers

10 years agoRemove stub test for non-existent controller
Tom Hughes [Sun, 8 Dec 2013 19:15:12 +0000 (19:15 +0000)]
Remove stub test for non-existent controller