Commit graph

1528 commits

Author SHA1 Message Date
Tom Hughes
4d7c3db62c Use cache store for sessions when memcached is not available
Using cookie store is problematic because there is a limit to the
amount of session data you can store, and we sometimes overflow.
2012-03-06 10:42:37 +00:00
Tom Hughes
c5a54b779c Add a temporary hack to suppress some broken rails translations
See https://github.com/svenfuchs/rails-i18n/issues/194 for more
information and progress on an upstream fix.
2012-03-06 09:21:26 +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
a1321f2c50 Remove translation reload that is no longer needed
Now that we are using the rails-i18n gem the rails locales are added
to the path early on and we don't need to reload to get them.
2012-03-04 15:10:51 +00:00
Tom Hughes
10d8bbfedb Remove dummy locales as they are no longer needed 2012-03-04 14:26:38 +00:00
Tom Hughes
be6a33b805 Fix interpolation variable errors 2012-03-04 14:24:45 +00:00
Siebrand Mazeland
15725cfc81 Localisation updates from http://translatewiki.net. 2012-03-03 13:43:40 +01:00
Tom Hughes
06934ad375 Update rails-i18n to 0.5.1
This update allows us to drop our pluralization support, as rails-i18n
now takes care of that, and for a far wider range of locales.
2012-03-02 09:19:12 +00:00
Tom Hughes
a678a330ef Fix broken interpolations 2012-03-01 15:53:35 +00:00
Siebrand Mazeland
5ebb07c6d4 Localisation updates from http://translatewiki.net. 2012-03-01 16:27:53 +01:00
Tom Hughes
dffd5fe2d0 Remove references to mapnik in the export pane 2012-03-01 12:19:44 +00:00
Tom Hughes
b61e414356 Rename "Mapnik" to "Standard" in the layer switcher 2012-03-01 12:18:55 +00:00
Tom Hughes
acbd254e4a Remove the osmarender map layer 2012-03-01 09:45:41 +00:00
Tom MacWright
7b6d0f0313 Simplify login page
Moves action buttons to be with the form instead of way over on
the opposite side of the page.

Reorganizes "remember me" to a more typical spot on the page.

Get rid of separate "create account" panel and replace it with an
above the fold link.
2012-02-29 00:13:09 +00:00
Tom Hughes
c9a4ec5e63 Improve the diary comments view
Make sure all strings are translatable; replace a manually constructed
link with link_to; improve date formatting; and use cycle to alternate
colours for the table rows.
2012-02-28 21:49:41 +00:00
Steve Singer
1944372af8 Add a view to show diary comments left by a user 2012-02-28 21:29:18 +00:00
Grant Slater
e45f8855c4 Add additional notice to UMP attribution per request of LWG 2012-02-28 18:05:34 +00:00
Grant Slater
6a8bf56c8c Add "South Africa Chief Directorate: National Geo-Spatial Information" to copyright notices 2012-02-28 18:05:14 +00:00
Tom Hughes
24a26e015a Pipeline memcache requests to the cache 2012-02-27 09:01:48 +00:00
Tom Hughes
57ba7d6f0b Switch to using memcache as the session store
As a temporary measure any session which is not found in memcache
will be looked for in the database instead.
2012-02-27 09:01:48 +00:00
Tom Hughes
f778b61c03 Refactor memcache connection handling 2012-02-27 09:01:47 +00:00
Tom Hughes
af13c42322 Refactor session persistence code 2012-02-26 21:44:17 +00:00
Siebrand Mazeland
43bbb3f651 Correct misspellings of CC BY[-SA] 2012-02-25 15:56:30 +01:00
Tom Hughes
35273947f0 Add a stub locale file for "no" so that fallback works 2012-02-25 00:12:04 +00:00
Tom Hughes
f2150a94cf Serve up paperclip attachments in a cache friendly way 2012-02-21 12:31:38 +00:00
Tom Hughes
9c02133098 Don't double up newlines in the log 2012-02-19 10:52:54 +00:00
Tom Hughes
21e3047ba6 CompressedMemCacheStore has been replaced by MemCacheStore 2012-02-19 10:44:36 +00:00
Tom Hughes
478f30d69f Remove backported code now we are using mail 2.4.1 2012-02-15 17:48:16 +00:00
Tom Hughes
4de07696d5 Turn session-persistence plugin into a library 2012-02-15 17:48:15 +00:00
Tom Hughes
e70396d70b Replace the file_column plugin with paperclip 2012-02-15 17:48:15 +00:00
Tom Hughes
29c1bab0e6 Turn output_compression plugin into a library 2012-02-15 17:48:15 +00:00
Tom Hughes
ca8e1bf188 Turn classic_pagination plugin into a library 2012-02-15 17:48:15 +00:00
Tom Hughes
10fb373e5e Switch to using http_accept_language as a gem 2012-02-15 17:48:15 +00:00
Tom Hughes
ee411e5154 Update to rails 3.2.0 2012-02-15 17:48:14 +00:00
Tom Hughes
3121d1b5a0 Put pretty route for /copyright/locale first 2012-02-14 11:54:16 +00:00
Tom Hughes
beb0ef6357 Stop pretending we support MySQL 2012-02-08 14:08:49 +00:00
Tom Hughes
0605d4aa8b Don't eager load models when the database is offline 2012-02-04 00:42:47 +00:00
Tom Hughes
870c36ecf6 Correct mistakenly translated interpolation variable name 2012-01-30 22:33:41 +00:00
Tom Hughes
d405637b05 Monkey patch mail to handle character encodings on ruby 1.8 2012-01-30 21:42:41 +00:00
Siebrand Mazeland
507882a576 Localisation updates from http://translatewiki.net. 2012-01-30 17:43:01 +01:00
Tom Hughes
2c666b42d7 Fix exception when a suspended user tries to login 2012-01-23 14:31:06 +00:00
Tom Hughes
a98a2a0213 Update CPK to 4.1.2 and drop monkey patch 2012-01-21 00:44:34 +00:00
Shaun McDonald
0465fda75a Railsify the box link on the browse changeset page
This removes the whitespace in the url, and makes the root path a
named route so that it can be nicely referenced.
2012-01-16 17:51:25 +00:00
Tom Hughes
1cc57c620f Monkey patch ActionCachePath to fix a bug
When infer_extension is not set ActionCachePath does not set the
extension from any explicitly specified format, and hence expiry
produces cache keys which don't have any extension and don't match
the keys generated when the cache entry was created.
2012-01-14 13:26:01 +00:00
Tom Hughes
b83af6ef2c Pluralize message counts properly 2012-01-14 12:19:40 +00:00
Mikel Maron
d878db0a9b Add some more social features
Add a view showing changesets by nearby users, and views showing
diary entries by friends and nearby users.
2012-01-07 11:54:07 +00:00
Tom Hughes
3b20c87893 Allow the export box to be moved and resized
Use the new OpenLayers TransformFeature control to allow any box
drawn by the user to select an export area to be moved or resized
after it is drawn.
2012-01-02 16:34:47 +00:00
Tom Hughes
ece52c818f Remove fallback from nb to no
Now that we are using nb for our translations we can drop the fallback
from nb to no and just have one the other way. This also allows us to
drop the monkey patch to support mutually recursive fallbacks.
2011-12-29 15:11:45 +00:00
Tom Hughes
441101c877 Fix top level key in nb translation 2011-12-29 15:04:56 +00:00
Siebrand Mazeland
f807b7d243 Add dummy for 'no'. 2011-12-25 11:14:38 +01:00