Commit graph

4840 commits

Author SHA1 Message Date
Tom Hughes
2cecfa7d01 Configure CORS to allow GET and POST to /oauth 2012-11-16 22:28:52 +00:00
Tom Hughes
1c5db113e2 Always use the canonical host name in diary RSS feeds 2012-11-16 17:03:48 +00:00
Tom Hughes
44528ffe0f Don't use hard coded value in "one" pluralization rule
French uses the "one" rule for zero as well as one (if there is no
explicit zero rule) so make sure we use %{count} there.

Also made the same change to English, and added an explcit zero rul.
2012-11-15 15:22:56 +00:00
Tom Hughes
7ffd7f10ff Updated Potlatch 2 to 2.3-529-g5446b49 build 2012-11-13 15:32:16 +00:00
Tom Hughes
0472e6cad4 Only call force_encoding on ruby 1.9 2012-11-12 20:19:07 +00:00
Tom Hughes
461e39f4a5 Fix bogus test 2012-11-12 19:27:09 +00:00
Tom Hughes
9bc3196dee Monkey patch field_changed? support until CPK is updated 2012-11-12 19:15:20 +00:00
Tom Hughes
dee70e8daa Update to rails 3.2.9 2012-11-12 19:13:54 +00:00
Eric Theise
789e0dffd0 Fixing typo and outdated information 2012-11-12 09:47:17 +00:00
Tom Hughes
ec6f14df0c Use counter caches to improve spam scoring
Now that we have the counter caches we can take all edits and traces
into account without incurring the cost of having to scan the database
to count them all.
2012-11-12 09:39:44 +00:00
Tom Hughes
4cf82d1baa Fix interpolation variables 2012-11-10 19:52:30 +00:00
Tom Hughes
f15c5a3647 Update Potlatch 2 to 2.3-515-gd4558d1 build 2012-11-10 19:43:54 +00:00
Tom Hughes
0f9e1fa05e Potlatch 2 localisation updates 2012-11-10 19:43:18 +00:00
Eric Theise
72eb395e1d Fixing two typos 2012-11-10 19:29:20 +00:00
Siebrand Mazeland
a15bfa2ff8 Localisation updates from http://translatewiki.net. 2012-11-07 12:11:28 +00:00
Tom Hughes
6aaaf5dddb Rework signup emails a bit
Remove "lego" strings and try and reduce duplication between the
text and HTML versions of the mails.
2012-11-05 09:54:58 +00:00
John Firebaugh
379cb35832 Support semicolon as parameter delimiter
http://lists.openstreetmap.org/pipermail/rails-dev/2012-November/001259.html
2012-11-05 08:57:05 +00:00
Tom Hughes
6211895f6e Allow mass assignment of user preference keys and values 2012-11-04 14:41:08 +00:00
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
6b86b716d1 Tweak Potlatch maximisation a bit more 2012-11-01 17:02:11 +00:00
Tom Hughes
5e7b7a420a Make full screen mode in Potlatch work properly again 2012-11-01 16:56:36 +00:00
Tom Hughes
c2c2535b73 Make sure we always read the body of a PUT or POST request
Unfortunately if a PUT or POST request that has a body fails to
read it then Apache will sometimes fail to return the response it
is given to the client properly, instead erroring:

  https://issues.apache.org/bugzilla/show_bug.cgi?id=44782

To work round this we call rewind on the body for every request using
a filter, which forces it to be fetched from Apache into a file.
2012-11-01 12:45:37 +00:00
Tom Hughes
3ef02b86f0 Revert "Add a newline to the end of the body when reporting an error"
This reverts commit 59c97f4866.
2012-11-01 12:42:47 +00:00
Tom Hughes
59c97f4866 Add a newline to the end of the body when reporting an error
There seems to be some sort problem with ruby 1.9 where a response
body that is a single line with no newline causes the response not
to be sent properly.
2012-11-01 09:13:43 +00:00
Tom Hughes
c94e059d2d Use zip instead of SyncEnumerator in statistics script 2012-11-01 00:35:31 +00:00
Tom Hughes
373a610563 Force encoding in AMF controller
Although the strings are UTF-8 we need to treat them as byte
strings for the purposes of encoding AMF responses.
2012-10-31 20:39:31 +00:00
Saman Bemel-Benrud
5a2cfd6760 Fix history sidebar for small screens 2012-10-31 00:09:45 +00:00
Tom Hughes
318f578954 Use the asset pipeline to load the sprite 2012-10-30 22:41:07 +00:00
Tom Hughes
b7b68aee36 Simplify handling of verified emails in OpenID signup
Also make sure that all paths that lead to OpenID based signup
will notice a verified email properly.
2012-10-30 21:43:38 +00:00
Kai Krueger
104727f889 Trust Google and Yahoo to return valid email addresses
Both Google and Yahoo guarantee that the email address they return
during the OpenID authentication are emails that they have already
verified:

  http://stackoverflow.com/q/5639419

Therefore special case these OpenID providers and automatically
activate the new users account without requiring a separate email
verification step.

This therefore reduces the signup procedure by one step and makes
it easier for new users of these OpenID providers, which cover the
majority of users.
2012-10-30 19:14:45 +00:00
Saman Bemel-Benrud
7eb01eb313 Fix editor view 2012-10-30 17:30:20 +00:00
Saman Bemel-Benrud
b70aa5dbbd Change approach to layout in order to fix some weird CSS problems
Move away from using an absolute positioned #content div as this was
causing some weird problems when users scrolled down, like not showing
bottom padding, and prematurely cutting off the left keyline.

Now, the content area uses relative positioning most of the time, and
fixed positioning when the full screen map is in place.

Using fixed positioning on the big map is nice because you can now scroll
down to see more sidebar content, but you won't end up with an ugly block
of white space under the map.
2012-10-30 13:55:14 +00:00
Tom Hughes
0ba1839e78 Move OL control styling to OL theme 2012-10-29 19:04:01 +00:00
Siebrand Mazeland
2074f4604f Localisation updates from http://translatewiki.net. 2012-10-27 13:37:36 +00:00
Tom Hughes
577b5d5bb8 Fix RTL issues with the search and donate icons 2012-10-26 21:51:26 +01:00
Tom Hughes
95fa893163 Make it easier to test alternative locales
Allow a locale=xx parameter in the URL to select the locale.
2012-10-26 21:41:03 +01:00
John Firebaugh
c426e8d160 Make it easier to test RTL layout
Instead of fiddling with settings so the site appears in Arabic
or Hebrew, you can add a dir=rtl param to the URL.
2012-10-26 21:36:59 +01:00
Saman Bemel-Benrud
2e2ebbf959 Minor style overhaul to sidebar
A number of small usability improvements / fixes, including:

* Small inconsistencies in spacing fixed
* Links now visually differentiated from headings in the menu
* Search bar actually looks right (or at least not as broken) in IE7 now
* New heart on the donate button + larger click area on the donate button!
2012-10-26 21:24:36 +01:00
Saman Bemel-Benrud
6c2bca73c1 Removed incorrect margin between zoom in and zoom out controls 2012-10-26 19:28:12 +01:00
Grant
57938f78c7 Add /user_blocks/ to robots.txt disallow
Add Disallow: /user_blocks/ as the content is not suitable for indexing.
2012-10-26 19:20:31 +01:00
Saman Bemel-Benrud
1104f6997b Improved user icons 2012-10-22 22:50:17 +01:00
Grant Slater
49666ecf11 Revert "Add SoTM Scotland banner"
This reverts commit 749caaff73.
2012-10-22 21:07:22 +01:00
Tom Hughes
752423a04a Update bundle 2012-10-22 19:11:52 +01:00
John Firebaugh
7751973871 Allow cross-origin requests to API 2012-10-22 19:11:52 +01:00
John Firebaugh
31dae1bac1 Avoid unnecessary array allocations 2012-10-22 08:45:31 +01:00
Tom Hughes
e64bcf335a Update Potlatch 2 to 2.3-509-g0221790 build 2012-10-21 19:27:35 +01:00
Tom Hughes
b7967002d8 Potlatch 2 localisation updates 2012-10-21 19:27:21 +01:00
Siebrand Mazeland
2c3e6ae1f7 Localisation updates from http://translatewiki.net. 2012-10-20 16:19:22 +00:00
Tom Hughes
abd46402a7 Update Potlatch 2 to 2.3-502-g0247dab build 2012-10-18 19:02:31 +01:00
Grant Slater
749caaff73 Add SoTM Scotland banner 2012-10-18 19:00:25 +01:00