Commit graph

84 commits

Author SHA1 Message Date
Tom Hughes
c372f6cc18 Set the OpenLayers locale when creating a map. 2009-06-04 20:37:59 +00:00
Tom Hughes
d24d7e3bf7 Go back to using to_sentence now that we are using rails 2.3 for the site. 2009-06-04 08:40:37 +00:00
Tom Hughes
a7219de757 Revert to using join instead of to_sentence for now as to_sentence is
broken in rails 2.2 when I18N is in use. We can go back to using
to_sentence once we have gone to rails 2.3 which fixes the problem.

Close #1906.
2009-06-02 23:40:46 +00:00
Tom Hughes
4c463ca6ba Pluralise related way text properly. 2009-06-02 17:00:43 +00:00
Shaun McDonald
698a49077c Add some more missing translations. Use .to_sentence instead of .join(', ') so that it is localisable and is more readable. 2009-06-02 16:07:52 +00:00
Shaun McDonald
87ee00a65e Made also part of translatable. Fixes #1897. 2009-06-02 07:14:55 +00:00
Tom Hughes
0a334787f1 Handle nodes which are in the same way multiple times. 2009-06-01 09:08:30 +00:00
Shaun McDonald
010dc87195 Fix typo, which meant that there was a missing translation when selecting an area in the databrowser data browser that was too large 2009-05-31 23:02:50 +00:00
Shaun McDonald
afce15dd86 Use a more rails like way for the new coordinates link, which also localizes the display of the lat lon numbers. Couple more translations. 2009-05-31 14:05:12 +00:00
Tom Hughes
ef313e7378 Fix warnings. 2009-05-31 12:06:57 +00:00
Tom Hughes
3d906fe8c6 Merge 15165:15373 from trunk. 2009-05-31 11:32:32 +00:00
Andy Allan
b22ae71613 Last of the databrowser i18n 2009-05-31 09:33:20 +00:00
Andy Allan
4e0cf1c5d3 Databrowser i18n. The stuff in start.rjs is a bit bizarre and might need a second pair of eyes 2009-05-30 17:45:31 +00:00
Andy Allan
8f8cbc4ae8 more databrowser i18n 2009-05-30 16:17:10 +00:00
Andy Allan
c48263e15c more databrowser i18n 2009-05-30 15:44:39 +00:00
Andy Allan
b5cb37bdee more translations, and this time with stuff in the locale file too 2009-05-30 14:58:35 +00:00
Andy Allan
a6f88faa20 First two bits of databrowser i18n 2009-05-30 13:46:59 +00:00
Andy Allan
cdbfc1e341 Override interestingTagsExclude in GML layer - improve databrowser in US by ignoring vanilla TIGER nodes 2009-05-22 14:20:22 +00:00
Tom Hughes
4d62aea5ec Destroy OL objects which use the dataLayer before we destroy the layer
or we will get errors which stop the rest of stopBrowse() executing.
2009-05-11 10:31:34 +00:00
Thomas Wood
c18d684dda Sort the tags for the databrowser output. 2009-05-04 22:42:07 +00:00
Thomas Wood
22292debda Data browser changes, make links more user friendly, displaying name tag where possible.
Changes to models ok'd (and suggested as temporary solution) by TomH
References #1777
2009-05-02 00:26:37 +00:00
Thomas Wood
38c8e3e37e Quick fix to reference relation rather than relation_member when linking to the relation, not sure when the bug was introduced. Tests still need to be written for the browse controller.
Closes #1764
2009-04-27 21:26:23 +00:00
Frederik Ramm
5c783cd0ee there is not HTML attribute named "padding". either use "cellpadding" (this patch), or use the CSS attribute (i.e. style="padding: 0px"). 2009-04-21 23:55:02 +00:00
Thomas Wood
fddf6fb529 Fix bbox display again, how do we keep mixing our lons and lats? 2009-04-21 21:30:37 +00:00
Thomas Wood
e5076f332a Fix bug introduced in r14610 (.downcase in wrong place)
No need to sanitise type of relation member, since will only be a Node, Way, or Relation and not user-provided.
2009-04-20 19:13:52 +00:00
Shaun McDonald
68360190d5 fix bug in the case of the action in the data browser when linking to relation members 2009-04-20 17:28:01 +00:00
Thomas Wood
c64ebb9139 Add has_valid_bbox? method to Changeset model to tidy checking for bbox, and fix edge case where no bbox would cause changeset browsing to die. 2009-04-09 11:18:31 +00:00
Tom Hughes
1262b376ef Add a mini map to the changeset view in the data browser. 2009-04-08 23:44:43 +00:00
Tom Hughes
b02c873c0e Eliminate duplication of tag printing logic. 2009-04-08 23:19:41 +00:00
Harry Wood
fdd5d2d779 new support for box=yes param on the homepage, and then link to this from various changeset display 2009-04-08 16:55:22 +00:00
Tom Hughes
9b72debd9a Fix formatting of changeset details. 2009-04-08 13:35:35 +00:00
Harry Wood
afe8dd51ec Add 'history' tab + Move 'recent changes' changeset list to re-use the same _changeset.rhtml partial 2009-03-23 16:39:59 +00:00
Tom Hughes
c8ee135104 Merge 12304:14009 from trunk. 2009-03-08 13:02:37 +00:00
Thomas Wood
62b6d15967 Make browse controller index show recently closed changesets, rather than recently changed nodes. 2008-12-23 15:47:06 +00:00
Tom Hughes
018c861630 Align table heading properly. Closes #1405. 2008-12-15 17:45:45 +00:00
Shaun McDonald
2e41c35479 Adding the ability to see the min/max lat/lon for a changeset in the data browser. Adding file for the nice message that should show when a user is missing in the message controller. 2008-12-08 15:30:19 +00:00
Shaun McDonald
073c866032 adding link to download the full changeset xml 2008-12-02 18:44:50 +00:00
Shaun McDonald
2ed84e26cd Adding pagination to the changesets, thus allowing you to browe large changesets, without MySQL complaining about memory. Probably needs some fine tuning. You currently can only page one of nodes, ways, and relations, without manually setting the relations. Fixing deprection notice for the classic_pagination plugin. 2008-11-27 17:06:43 +00:00
Shaun McDonald
e2c0e51e45 Closes #1350 through updating amf_controller to use the newer closed_at method of determining whether a changeset is closed. Richard please check the rest of the amf controller for more things that may reference the open field that is no longer available. Use is_open? to determine if a changeset is open. Fix indentation in amf controller. Fix minor bug in the links to changesets in the data brower. 2008-11-20 21:23:44 +00:00
Shaun McDonald
bf29550db8 Resyncing from head 10895:11795 2008-11-08 11:52:58 +00:00
Shaun McDonald
6df7fdbb9e Adding new browse controller test, which is mostly stubs just now. Also adding the version number of the recently changed nodes in the data browser. 2008-10-21 16:18:18 +00:00
Shaun McDonald
e7147d0d7a more work on the data browser to show the changesets. Also showing the version number. Would be good to have an additional route for showing a specific version of the node/way/relation from the changeset. 2008-10-14 18:33:03 +00:00
Shaun McDonald
2c16177174 adding changeset stuff for the data browser 2008-10-13 20:48:58 +00:00
Shaun McDonald
9e1946b283 now you will actually save the changeset on updating ways. Showing the changeset in the data browser detail. 2008-10-13 17:05:52 +00:00
Shaun McDonald
734cbb967d fixing the data browser to be able to cope with the changeset change. changeset browsing still needs to be implemented. Also giving a nice error message for 404 not found instead of rendering nothing. 2008-10-13 12:08:26 +00:00
Tom Hughes
63c2d9a529 Make data browser work with OpenLayers 2.7. 2008-10-08 23:38:45 +00:00
Tom Hughes
36203ebe26 Don't hardcode the API version in the data browser. 2008-07-04 18:15:42 +00:00
Tom Hughes
08d1f5aaab Quote default when used as a key in a hash as it is a keyword... 2008-06-28 09:59:47 +00:00
Tom Hughes
9a7db5d63b Refactor to remove some code duplication. 2008-06-26 23:01:55 +00:00
Tom Hughes
398d5fa329 Improve the layout of the object browser views. 2008-06-24 16:44:45 +00:00