Commit graph

3349 commits

Author SHA1 Message Date
Tom Hughes
122fab7066 Really get the subject extraction right this time 2010-07-07 21:24:21 +01:00
Tom Hughes
136d6508c2 Remove maintenance notice 2010-07-03 07:44:24 +01:00
Tom Hughes
a00b472ac4 Disable SQL sessions in database readonly mode 2010-07-02 09:59:50 +01:00
Siebrand Mazeland
1ed609ef52 Localisation updates from translatewiki.net 2010-07-01 19:12:08 +02:00
Tom Hughes
408461e5aa Extract the mail subject correctly 2010-06-30 13:34:20 +01:00
Tom Hughes
a7a4dadbd5 Add a notice about the downtime 2010-06-30 12:51:22 +01:00
Tom Hughes
6740cab85b Use the correct name for the interpolation variable 2010-06-29 15:19:54 +01:00
Tom Hughes
2038cd52c6 Include an [OpenStreetMap] prefix on the subject of message notifications
Put back the [OpenStreetMap] prefix to the subject line of email
notifications of messages, but strip it again from any incoming
email replies.
2010-06-29 09:43:30 +01:00
Tom Hughes
b4a22eee71 Reject leading and trailing whitespace in display names 2010-06-28 17:47:05 +01:00
Tom Hughes
98d73aead1 Remove unused routes 2010-06-27 14:45:04 +01:00
Tom Hughes
0e40a4f1c4 Make changeset browser show an error when the database is offline 2010-06-27 14:42:47 +01:00
Tom Hughes
e7303fe287 Add language codes to diary bodies
Wrap diary bodies in a div with the correct language code for the
entry set on the div. Closes #2572.
2010-06-26 16:35:25 +01:00
Tom Hughes
eefb42334f Use the message title as the subject of notification mails
Make message notification mails use the message title as the subject
so that it is properly perserved when replying by email. Closes #3051.
2010-06-26 16:03:47 +01:00
Tom Hughes
7bfcadd385 Add version number based ids to browser history pages 2010-06-26 15:43:17 +01:00
Siebrand Mazeland
b5db57bfc1 Localisation updates from http://translatewiki.net
Signed-off-by: Siebrand Mazeland <s.mazeland@xs4all.nl>
2010-06-22 18:45:12 +02:00
Dan Karran
0bcc7ae6fc Improve working of PD question
Public Domain agreement could be mistaken to be an 'I accept' type box. It
should be clarified that this is in addition to the ODbL agreement.
2010-06-20 18:49:07 +01:00
Tom Hughes
68368118a6 Add timeout to describe_location and handle exceptions 2010-06-19 07:53:22 +01:00
Ævar Arnfjörð Bjarmason
4806913e18 browse_helper: Correctly link to wiki pages whose keys or values contain spaces
The update-wiki-pages script normalizes " " to "_" (since MediaWiki
does it by design), but I didn't normalize it back in the
browse_helper.

Consequently objects with tags like "source=Isle of Man Government
aerial imagery (2001)" were never linked to the wiki correctly.
2010-06-17 13:33:01 +00:00
Ævar Arnfjörð Bjarmason
4e809b868f wiki_pages: Grab a very long "Isle of Man" tag from the wiki
This funky line wrapping is actually not a YAML syntax error:

    $ ruby -ryaml -rpp -e 'x = YAML.load(File.read("config/wiki_pages.yml")); pp x'|grep -B1 'Isle of'
         "source=Isle_of_Man_Government_aerial_imagery_(2001)"=>
          "Tag:source=Isle of Man Government aerial imagery (2001)",
    --
         "source=Isle_of_Man_Government_1:25000_map_(2007)"=>
          "Tag:source=Isle of Man Government 1:25000 map (2007)",

Abandon all hope ye who use YAML.
2010-06-17 13:17:51 +00:00
Ævar Arnfjörð Bjarmason
76e53b8264 wiki_pages: Run script/misc/update-wiki-pages 2010-06-17 13:16:07 +00:00
Ævar Arnfjörð Bjarmason
408f2ba580 wiki_pages: The Japanese moved from Ja: to JA: 2010-06-17 13:14:46 +00:00
Siebrand Mazeland
057817d0de Localisation updates from http://translatewiki.net 2010-06-17 00:26:09 +02:00
Tom Hughes
b43f9c4714 Link SOTM advert to the landing page 2010-06-16 21:16:42 +01:00
Tom Hughes
c38de8027f Correct name of ActiveRecord 2010-06-15 17:12:55 +01:00
Tom Hughes
f973bee52b Make database offline work in production 2010-06-15 10:40:47 +01:00
Tom Hughes
8af14faa49 Make database offline mode work 2010-06-15 10:07:39 +01:00
Tom Hughes
f980e7e4a6 Completely replace rails' version of pk_and_sequence_for
Falling back to the rails code for pk_and_sequence_for doesn't work
because we still wind up retrying the slow version of the query for
tables with no primary key. So just replace it instead.
2010-06-14 13:00:49 +01:00
Tom Hughes
a0af70cfb4 Monkey patch rails to make system table query efficient
Rails tries to query the system tables to find the primary key
and it's controlling sequence, but it doesn't specify that it is
looking for objects of class "pg_class" so the pg_depend table
has to be sequentially scanned instead of being accessed using
the index.

Tests on the production database show that the time taken for
this query drops from 3.5s to 15ms if the index is used.
2010-06-14 12:43:39 +01:00
Tom Hughes
180228b7e3 Rename layouts.sotm resource to avoid using stale translations 2010-06-08 18:01:21 +01:00
Tom Hughes
3590335221 Add advert for SOTM 2010 to sidebar 2010-06-08 17:09:21 +01:00
Dan Karran
abd996b802 Re-using service icon for pedestrian roads 2010-06-07 22:43:01 +01:00
Dan Karran
2bb92dfcf5 Using generic place_of_worship icon instead of Christian one 2010-06-07 22:43:01 +01:00
Dan Karran
870e22b1d9 Adding health related icons 2010-06-07 22:43:01 +01:00
Dan Karran
af217ca140 More historic and tourist-related icons 2010-06-07 22:43:01 +01:00
Dan Karran
5a8af1365f A few more icons 2010-06-07 22:43:01 +01:00
Dan Karran
2aae01a590 Add strikethrough style to browser when objects are deleted 2010-06-07 22:43:01 +01:00
Dan Karran
ab0c40107b Adding more shop icons 2010-06-07 22:43:01 +01:00
Dan Karran
b913df606c Add service road and bike parking icons and update the bike rental one 2010-06-07 22:42:25 +01:00
Dan Karran
209cf52ac2 Adding highway _link icons like their main counterparts 2010-06-07 22:37:01 +01:00
Tom Hughes
406b46e49b Revert "Switch to using oauth-plugin as a gem"
This reverts commit 41a123334b.
2010-06-07 16:01:04 +01:00
Siebrand Mazeland
fa11baf5c3 Localisation updates from http://translatewiki.net 2010-06-04 01:33:00 +02:00
Tom Hughes
d516198bbe Update to rails 2.3.8
Update site to use rails 2.3.8 which also allows us to drop the
globalize2 plugin as the core rails i18n code can now do fallback
and pluralization.
2010-05-26 19:54:10 +01:00
Siebrand Mazeland
27c812505d Localisation updates from http://translatewiki.net 2010-05-25 16:06:17 +02:00
Tom Hughes
41a123334b Switch to using oauth-plugin as a gem
Use the oauth-plugin as a gem instead of carrying a local copy.

This also required that commit eff06faf46 be
reverted as it changed the plugin. I don't think the cosmetic improvement
from that patch is worth the hassle of carrying local changes to the plugin.
2010-05-24 12:58:27 +01:00
Tom Hughes
6e7acd171f Pull in some upstream updates to http_accept_language 2010-05-24 12:10:46 +01:00
Siebrand Mazeland
337c06d4f4 Localisation updates from http://translatewiki.net
Signed-off-by: Siebrand Mazeland <s.mazeland@xs4all.nl>
2010-05-23 19:36:40 +02:00
Tom Hughes
cf682f49b3 Add a timeout to the change list pages 2010-05-21 20:21:41 +01:00
Tom Hughes
b3ce6fdeec Convert lat and lon values to integers
Make sure the lat and lon values in changeset bounding box queries
are integers or Postgres will refuse to use the index.
2010-05-21 19:51:30 +01:00
Siebrand Mazeland
09763ab129 Localisation updates from http://translatewiki.net 2010-05-18 23:13:25 +02:00
Tom Hughes
7f8ed822da Resource whose value starts with a colon need to be quoted
Stop resources looking like symbols when they start with a colon by
quoting them.
2010-05-18 15:07:46 +01:00