Commit graph

3705 commits

Author SHA1 Message Date
Tom Hughes
ccebb796ab Use api.geonames.org for reverse searches 2014-01-27 21:14:17 +00:00
Marco Antonio Frias Butrón
b01bda9238 Reserve enough space for the buttons at the bottom of the message list 2014-01-19 17:15:05 +00:00
Simon Poole
a24f52dec7 Add a landing page for "fix the map / report a problem" links 2014-01-19 13:48:27 +00:00
Toby Murray
c78853a97e Changing the note search limit from 9999 to 10000
The documentation says the limit is 10000 which seems like a
nicer round number anyway.
2014-01-19 13:40:11 +00:00
Tom Hughes
42b329ed82 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.
2014-01-17 19:25:58 +00:00
Tom Hughes
933b091330 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.
2014-01-15 21:41:16 +00:00
Tom Hughes
45618726ef Reenable the note search API
Add a postgress freetext index on the note comments, and enable
note searching using freetext matching.
2014-01-15 19:58:58 +00:00
Tom Hughes
a4561fe89b Preserve aspect ratio when scaling a user thumbnail
Fixes #675
2014-01-12 20:32:33 +00:00
Tom Hughes
67dbde0fde 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.
2014-01-12 19:28:01 +00:00
Tom Hughes
1e2b99a75b Disable notes search until it can be made scalable 2014-01-09 08:41:59 +00:00
Tom Hughes
41d02225d2 Add details for Finland to copyright page 2013-12-19 17:30:15 +00:00
Tom Hughes
fd0ed54b16 Add a close icon to the feature warning panel
Fixes #660
2013-12-18 00:14:29 +00:00
Tom Hughes
14cb332204 Stop the "Load" button overlaying text in the data browser warning
Fixes #959
2013-12-17 21:49:18 +00:00
Tom Hughes
dd12e1de63 Restore the duplicate search form in the header
It turns out the duplicate form is used, for the the mobile view.
2013-12-16 09:39:54 +00:00
Tom Hughes
6ff6b2f527 Change "My Inbox" to "My Messages" in user menu
Fixes #661
2013-12-15 22:41:57 +00:00
Martin Raifer
ea5183cd18 Fix typo in diary form html 2013-12-12 09:59:15 +00:00
Tom Hughes
92d7a9f3fd 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
2013-12-12 09:04:46 +00:00
Tom Hughes
32f86afbeb Allow word-breaks in changeset comments 2013-12-11 17:56:22 +00:00
Tom Hughes
19c77c3d24 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
2013-12-11 00:19:49 +00:00
Tom Hughes
9cc9a00988 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
2013-12-10 19:45:28 +00:00
Tom Hughes
c2c817ad1f Remove duplicate (hidden) search box from header 2013-12-10 18:52:49 +00:00
Aaron Lidman
a796c41881 Refine zooming and panning for note and data layers
Fixes #629
Fixes #643
2013-12-09 23:05:38 +00:00
Tom Hughes
24893c0936 Update page title when switching to the front page view
Fixes https://trac.openstreetmap.org/ticket/5063
2013-12-09 09:28:13 +00:00
Tom Hughes
b93f79f5a0 Add functions tests for the oauth_clients controller 2013-12-08 21:54:21 +00:00
Tom Hughes
67e7ced086 Remove unused controllers 2013-12-08 19:15:23 +00:00
Tom Hughes
5c53bb78ab Don't linkify comments in the changeset list
It's confusing to make links in comments active in the changeset list
as the rest of the comment is an active link to the changeset.

We do want to make them active in the changeset view however, so add
linkification to the comment there.

Fixes https://trac.openstreetmap.org/ticket/5061
2013-12-08 13:11:48 +00:00
Tom Hughes
5d6a47929c Don't show lat/lon for a deleted node, in case it is redacted
Fixes #642
2013-12-08 11:27:29 +00:00
Tom Hughes
4395ed6117 Fix untranslatable string 2013-12-08 11:02:43 +00:00
Tom Hughes
04ad0f6251 Do basic testing of all site controller methods 2013-12-07 17:21:17 +00:00
Tom Hughes
57b05b22e3 Revert "Remove unused file"
This reverts commit db41978f09.
2013-12-07 16:34:23 +00:00
Tom Hughes
4755096a72 Add link to per-user RSS feed on diary view page 2013-12-07 15:07:25 +00:00
Roland Olbricht
83b3db9974 Improve display of alternative download sources
Makes the list of alternative sources displayed all the time
rather than just when the bounding box is too large, and adds
the Overpass API to the list of sources.

Fixes #606
Fixed #635
2013-12-07 14:56:47 +00:00
Tom Hughes
db41978f09 Remove unused file 2013-12-07 14:34:13 +00:00
Tom Hughes
ab3c8a2d04 Put all feed discovery tags in the auto_discovery_link_tag section 2013-12-07 14:33:52 +00:00
Tom Hughes
512c02b364 Diary and trace feeds are RSS not Atom
Fixes #638
2013-12-07 14:31:59 +00:00
Tom Hughes
70be43201a Make title of "More" menu translatable 2013-12-07 11:24:44 +00:00
John Firebaugh
e05adbb917 Obey the location hash for edit URLs with objects
For a link like http://osm.org/edit?node=n#map=19/37.77683/-122.41459,
select the feature but also respect the map location.

This is the fix for iD. It appears P2 requires internal code
modifications.

Refs #620
2013-12-06 00:21:50 +00:00
Tom Hughes
66aac9ca87 Pass details of any selected object to remote editors 2013-12-06 00:19:35 +00:00
John Firebaugh
69aca22e6a Run unload method before pushing the new state
If running unload causes any hash changes, those should
not end up on the new URL.

Fixes #622
2013-12-05 20:17:24 +00:00
John Firebaugh
21407ede7e Ensure object parameter is removed from edit link when closing sidebar
Refs #620
2013-12-05 19:38:34 +00:00
John Firebaugh
a47d6c212d Restore marker for non-browse search results
Fixes #615
2013-12-05 19:10:48 +00:00
John Firebaugh
190d0fddfc Remove object parameter from share URL
Fixes #616
Fixes #624
2013-12-05 19:09:33 +00:00
Simon Legner
1d1f194d59 Extend API to allow changesets to be queried by ids
Make changesets queryable by specifying a list of ids, for example:

    /api/0.6/changesets?changesets=1,2,3

This condition may be combined with others in the normal way.
2013-12-05 18:06:35 +00:00
Tom Hughes
0f2958aed4 Report an error if a bogus limit value is passed to a notes API call 2013-12-05 17:57:12 +00:00
Tom Hughes
c866d28fd4 Test get_nodes_undelete methods of the OldWay model 2013-12-05 17:49:06 +00:00
Tom Hughes
6670de16a1 Make remote edit work when /edit is loaded
Change detection of the edit request to use the URL as the class
will not be set on the body now, and force the router to think we
actually loaded the normal view.
2013-12-05 10:40:21 +00:00
Tom Hughes
a51b4c869e Use the map layout when rendering index for a remote edit 2013-12-05 10:40:07 +00:00
Tom Hughes
7a35004389 Always use controller computed zoom when starting Potlatch
The value of mapParams.zoom may have come from the cookie and be
unrelated to the actual view the user came from with this click, so
just use the default zoom set by the controller.

Fixes #621.
2013-12-05 09:48:53 +00:00
Tom Hughes
7318ee4b93 The value of mapParams.object is always a node/way/relation now 2013-12-05 09:47:22 +00:00
Tom Hughes
8c029f8d79 Simplify a number of object model methods 2013-12-05 00:50:04 +00:00