Commit graph

2483 commits

Author SHA1 Message Date
Tom Hughes
bd12ec7a8b Present links at the bottom of data browser pages in a consistent way 2012-07-11 14:42:02 +01:00
Andy Allan
2c67c079ac Don't show coordinates for deleted nodes 2012-07-11 14:42:01 +01:00
Tom Hughes
16beaef5cf Don't try and store a user record in the session
A user record that has come from the database can't be stored in
the session as it contains singletons that can't be serialised.
2012-06-30 19:17:04 +01:00
Tom Hughes
98445b2ab9 Replace use of Event with jQuery methods
Versions of OpenLayers before 2.12 provided a global Event object
but this has now been removed, so use jQuery methods instead.
2012-06-30 14:59:22 +01:00
Tom Hughes
8027dc85b1 Report the feature limit correctly in the data browser 2012-06-28 18:28:34 +01:00
Tom Hughes
c3500df1cf Make switching data browser to current map view work 2012-06-28 18:25:24 +01:00
Tom Hughes
b0453833b1 Replace use of Layer.GML with Layer.Vector 2012-06-28 18:18:42 +01:00
Tom Hughes
bad28a6478 Update OpenLayers to 2.12 2012-06-28 10:48:56 +01:00
Tom Hughes
344c5534ee Tidy up generation of UJS data attributes 2012-06-18 14:36:59 +01:00
Tom Hughes
13ef6a2df1 Remove use of deprecated :comment attribute on link_to and button_to 2012-06-18 11:20:09 +01:00
Tom Hughes
652e94485f Use browser detection to decide how many features to show
Modern browsers are quite happy showing far more than 100 features in
the data browser, so increase the limit to 2000 by default, but keep it
restricted to 500 for IE8 and 100 for older IEs.
2012-06-05 12:59:13 +01:00
Tom Hughes
2662e6fec2 Fix syntax error 2012-06-01 22:32:11 +01:00
Tom Hughes
490226ad6d Replace link_to_function with UJS based code 2012-06-01 19:34:22 +01:00
Tom Hughes
51a00550b4 Remove postscript export option as it doesn't really work 2012-05-30 20:24:53 +01:00
Tom Hughes
9813d9f1e4 Get all the tests passing under ruby 1.9 2012-05-27 13:51:25 +01:00
Tom Hughes
fc7ac5d086 Don't show deleted comments in a user's diary comment list 2012-05-15 18:58:13 +01:00
Tom Hughes
58559d50da Fixed diary entry and comment hiding for mass assignment protection 2012-05-13 18:44:54 +01:00
Tom Hughes
3e180e745c Use POST for hiding diary entries and comments 2012-05-13 18:43:44 +01:00
Enno Brehm
6a09f49e71 Implement API endpoint to query permissions. 2012-05-05 15:28:45 +01:00
Tom Hughes
6bafc93435 Error in a changeset feed is requested for a non-existent user 2012-05-01 20:40:59 +01:00
Tom Hughes
1e0bdda2f5 Show a delete button on the OAuth application view 2012-04-23 21:30:57 +01:00
Tom Hughes
53fe84fbef Delete tokens for an application when the application is deleted 2012-04-23 21:30:41 +01:00
Tom Hughes
053dc144f9 Rearrange the left menu 2012-04-23 21:02:55 +01:00
Tom MacWright
115d7ded8d Remove border for arrow 2012-04-23 20:59:28 +01:00
Tom Hughes
cca526d939 Stop the menu appearing when the anchor is disabled 2012-04-23 20:59:28 +01:00
Tom Hughes
e2cb47f1ae Fix some issues with the new edit menu code
Make sure that the arrow icons are always displayed, and that menus
are aligned in the requested way.
2012-04-23 20:59:27 +01:00
Tom MacWright
c45dbdae36 Rework the edit tab and it's associated drop down menu
This changes the behavior of the editing tabs in three places. Instead
of the current hovering behavior, you can click on the arrow and get the
drop-down menu. Any click outside that on the page will deactivate the
menu, following the UI paradigm of most desktop environments.

This also simplifies the javascript code significantly.
2012-04-23 20:59:26 +01:00
Tom MacWright
dd3b577bd5 This simply moves GPS Traces to the left bar
The left bar is a bit of a kludge of random items right now, but it's a
little better having the GPS Traces item there, because it now makes the
top bar only items that are actually related to the map state.
2012-04-23 20:59:15 +01:00
Tom Hughes
1a2f6c29c6 Update to use api.geonames.org instead of ws.geonames.org 2012-04-18 18:44:37 +01:00
Tom Hughes
ababece2cc Don't show "Browse Map Data" when we're not on the map view 2012-04-12 15:49:41 +01:00
Tom Hughes
c5152d1860 Improve styling of redaction view 2012-04-05 14:33:13 +01:00
Tom Hughes
6b159c165a No need for explicit h() escaping in new code 2012-04-05 14:09:19 +01:00
Tom Hughes
ec1667fc09 Prefer using _html locale keys to the raw function 2012-04-05 14:09:06 +01:00
Matt Amos
0093db5ffb Removed lookup of current element in calls to history 2012-04-05 13:53:53 +01:00
Matt Amos
c8971a545c Removed user checks from to_xml_node, as these should already be
handled at the controller level.
2012-04-05 13:53:48 +01:00
Matt Amos
59280377bf Fixed redaction attribute on old nodes and ways, added same
functionality to relations.
2012-04-05 13:53:44 +01:00
Matt Amos
ecf767ee4f Removed early return from printable name method 2012-04-05 13:53:41 +01:00
Matt Amos
0330e10943 Set defaults properly on redaction model, and remove unnecessary
guards around update.
2012-04-05 13:53:32 +01:00
Matt Amos
a4ded8bb67 Decided that restricting redacts to the user who created the
redaction is an unnecessary restriction.
2012-04-05 13:52:41 +01:00
Matt Amos
7953a883d0 Refactored common functionality from object history controllers 2012-04-05 13:52:10 +01:00
Matt Amos
1f9301e2e2 Better comments in application controller logic 2012-04-05 13:52:07 +01:00
Matt Amos
eca8f6e849 Used unredacted scope rather than explicit SQL 2012-04-05 13:52:04 +01:00
Matt Amos
7da8a5a1a8 Added redactions controller test and fixed a bug in the controller 2012-04-05 13:52:01 +01:00
Matt Amos
7c42552f16 Fixed fixture after adding link from redaction to user 2012-04-05 13:51:57 +01:00
Matt Amos
c8d3257fa5 Stop the data browser leaking details of redactions
Altered styling of redacted versions in changeset list so that they
appear deleted and don't leak tag information.
2012-04-05 13:50:22 +01:00
Matt Amos
ac0603d055 Fixed redaction link in browse/history page 2012-04-05 13:50:20 +01:00
Matt Amos
d50b0fb978 Fixed redaction link in redactions list 2012-04-05 13:50:19 +01:00
Matt Amos
851de28303 Added redactions resource 2012-04-05 13:50:15 +01:00
Matt Amos
9519f26241 Fixed AMF controller methods to hide redacted ways 2012-04-05 13:50:13 +01:00
Matt Amos
7c2ca3efb1 Fixed AMF controller methods to hide redacted nodes 2012-04-05 13:50:11 +01:00