John Firebaugh
60becd1050
Remove @midnode assign
...
It does not appear to be necessary and no other edit links
make use of it. SiteController#edit will calculate a precise
center coordinate.
2012-09-30 12:19:15 +01:00
Tom Hughes
3ce4de1295
Add a /api/0.6/user/NNNN call to the API
2012-09-24 18:44:11 +01:00
John Firebaugh
02bdc8f1ad
Don't expose lat/lon of private traces
2012-09-21 15:29:02 -07:00
John Firebaugh
20e5f756be
Support the same edit params for Potlatch 1 and 2
...
Trac ticket 4587
2012-09-21 15:16:56 -07:00
Tom Hughes
1a0728ec7b
Remove unused namefinder support from the geocoder backend
2012-09-18 11:54:11 +01:00
John Firebaugh
0509fc8d12
Move param-based map configuration to client
...
This prepares us for hash-based permalinks (#81 ) and removes
the duplication between index.html.erb and SiteController#edit.
2012-09-18 08:56:45 +01:00
Gnonthgol
fcddf920a3
Remove the "We are changing the license" flash on the login page
2012-09-14 15:24:36 +01:00
John Firebaugh
8ec415b060
Use a param to trigger export rather than a separate action
...
In site/_resize.html.erb and site/_search.html.erb, a
params[:action] conditional is used to include code that
should only run on the index action -- but it should be run
on the export action too. Cleanest fix is to eliminate that
action entirely.
2012-09-07 09:27:59 +01:00
Tom Hughes
021a17b79a
Mark a message as read when a user replies via the web
2012-09-03 08:40:17 +01:00
Tom Hughes
367303f6d8
Move a chunk of non-markup ruby code from a view to the controller
2012-08-28 20:39:18 +01:00
Tom Hughes
3d874a5d61
Use start.html.erb views instead of _sidebar.html.erb partials
2012-08-27 21:28:41 +01:00
John Firebaugh
17b23b0756
Extract browse.js static asset
2012-08-27 20:23:24 +01:00
John Firebaugh
2feff4244f
Reduce interpolation in browse/start.js.erb
2012-08-27 18:00:48 +01:00
John Firebaugh
cc4f133e64
Extract export.js static asset
2012-08-27 18:00:13 +01:00
Tom Hughes
573991e5a9
Fixup make_friend and remove_friend properly
...
Requests using POST are now actioned immediately, while requests
using GET present a confirmation page.
2012-08-15 20:13:14 +01:00
Tom Hughes
fbabed694b
Improve blocks on/by links on user pages
...
All block related links are now only shown if the user has given
or received any blocks, and include a count of active blocks.
2012-08-10 08:27:37 +01:00
Tom Hughes
703c1a83e6
Show the correct reconfirm link for OpenID login attempts
2012-07-27 21:30:06 +01:00
Tom Hughes
d38e476fa6
OpenID attributes returned via AX seem to be arrays now
2012-07-27 21:27:45 +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
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
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
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
1a2f6c29c6
Update to use api.geonames.org instead of ws.geonames.org
2012-04-18 18:44:37 +01:00
Matt Amos
0093db5ffb
Removed lookup of current element in calls to history
2012-04-05 13:53:53 +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
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
Matt Amos
e01a309970
Added test for changeset/download hiding redacted elements
2012-04-05 13:49:53 +01:00
Matt Amos
8bfb5cae8a
Added relation redaction logic, same as node and way logic, plus tests
2012-04-05 13:49:46 +01:00
Matt Amos
990f3eba40
Altered old_way stuff to be Railsy like old_node is now
2012-04-05 13:49:43 +01:00
Kai Krueger
72e59b49fa
Copy the redaction code from nodes to ways
2012-04-05 13:49:39 +01:00
Kai Krueger
7d41b926cf
Expose redactions through the node history API calls
...
Add the show_redactions=true parameter to the old_node_controller
and add a redacted attribute in node XML output.
2012-04-05 13:48:36 +01:00
Matt Amos
67182f824e
Fixing review comments
...
Added scoping for unredacted items, cleaned up authorization and
railsified old_node_controller.
2012-04-05 13:46:40 +01:00
Matt Amos
67dd9e4c9d
Adding first cut of Redactions support
...
Redactions support hiding historical versions of elements and
collecting meta-data about that action together.
2012-04-05 13:46:36 +01:00
Tom Hughes
d7d317f694
Mark yet more methods as needing write access to the database
2012-04-02 19:08:47 +01:00
Tom Hughes
151626d019
We no longer need to disable sessions when the database is offline
2012-04-02 18:42:14 +01:00
Tom Hughes
e1ce75ec49
Mark some extra methods as needing write access to the database
2012-04-02 18:40:05 +01:00
Tom Hughes
987c52f53e
Only require a readable database for login, not a writable one
2012-03-28 10:08:38 +01:00
Tom Hughes
eaad3611b8
Add functional tests for messages
...
Also fixes various issues in the code discovered while writing
the tests, and adds some named routes for messages.
2012-03-22 23:14:29 +00:00
Tom Hughes
5270a07bc5
Handle change from @to_user to @this_user for new message action
2012-03-22 19:47:24 +00:00