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
Tom Hughes
311f7ddd6e
Factor out common code for looking up users
2012-03-21 22:22:33 +00:00
Tom Hughes
a9824dbc2e
Use one "no_such_user" view everywhere
2012-03-21 21:47:09 +00:00
Tom Hughes
38a610fd31
Add functional tests for the user_roles controller
2012-03-20 17:21:13 +00:00
Tom Hughes
5f33656c8d
Get rid of custom CSRF protection for user role changes
...
By restricting role changes to POST requests, which they should be
anyway, we get all the rails CSRF protection for free.
2012-03-20 17:21:13 +00:00
Tom Hughes
e1d873cde9
Add functional tests for user blocks
...
Also fixes various issues in the code discovered while writing
the tests, and adds some named routes for user blocks.
2012-03-19 11:26:02 +00:00
Tom Hughes
64747f7604
Set the user description to markdown formatting when it changes
2012-03-17 16:37:22 +00:00
Tom Hughes
561f2f694a
Add preview functionality to rich text controls
2012-03-17 16:36:57 +00:00
Tom Hughes
d29a9dad9d
Removed code for handling Osmrender export requests
2012-03-15 14:43:03 +00:00
Tom Hughes
3a1e7a67ac
Specify the username when redirecting to the OAuth client list
2012-03-14 13:57:28 +00:00