Tom Hughes
cb6eb65466
Use binary mode for trace files
...
We don't want to try and do any enoding conversions (or indeed any
newline conversions) on uploaded trace files.
2012-11-04 14:41:01 +00:00
Tom Hughes
a9824dbc2e
Use one "no_such_user" view everywhere
2012-03-21 21:47:09 +00:00
Tom Hughes
58d889436f
Fix various routing and route generation errors
2012-03-09 23:15:39 +00:00
Tom Hughes
6391ea5a7a
Remove method tests that are now enforced by the routes
2012-03-09 20:19:55 +00:00
Tom Hughes
1340fca8f1
Turn on mass assignment protection
...
Require any attribute that is going to be mass assigned to be
whitelisted, and whitelist those attributes which need it
2012-03-06 08:54:45 +00:00
Tom Hughes
346b097d85
Fix bad database query for RSS feeds of trace file tags
2012-02-19 11:48:33 +00:00
Tom Hughes
a16b45eb6a
Add convenience methods to make ACL use simpler
2012-02-08 22:38:02 +00:00
Tom Hughes
cd43529cc8
Add support for domain based ACLs
2012-02-08 21:40:21 +00:00
Tom Hughes
8ba74c581d
Add an ACL check to allow trace downloads to be blocked
2012-01-17 17:43:32 +00:00
Tom Hughes
071c3581e9
Disable CSRF token verification for API methods
2011-11-14 09:42:55 +00:00
Tom Hughes
3227f40193
Make more use of named scopes
2011-11-14 09:42:51 +00:00
Tom Hughes
8ae5d94b2f
Update some more queries to use AREL in place of deprecated methods
2011-11-14 09:42:51 +00:00
Tom Hughes
7f556f94f1
Temporary fix for postgres enums pending rails 3.0.4
2011-11-14 09:42:46 +00:00
Tom Hughes
226c41be69
Update ActiveRecord queries to use arel
2011-11-14 09:42:44 +00:00
Tom Hughes
59a49a6ef5
Fix problems with database offline mode
2011-06-23 08:30:44 +01:00
Tom Hughes
71f1554212
Make trace API a proper CRUD API like other object types
2010-10-11 23:09:27 +01:00
Tom Hughes
39a014075a
Revert "We can cache the trace list for logged in users now"
...
This reverts commit f30dcd1a62
.
2010-09-01 13:47:06 +01:00
Tom Hughes
ba70c100f1
Set the default trace visibility on the upload form
2010-08-24 21:32:07 +01:00
Tom Hughes
2ce394118d
Allow uncompressed GPX traces to be fetched from the API
2010-08-24 21:21:02 +01:00
Tom Hughes
c5b35406a6
More fixed to trace redirection
...
Redirect to list on a delete, not view. Also reorder the routes so
the more specific ones are first.
2010-08-06 10:31:20 +01:00
Tom Hughes
1ba40521af
Really fix the redirect on trace deletion
2010-08-06 09:59:11 +01:00
Tom Hughes
289ab7c19d
Fix redirect on deleting a trace
2010-08-06 09:56:49 +01:00
Tom Hughes
cf9cfd10a1
Fix redirect after a trace is uploaded
2010-08-06 09:53:53 +01:00
Tom Hughes
f07819d81a
Rework application configuration
...
Use a preinitializer to load the settings from application.yml so
that they are available as early as possible. All settings can also
be overridden using environment variables.
The ad-hoc settins in environment.rb are then moved to this new
system so we have one consistent location for settings.
2010-08-04 22:06:05 +01:00
Tom Hughes
f30dcd1a62
We can cache the trace list for logged in users now
2010-07-22 20:47:35 +01:00
Tom Hughes
b551fef0b7
Present "too many pending traces" message as a warning box
2010-07-22 20:47:34 +01:00
Tom Hughes
5a2ffa227c
Convert trace views to use CSS based user specific components
2010-07-22 20:47:29 +01:00
Tom Hughes
f973bee52b
Make database offline work in production
2010-06-15 10:40:47 +01:00
Tom Hughes
3026da0cb0
Fix user visibility check
2010-05-06 22:11:38 +01:00
Tom Hughes
ba1ecf61f3
Put the correct icon URLs in the RSS feed for traces.
2010-02-26 15:11:40 +00:00
Tom Hughes
62e7006a21
Rework the pagination of the trace list to avoid having to count
...
the total number of matching records/pages.
2010-01-14 00:35:09 +00:00
Tom Hughes
f5777a881f
Don't cache the trace list for logged in users.
2010-01-11 00:16:21 +00:00
Tom Hughes
e29e49dc7c
Add some caching for trace views.
2010-01-10 17:44:57 +00:00
Tom Hughes
e53b34b80a
Make traces/mine redirect to the user's traces page instead of rendering
...
it itself. Also make sure the traces page for a user includes the upload
form if the requestor is logged in as that user.
2010-01-10 09:16:18 +00:00
Shaun McDonald
1df4ad819c
Rather than just say public or private for each GPS trace in the list, instead state the new permission levels. Green colour means that it will be shown in the trace list to other users. Red means that other users won't see the trace in the list. Have added two new translations for the other trace permissions.
2009-12-31 00:10:10 +00:00
Tom Hughes
0f5646d7f0
Add ability to take GPX storage offline.
2009-12-12 13:06:56 +00:00
Tom Hughes
e23744bd8d
Add :warning and :error flash messages which can be styled separately to
...
the existing :notice messages.
Also reviewd all existing flash messages and changed them to be errors or
warnings when appropriate and checked that those which are not followed by
a redirect are done as flash.now[] instead of flash[].
2009-11-01 13:07:46 +00:00
Tom Hughes
b8afd4fbf3
Fix comment typo.
2009-09-24 23:27:45 +00:00
Tom Hughes
2297dc9074
Wrap GPX API calls with the API error handler, and make sure the create
...
method throws on error so it can be trapped and reported. Closes #2310 .
2009-09-24 23:15:35 +00:00
Tom Hughes
06a17b6bc6
Treat an explicit public=0 argument as meaning private.
2009-09-12 16:46:25 +00:00
Tom Hughes
543e8c5503
Fix backwards compatibility code to handle an old style public
...
attribute correctly. Closes #2242 .
2009-08-31 23:28:51 +00:00
Tom Hughes
d227589a63
Merge oauth branch at r17138 to trunk.
2009-08-18 20:01:56 +00:00
Tom Hughes
9617ca2acc
Identifiable traces should be trated as private in the trace list.
2009-08-13 17:59:38 +00:00
Tom Hughes
e8a2a15ea1
The "public" field no longer exists in gpx_files.
2009-08-13 17:57:14 +00:00
Tom Hughes
908a6ef409
Merge 16891:17044 from trunk.
2009-08-13 17:18:08 +00:00
Tom Hughes
565171486f
Add extra visibility options for GPS traces, and enhance the API call
...
that returns trace data to return more information if the owner of the
trace has allowed it. Based on a patch from Matt Amos.
2009-08-13 17:06:11 +00:00
Tom Hughes
f4571eeb7c
Revert r16046.
...
DO NOT COMMIT MAJOR ENHANCEMENTS TO TRUNK WITHOUT TALKING TO ME FIRST.
2009-06-23 02:48:38 +00:00
Ævar Arnfjörð Bjarmason
dfadcc797c
Fixed up the <title>/<h2> mess in trace/edit and trace/view
...
* @title was never set on trace editing, and thus <h2></h2> was produced
* Changed split 'trace.view.viewing_trace' into 'trace.view.title' and 'trace.view.heading'
* Introduced corresponding 'trace.edit.title' and 'trace.edit.heading'
2009-06-22 23:43:53 +00:00
Matt Amos
b8f6dbd403
Adding initial version of the OAuth token authentication method. This adds basic OAuth support for registering apps, getting and revoking keys, etc... The tokens come with 6 separate permissions bits; read/write user preferences, write diaries, write API and read/write GPS traces. Needs more tests.
2009-06-22 16:54:37 +00:00
Ævar Arnfjörð Bjarmason
db51d7f3dd
Added & cleaned up messages relating to a given user not existing
...
The following pages now have a <title> that can be set in localizations:
* /user/USER_DOES_NOT_EXIST
* /user/USER_DOES_NOT_EXIST/diary
* /user/USER_DOES_NOT_EXIST/traces
* /message/*/ID_DOES_NOT_EXIST
In addition I've cleaned up the i18n message keys of all the
''no_such_user.rhtml'' pages involved. They now all use
title/heading/body for the <title>, <h2> and <p> respectively. And the
message key {{user}} instead of {{name}}.
2009-06-06 13:15:53 +00:00