Matt Amos
0d5be22cb5
Merging 16820:16891 from trunk.
2009-08-06 16:24:39 +00:00
Tom Hughes
e477f68a6c
Render the links using partial so we can do the appropriate rendering
...
for HTML and Atom versions and hopefully get the escaping right in the
feed. Closes #2135 .
2009-08-05 23:39:24 +00:00
Matt Amos
05e2120273
Merged 16488:16743 from trunk.
2009-07-31 10:42:06 +00:00
Tom Hughes
4afacf3410
Fix the changeset feed to put the description in as raw HTML so we
...
can include links instead of having to create a separate link free
version of it.
2009-07-30 11:25:33 +00:00
Ævar Arnfjörð Bjarmason
b06b6c2ce9
Atom readers (Firefox/Liferea) don't like when we embed XHTML anchors
...
in the description. So adjust the code that creates the changeset
browser title/description to emit a XHTML and plaintext version with
the HTML and Atom output can use, respectively.
Also:
* Split up @title into @title and @heading as elsewhere
* Turn the username on the user / user+bbox browser into a link to the userpage
* Say "Changesets" instead of "Recent changes". Unlike Wikipedia the changes on OSM aren't guaranteed to be recent, they're just going to be the latest
2009-07-29 18:44:51 +00:00
Tom Hughes
64fb530581
Merge 16110:16487 from trunk.
2009-07-14 08:03:24 +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
Tom Hughes
edaddbedae
Merge 15722:15806 from head and adjust new views to rails 2 style names.
2009-06-09 21:50:37 +00:00
Tom Hughes
3578506797
Add a title to the changeset lists. Closes #1938 .
2009-06-08 20:10:09 +00:00
Tom Hughes
9df991e343
Marge all the changeset list methods together into one.
2009-06-07 16:59:58 +00:00
Tom Hughes
396d8ce313
Use some rails magic to avoid having to duplicate all the changeset
...
list controller methods for the RSS feeds.
2009-06-07 11:24:11 +00:00
Tom Hughes
e1cb17faa6
Back out the changeset RSS stuff from the head for now.
2009-06-07 08:03:07 +00:00
Ævar Arnfjörð Bjarmason
e9ab43cd30
The list_bbox_rss won't work at all without a bbox. Thow an error when it's not supplied
2009-06-07 03:06:09 +00:00
Ævar Arnfjörð Bjarmason
0d16fd57d4
Add RSS feed for global recent changes & changes within a bbox. Solves #1737
...
This has so much copy/paste code it hurts, the new list*_rss methods
are just copies of the old list* methods, but see #1927 for that.
2009-06-07 02:39:45 +00:00
Ævar Arnfjörð Bjarmason
011237c2c5
Implement /user/$user/edits/rss, partially solves #1737
2009-06-07 01:32:19 +00:00
Tom Hughes
2f3e23f6eb
Move to version 2.3.2 of rails.
2009-06-04 08:08:24 +00:00
Ævar Arnfjörð Bjarmason
e70e2dbe9f
Change /index.php/ in wiki.openstreetmap.org links to /wiki/. This looks nicer
2009-06-02 12:23:37 +00:00
Tom Hughes
0e96027a20
Sort out storage and use of user preferred languages.
2009-05-31 14:55:45 +00:00
Shaun McDonald
035254c5fb
Might be useful to set the locale everywhere we need the web, rather than just the diary entries.
2009-05-29 14:11:12 +00:00
Matt Amos
3d0ca940d2
Using an around_handler for catching and rendering errors in most of the API controller methods. This simplifies the code and makes errors and error messages a bit more consistent. Also added a utility method for checking the HTTP method.
2009-05-20 17:39:59 +00:00
Tom Hughes
6f0b3ccbcd
Don't log the contents of the changeset.
2009-04-28 08:59:33 +00:00
Thomas Wood
d8aacff595
Slight performance improvement (a reported 2s) by skipping db query if no bbox is passed in on /history
...
Thanks apmon for the report.
2009-04-21 18:04:43 +00:00
Tom Hughes
4eafa04ff8
Reject uploads unless the user has made their edits pubic.
2009-04-16 21:50:20 +00:00
Tom Hughes
141a5692eb
Fixed to work with merged changes to api availability checks.
2009-04-16 21:38:29 +00:00
Thomas Wood
6442208841
Add exceptions for remaing cases where XML::Parser.string is used, to catch for empty strings.
...
See also r14241
2009-04-09 22:37:43 +00:00
Matt Amos
afcb345014
Moved a bunch of time functions into UTC. Fixes bugs which we only see for 4 hours a year.
2009-03-29 01:31:04 +00:00
Harry Wood
0f3e5a28c0
show a 'no bbox specified' message for the moment at least. Due to inconsistent location detecting across tabs, the history tab often gets nil bbox (Need to fix for all tabs) + other history tab tweaks
2009-03-24 11:23:56 +00:00
Thomas Wood
8fb97a3337
Rather than referring how to view a bbox history, just redirect to the global history.
2009-03-23 19:56:01 +00:00
Thomas Wood
7d3a5899c9
More fixes to the changeset viewer, including logged-in-ness on per-user edit lists, fix XSS potential on usernames here, and general tidyups.
2009-03-23 19:40:33 +00:00
Thomas Wood
677f391ec1
Fix various auth bugs with the changeset listing stuff, catch exception (but not yet handled well) for when edits not public.
2009-03-23 18:23:37 +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
Matt Amos
76708eefcf
Fixed bug in changeset closing and querying where the number of elements exceeded the maximum. Added a fixture for this.
2009-02-07 17:45:27 +00:00
Thomas Wood
747d6f1d11
Revert last commit - too many test failures
2008-12-31 16:43:44 +00:00
Thomas Wood
898beb7b7f
DateTime => Time for consistency in changeset code, ok by shaun.
2008-12-31 16:33:02 +00:00
Richard Fairhurst
9fa1f4b013
session management on only for :list
2008-12-23 13:09:36 +00:00
Richard Fairhurst
cc90867183
view changesets by user
2008-12-23 13:06:07 +00:00
Shaun McDonald
d9c6758ee6
turning the session off for the changeset controller, to come in line with the other api controllers
2008-12-04 14:36:21 +00:00
Shaun McDonald
073c866032
adding link to download the full changeset xml
2008-12-02 18:44:50 +00:00
Matt Amos
1ffb5c1502
Moved changeset consistency checks to library code.
2008-11-26 12:56:42 +00:00
Shaun McDonald
a4e5e8437f
Renaming the include action to expand_bbox in the changeset controller.
2008-11-26 11:36:10 +00:00
Shaun McDonald
8348493ccb
Some improvements to the error messages that are returned by the api.
2008-11-25 18:59:35 +00:00
Matt Amos
783528830a
Fixed bug in changeset idle timeout. Fixed another with a spurious require.
2008-11-21 12:53:09 +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
Matt Amos
a90be5e69a
Migration to add close-time to changesets. This replaces the boolean 'open' attribute. Added checks to ensure that the maximum lifetime and number of changes in a changeset are enforced. Added some tests.
2008-11-17 19:00:01 +00:00
Matt Amos
495bd7f1f0
Made user input parsing more robust in changeset query method. Added tests.
2008-11-17 15:30:46 +00:00
Matt Amos
28839fd150
Fixed some bugs in changeset query code. Added more test cases.
2008-11-17 14:32:15 +00:00
Matt Amos
519d402cb2
Added tests for changeset close method.
2008-11-17 11:59:42 +00:00
Matt Amos
98b15bef45
Implemented changeset tags updating via the update method.
2008-11-17 11:45:50 +00:00
Frederik Ramm
c02c516047
fix SCALE, make changeset GET use floats
2008-11-09 15:52:10 +00:00
Frederik Ramm
9263c5500c
require auth for close
2008-11-09 13:44:08 +00:00