Tom Hughes
57a05a40fc
Make diary comment creation work again.
2009-11-15 11:00:54 +00:00
Tom Hughes
634565c5d3
Add support for logical deletion of diary entries and comments.
2009-11-14 15:57:08 +00:00
Tom Hughes
a6c9fed920
More tweaking.
2009-11-11 14:40:39 +00:00
Tom Hughes
64e0c0794b
Tweak nominatim results a bit.
2009-11-11 14:37:31 +00:00
Tom Hughes
c6eb4d5856
Make nominatim live.
2009-11-11 14:22:21 +00:00
Tom Hughes
b3d37581ad
Send the language string to nominatim.
2009-11-10 15:05:23 +00:00
Tom Hughes
e19c04c7a7
Pass the viewbox to nominatim when possible.
2009-11-10 14:37:46 +00:00
Tom Hughes
7dd06b4f88
Fix a few nominatim issues.
2009-11-10 13:35:58 +00:00
Tom Hughes
ea2652a211
Rename twain geocoder to nominatim.
2009-11-09 09:06:52 +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
2541ad0f09
We don't need the @notice hack - we can use flash.now to achieve the same thing.
2009-11-01 12:32:31 +00:00
Tom Hughes
81d47fe50d
Limit the rate at which messages can be sent.
2009-10-31 00:24:36 +00:00
Tom Hughes
639a994c9b
Experimental support for reverse geocoding using the new geocoder.
2009-10-30 11:12:55 +00:00
Richard Fairhurst
dd9999dc43
Move render :text to write out each result as it's received, rather than assembling them into a big array and writing this at the end. Theoretically this should permit streaming, but Rails appears not to be that clever. Nonetheless it reduces memory usage when assembling a big bunch of getways and that has to be worthwhile
2009-10-20 22:14:32 +00:00
Tom Hughes
17e0753962
Use bounding box information to zoom to search results when possible.
2009-10-15 09:27:21 +00:00
Ævar Arnfjörð Bjarmason
e0eb2b79b7
[18163] commited by me yesterday (and reverted in [18165]) was
...
broken. I didn't restart rails when testing it because I thought lib/
was auto-refreshed as well and that:
ruby -e 'x = []; x[0]["foo"] = "bar"'
Would work and autovify like it does in Perl. But no, you have to do:
ruby -e 'x = [{}]; x[0]["foo"] = "bar"'
This commit is equivalent to [18163] aside from that fix to lib/potlatch.rb
2009-10-15 08:21:57 +00:00
Tom Hughes
d0c63b6d5d
Revert r18163 as it is completely broken.
2009-10-15 07:46:54 +00:00
Tom Hughes
a35b194330
Attempt to unbreak Potlatch.
2009-10-15 07:40:47 +00:00
Ævar Arnfjörð Bjarmason
cc9a9ee399
Make the preset list at the bottom of the screen (Airport, Bus stop,
...
...) translatable
2009-10-14 23:42:09 +00:00
Tom Hughes
4a05c9a8f6
Add experimental support (disabled by default) for new geocoder.
2009-10-14 14:42:09 +00:00
Ævar Arnfjörð Bjarmason
9bdade37af
Add the language the user is using to Potlatch's created_by string. Like JOSM
2009-10-12 15:52:51 +00:00
Matt Amos
16b79f9964
Added a :display_name option for the changesets query code.
2009-10-12 10:12:12 +00:00
Tom Hughes
a8cc053bcc
Add some administrator only actions to the user page.
2009-10-12 08:00:59 +00:00
Tom Hughes
0189bce496
Test that the user has cookies enabled at critical points where we
...
are about to require them and warn the user if they are not enabled.
2009-10-09 08:47:47 +00:00
Matt Amos
3429f016c2
Adding blocking to user auth bits of amf_controller. Or, at least, the bits I could find.
2009-10-02 10:49:03 +00:00
Matt Amos
1009788043
Fix wrong comment.
2009-10-02 10:46:19 +00:00
Tom Hughes
54649a39a0
Correct comment.
2009-10-01 20:22:52 +00:00
Matt Amos
1e3b3c1f10
Refactored user_role and controller. Now much more DRY.
2009-10-01 17:15:34 +00:00
Matt Amos
77851bac7b
Added better messages and error handling in a couple of places. Added integration checks to ensure that the blocking is actually working. Tests FTW.
2009-09-30 17:39:42 +00:00
Matt Amos
95c3d640a4
Tried to DRY the user_blocks controller. Moved the configuration of the blocking periods into application.yml.
2009-09-30 15:44:29 +00:00
Matt Amos
ca06b3c7b1
New migration to add better auditing to user_roles and better column names there and on user_blocks. Added a helper for displaying block status messages.
2009-09-29 16:44:03 +00:00
Matt Amos
09c5740b5b
Merging 17824:17845 from trunk to blocking branch.
2009-09-29 10:23:31 +00:00
Thomas Wood
ec26e06706
5 character patch to only output duplicated nodes once in a way/full call
...
Unit tests not run - problems on this system
Fixes #2327
2009-09-29 02:55:35 +00:00
Matt Amos
30d5e783e4
Added a confirmation step to the process of granting and revoking user roles.
2009-09-28 17:35:39 +00:00
Matt Amos
daa2496024
First version of blocking feature. Allows both time-based (for map protection) and notice-based (for education) blocks on users. Also introduces user roles and a simple UI for displaying and administering these.
2009-09-28 16:01:00 +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
Ævar Arnfjörð Bjarmason
9b7e39dc49
I moved Potlatch's locales but didn't update this, which broke all i18n
2009-09-23 23:34:43 +00:00
Ævar Arnfjörð Bjarmason
5a76b08868
oops, removing debugging code
2009-09-23 17:36:51 +00:00
Ævar Arnfjörð Bjarmason
65eec82978
[2304]: Split the default English i18n parameter in Potlatch out to a YAML file
2009-09-23 17:08:46 +00:00
Tom Hughes
fc5261ece5
Remove remaining trailing spaces from translations.
2009-09-22 20:15:09 +00:00
Tom Hughes
06a17b6bc6
Treat an explicit public=0 argument as meaning private.
2009-09-12 16:46:25 +00:00
Matt Amos
69ab396f08
Fixed bug when oauthorizing with a token which no longer exists (merged 17416 from oauth branch).
2009-09-01 10:25:53 +00:00
Tom Hughes
783748b1e5
Tidy up.
2009-08-31 23:32:03 +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
Matt Amos
ade96da19f
Added user ID, description, languages and image link to the user details API call.
2009-08-31 23:11:15 +00:00
Matt Amos
b34b898451
Added referer URL in user_token so that redirections (e.g: from oauth token requests) are followed after the user has confirmed the sign-up. Added test for the same.
2009-08-25 15:00:32 +00:00
Tom Hughes
1ce8368f64
Remove debugging.
2009-08-19 08:04:42 +00:00
Tom Hughes
173e92edb8
Cleanup some of the oauth stuff:
...
- Detabify views.
- Move translations to correct names.
- Make flash messages translatable.
2009-08-19 07:59:15 +00:00
Tom Hughes
9fec2fd137
Call the set_locale filter for oauth methods which display web
...
pages to the user. Closes #2203 .
2009-08-19 07:45:24 +00:00