Commit graph

4356 commits

Author SHA1 Message Date
Tom Hughes
1cc882b23f Fix migration to work with mass assignment protection 2012-03-06 19:00:49 +00:00
Tom Hughes
d9ba72e66f Update Potlatch 2 to 2.3-209-g749f2c8 build 2012-03-06 17:37:34 +00:00
Tom Hughes
32817fe26c Update Potlatch 2 to 2.3-208-g7b7f802 build 2012-03-06 17:21:33 +00:00
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
7d8cf94680 Update Potlatch 2 to 2.3-207-g44e9559 build 2012-03-05 08:47:39 +00:00
Tom Hughes
eaf6647553 Correct name of simplified Chinese locale 2012-03-04 17:44:50 +00:00
Tom Hughes
516c13a77b Update Potlatch 2 to 2.3-190-g0bb4cb3 build 2012-03-04 17:36:25 +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
Tom Hughes
8f7ecf169a Add a test to check the validity of the translations 2012-03-04 14:24:21 +00:00
Tom Hughes
e6af712eae Update Potlatch 2 to 2.3-153-gf0c9bef build 2012-03-04 10:48:24 +00:00
Tom MacWright
40402fcdb8 Fix some issues with the new tab styling
Uses the parent of the tabnav element to do its positioning, and fixes
this style in RTL and small.

Also move the greetings block into the top-bar div in order to cleanly
have it share a border with tabs.
2012-03-04 10:37:46 +00:00
Tom MacWright
86946536ec Set overflow to auto to gracefully hide tabs before small mode is engaged 2012-03-04 10:37:39 +00:00
Tom Hughes
48ad9eff45 Remove unused image 2012-03-04 10:37:33 +00:00
Tom MacWright
839b6daf05 Restyle the tabs as simple blocks 2012-03-04 10:37:26 +00:00
Tom Hughes
232e04ab9b Use a consistent host name in cache keys 2012-03-04 10:27:34 +00:00
Siebrand Mazeland
15725cfc81 Localisation updates from http://translatewiki.net. 2012-03-03 13:43:40 +01:00
Tom Hughes
e7a0302e2b Update the username cookie when the display name is changed 2012-03-03 00:49:03 +00:00
Tom Hughes
5564bcabbf Detect changes to the user image correctly 2012-03-03 00:11:42 +00:00
Tom Hughes
6aa8decccc Update to rails 3.2.2 2012-03-02 09:22:15 +00: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
23e016e908 Remove osmarender export option 2012-03-01 11:21:59 +00:00
Tom Hughes
acbd254e4a Remove the osmarender map layer 2012-03-01 09:45:41 +00:00
Tom Hughes
ec0c1dfd47 Use the rails-i18n gem instead of local copies of locale data 2012-02-29 00:25:18 +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
4143b3f770 Removed line break 2012-02-29 00:03:31 +00:00
Tom Hughes
13adca0a8f Generate correct links to diary entries 2012-02-28 22:59:43 +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
bcd3805f22 Update README with more information on getting involved 2012-02-27 18:21:00 +00:00
Tom Hughes
24a26e015a Pipeline memcache requests to the cache 2012-02-27 09:01:48 +00:00
Tom Hughes
92f667f488 Don't use the binary memcache protocol
The binary protocol appears to offer no perforance advantage and
doesn't support pipelining of requests.
2012-02-27 09:01:48 +00:00
Tom Hughes
7c3a4b497e Change session expiry to 28 days when "remember me" is set
The expiry is passed directly to memcache, which treats any value
over 30 days as an absolute time, so using 1 month leads to sessions
expiring as soon as they are created.
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
Tom Hughes
ca74f1c094 Update Potlatch 2 to 2.3-142-gecedc05 build 2012-02-26 16:24:02 +00:00
Tom Hughes
7d4880ddd1 Simplify Potlatch 2 locale lookup table 2012-02-26 16:22:50 +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 MacWright
a0cb145f1e Add GPLv2 license file and mention in README 2012-02-23 18:55:39 +00:00