Commit graph

3762 commits

Author SHA1 Message Date
Tom Hughes
8382181635 Tidy up the note controller
Go through most of the note controller, tidying things up, fixing
a few bugs, and making sure we have tests for everything.
2011-05-22 17:02:48 +01:00
Tom Hughes
08d6a0c910 Update tests for change in name from "map_bug" to "note" etc 2011-05-22 12:40:56 +01:00
Tom Hughes
ab2acea49b Tidy up the note_comment model a bit 2011-05-22 11:49:48 +01:00
Tom Hughes
33c0f15990 Tidy up the note model a bit 2011-05-22 11:33:49 +01:00
Tom Hughes
e3b8b89330 Mass rename of "bugs" as "notes" for increased user friendliness 2011-05-21 17:22:31 +01:00
Tom Hughes
bb490aca81 Merge branch 'master' into openstreetbugs
Conflicts:
	config/environment.rb
2011-05-21 11:21:01 +01:00
Mikel Maron
11b5fc0e95 Moved up search box to make it more visible 2011-05-21 11:00:53 +01:00
Tom Hughes
d9a8695fb1 Make sure unused layers are hidden
When parsing an old style layer configuration string, make sure any
layer which isn't active is marked as invisible so that we don't
include it when generating permalinks. Fixes #3773.
2011-05-21 10:44:52 +01:00
Tom Hughes
254fc8ebbc Add a C implementation of QuadTile.iterate_tiles_for_area 2011-05-18 00:39:04 +01:00
Tom Hughes
f4928d0e95 Rename a number of methods in the map_bugs controller 2011-05-18 00:36:02 +01:00
Tom Hughes
bb2c0c76ae Handle large bounding box changesets better
If the bounding box of a changeset is much larger than the map then
there seem to be problems with OL not rendering the feature correctly
so reduce the highlight to just be the extent of the map plus a small
margin in that case.
2011-05-18 00:36:02 +01:00
Tom Hughes
c4d0b049ee Make "all traces" and "your traces" links more consistent
Make sure we always show the "all traces" and "your traces" links
in the same place and that they don't accidentally inherit parameter
values that we don't really want.

Based on work by Andrzej Zaborowski <balrog@zabor.org>.
2011-05-18 00:36:02 +01:00
Tom Hughes
a2f08ccb12 Don't allow libxml 2.0.0 and later to be used 2011-05-18 00:36:02 +01:00
Tom Hughes
6cb69b5e4b Simplify URL scheme name matching in OAuth callback URLs a little 2011-05-18 00:36:02 +01:00
Mendhak
03eb6ce048 Allow any valid (per RFC 3986) scheme name in OAuth callback URLs
Changed the callback_url regex so that you can have custom schemes such
as myapp: or my-lovely-app: instead of just http and https. This should
help with mobile development where users can authorize with OSM in their
browser and are automatically redirected to the registered app.
2011-05-18 00:36:01 +01:00
Tom Hughes
ff174c1feb Fix a few minor issues in the print stylesheet
Stop the mobile header appearing, and set the size of the attribution.
2011-05-18 00:36:01 +01:00
Tom Hughes
c7bb260b4c User an RJS template for the javascript response 2011-05-18 00:36:01 +01:00
Tom Hughes
ae844f3260 Use the right author name for bugs in RSS format 2011-05-18 00:36:01 +01:00
Tom Hughes
f77a3c75be Add methods to get a bug's author details from the first comment 2011-05-18 00:36:01 +01:00
Tom Hughes
882700c5c8 Rename some columns and indexes in the bug tables 2011-05-18 00:36:00 +01:00
Tom Hughes
d2cf09f389 Make sure the ruby quadtile code give the same result as the C version 2011-05-18 00:36:00 +01:00
Shaun McDonald
741c624e67 Update the rss feed logo, to use the new logo. 2011-05-18 00:36:00 +01:00
Shaun McDonald
bab8ad3a7b Add the .DS_Store file to the gitignore (often added by default). 2011-05-18 00:35:59 +01:00
Tom Hughes
ff9fb4f9c2 Make the edit action default to z17
If an attempt is made to invoke an editor without specifying a zoom
level (as with the GPX edit links) then default to z17 instead of z14
to avoid trying to load too much data. Fixes #3728.
2011-05-18 00:35:59 +01:00
Tom Hughes
22bef89d1a Use quad tiling to select bugs in an area
Remove the _no_quadtile versiond of the selection routines and switch
to using the ordinary ones but with a (large) limit applied on the size
of the area to prevent us spending ages working out the list of tiles
to be selected.
2011-05-18 00:35:56 +01:00
Tom Hughes
7bba798990 Add a C implementation of QuadTile.iterate_tiles_for_area 2011-05-18 00:34:13 +01:00
Tom Hughes
d49e3b0f09 Use a pessimistic version constraint for libxml
It seems that rails doesn't handle gems wth multiple version
constraints right - it generates invalid install commands. So
we use a pessimistic constraint instead.
2011-05-17 21:35:59 +01:00
Tom Hughes
e120e59fc0 Handle large bounding box changesets better
If the bounding box of a changeset is much larger than the map then
there seem to be problems with OL not rendering the feature correctly
so reduce the highlight to just be the extent of the map plus a small
margin in that case.
2011-05-13 17:27:12 +01:00
Tom Hughes
db9420ba57 Make "all traces" and "your traces" links more consistent
Make sure we always show the "all traces" and "your traces" links
in the same place and that they don't accidentally inherit parameter
values that we don't really want.

Based on work by Andrzej Zaborowski <balrog@zabor.org>.
2011-05-13 10:06:16 +01:00
Tom Hughes
2c92bf895f Don't allow libxml 2.0.0 and later to be used 2011-05-11 23:06:19 +01:00
Tom Hughes
6d5c551a7c Simplify URL scheme name matching in OAuth callback URLs a little 2011-05-11 22:24:38 +01:00
Mendhak
9375b397fa Allow any valid (per RFC 3986) scheme name in OAuth callback URLs
Changed the callback_url regex so that you can have custom schemes such
as myapp: or my-lovely-app: instead of just http and https. This should
help with mobile development where users can authorize with OSM in their
browser and are automatically redirected to the registered app.
2011-05-11 22:23:06 +01:00
Tom Hughes
7e5bbd72eb Fix a few minor issues in the print stylesheet
Stop the mobile header appearing, and set the size of the attribution.
2011-05-10 12:24:16 +01:00
Tom Hughes
b42a28067d Make sure the ruby quadtile code give the same result as the C version 2011-05-08 15:18:03 +01:00
Tom Hughes
cbcbd7a4a4 Don't add a geographic condition when fetching an RSS feed with no bbox 2011-05-08 10:50:25 +01:00
Tom Hughes
8852454795 Rename association between map_bugs and map_bug_comment to comments 2011-05-08 00:22:32 +01:00
Shaun McDonald
e759079423 Update the rss feed logo, to use the new logo. 2011-05-07 23:42:13 +01:00
Shaun McDonald
16592c59f9 Add the .DS_Store file to the gitignore (often added by default). 2011-05-07 23:41:27 +01:00
Tom Hughes
54b42ec94d Place legacy routes after their replacements 2011-05-07 18:07:32 +01:00
Tom Hughes
63e9c4771a Always get the bug commenter name from the user if there is one 2011-05-07 17:47:05 +01:00
Tom Hughes
a2495c843e Detabify and tidy up some more of the bugs code 2011-05-07 17:36:57 +01:00
Tom Hughes
6aec21b5b8 Merge the gpx_bugs action into the main get_bugs action 2011-05-07 17:30:53 +01:00
Tom Hughes
cc311ff301 Get returning of bugs as GPX files working 2011-05-07 14:54:22 +01:00
Tom Hughes
560e41ebf9 Factor out common code into partials 2011-05-07 14:54:16 +01:00
Tom Hughes
4b0191befd Detabify and tidy up some more of the bugs code 2011-05-07 13:18:42 +01:00
Tom Hughes
4da9fd7b7e Switch back to using the local OL build as it seems to work fine 2011-05-07 13:05:43 +01:00
Tom Hughes
fb4d003ebe Tidy up some of the map bugs code 2011-05-07 13:05:39 +01:00
Tom Hughes
42e72d5591 Make the edit action default to z17
If an attempt is made to invoke an editor without specifying a zoom
level (as with the GPX edit links) then default to z17 instead of z14
to avoid trying to load too much data. Fixes #3728.
2011-05-07 00:05:49 +01:00
Tom Hughes
e7cd90f4b4 Merge branch 'master' into openstreetbugs 2011-05-06 22:56:47 +01:00
Tom Hughes
924d09229e Set a minimum height for the changeset list map 2011-05-06 16:47:43 +01:00