Commit graph

2780 commits

Author SHA1 Message Date
Tom Hughes
a6952b38a0 Swap two translations so they are the right way round. 2009-10-01 21:13:13 +00:00
Tom Hughes
5a2ad3655b Replace a couple calls to inject with more readble constructs. 2009-10-01 20:39:04 +00:00
Ævar Arnfjörð Bjarmason
efc2a3fa47 Set a limit on the new/edit block text area. Make it as big as diary
comments instead of the insane default rails size of 40/20 cols/rows
2009-10-01 20:29:17 +00:00
Tom Hughes
8217c55523 Correct comment. 2009-10-01 20:24:53 +00:00
Ævar Arnfjörð Bjarmason
df4267639d * The Back link in block/id/edit wasn't translatable
* New text for back links to make them more understandable
2009-10-01 20:24:36 +00:00
Tom Hughes
54649a39a0 Correct comment. 2009-10-01 20:22:52 +00:00
Ævar Arnfjörð Bjarmason
7dbf68aa52 * <title> for /blocks/new/*
* use h() to escape usernames
2009-10-01 20:18:24 +00:00
Ævar Arnfjörð Bjarmason
269ad0f52e Add a route for '/blocks/new/:display_name' so links will be
'/blocks/new/Example' not '/blocks/new?display_name=Example'
2009-10-01 20:08:13 +00:00
Tom Hughes
4708992f1c Don't bother creating the user index on user_roles as migration 48 will
create one on user+role that will do the same job.

Removing it here is a bit of a hack as it will not get dropped from
existing databases but as it was not given an explicit name it is hard
to write a migration to drop it.
2009-10-01 20:04:33 +00:00
Ævar Arnfjörð Bjarmason
78e0ec74f7 use h() to avoid XSS in usernames 2009-10-01 20:02:54 +00:00
Ævar Arnfjörð Bjarmason
e0ece00738 title/links for revoke page 2009-10-01 19:59:02 +00:00
Ævar Arnfjörð Bjarmason
2ea77833cd Oops. Mixed up heading/title 2009-10-01 19:55:25 +00:00
Ævar Arnfjörð Bjarmason
1cea0df3d8 title/heading & XSS fix for /edit 2009-10-01 19:45:36 +00:00
Ævar Arnfjörð Bjarmason
c6f844603d Add <title> to /blocks and don't Camel Case headings 2009-10-01 19:27:15 +00:00
Ævar Arnfjörð Bjarmason
1a2ccfbb8f Set title on /blocks/:id and link to usernames 2009-10-01 19:18:23 +00:00
Ævar Arnfjörð Bjarmason
e465decb97 Back -> View all blocks 2009-10-01 19:10:31 +00:00
Ævar Arnfjörð Bjarmason
8d6d7b51e8 When a user hasn't made any blocks or been blocked don't display a
skeleton table. Just a <p> saying there's nothing here.
2009-10-01 19:04:38 +00:00
Ævar Arnfjörð Bjarmason
268a2cd474 * use h() on username to avoid XSS
* Link to username in <h1>
 * Set <title> on /blocks and /blocks_by
2009-10-01 18:49:38 +00:00
Ævar Arnfjörð Bjarmason
4f92ce1243 More specific alt/title text 2009-10-01 18:42:45 +00:00
Matt Amos
9b82acded9 Adding title for role icons when viewing user isn't an admin, re-adding translations for those. 2009-10-01 18:09:31 +00:00
Ævar Arnfjörð Bjarmason
8a7040e155 Set title/h1 to something sensible when granting/revoking roles 2009-10-01 18:02:08 +00:00
Ævar Arnfjörð Bjarmason
1d59359202 Add title="" to the revoke/grant icons that indicate what they're about to do 2009-10-01 17:57:20 +00:00
Matt Amos
59102ea017 Merging 17846:17904 from trunk. 2009-10-01 17:23:01 +00:00
Matt Amos
1e3b3c1f10 Refactored user_role and controller. Now much more DRY. 2009-10-01 17:15:34 +00:00
Ævar Arnfjörð Bjarmason
1db1f04974 Synced from Translatewiki 2009-10-01 16:48:31 +00:00
Richard Fairhurst
ef7825ce0c compile avar's latest commit 2009-10-01 16:01:12 +00:00
Translatewiki
1812b01564 * Localisation updates from translatewiki.net (2009-10-01)
* svn:eol-style native
2009-10-01 13:42:46 +00:00
Ævar Arnfjörð Bjarmason
a0905290b7 Translatewiki URLs changed. Adjust script to match 2009-10-01 13:41:51 +00:00
Ævar Arnfjörð Bjarmason
f80d250d77 RichardF forgot to nuke cz.yml in [17664]. Nuking 2009-10-01 13:18:45 +00:00
Richard Fairhurst
d7de7a8567 Potlatch 1.2c 2009-10-01 11:04:00 +00:00
Ævar Arnfjörð Bjarmason
03fd04be95 The 'more' message used in the history dialog (history.as) was missing 2009-10-01 10:59:43 +00:00
Ævar Arnfjörð Bjarmason
5f7586fb0a This whitespace at the end of "Custom: " isn't needed. The layer
selector looks the same without it and Translatewiki pukes on it.

In any case this needs to be turned into a message with
parameters. But Potlatch's code is too hairy so I'm not touching it.
2009-10-01 10:39:31 +00:00
Ævar Arnfjörð Bjarmason
7ac795ff54 Fixed message key that was broken due to a broken regex I used during
importing. It had AS message params mixed up with it.
2009-10-01 10:21:12 +00:00
Richard Fairhurst
495b8e2cb6 show buildings in pink 2009-09-30 23:54:25 +00:00
Tom Hughes
c192b95021 Open up crossdomain policy to allow all headers from everywhere as I can't
find any information anywhere that gives me any idea why we would want to
restrict what headers can be sent.
2009-09-30 23:47:26 +00:00
Tom Hughes
744b2e8676 Import extra rails translations from http://github.com/svenfuchs/rails-i18n. 2009-09-30 23:26:47 +00:00
Ævar Arnfjörð Bjarmason
95c8b2a01d comment out dupe purging debug message 2009-09-30 17:43:17 +00:00
Ævar Arnfjörð Bjarmason
b2a1abf6e9 compile error in previous commit 2009-09-30 17:43:02 +00:00
Ævar Arnfjörð Bjarmason
289c1c3cd9 --cache option 2009-09-30 17:42:06 +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
Ævar Arnfjörð Bjarmason
ab878d4844 There are a bunch of keys on Translatewiki that are equivalent to
English for some reason. Probably because they were there at import
time. Nuke them.
2009-09-30 11:04:16 +00:00
Ævar Arnfjörð Bjarmason
5a76cbe760 Updated from Translatewiki with ''perl script/locale/merge-from-translatewiki'' 2009-09-30 10:58:00 +00:00
Tom Hughes
cd599a2998 Update language list. 2009-09-30 08:50:21 +00:00
Tom Hughes
69b586a8f4 Add script to update config/languages.yml from translatewiki language list. 2009-09-30 08:49:28 +00:00
Tom Hughes
d13c0e5bb8 Rename reload_languages to reload-languages for consistency. 2009-09-30 08:49:00 +00:00
Translatewiki
1f58d4a066 Remove untranslated parts in he.yml 2009-09-29 17:32:01 +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
Tom Hughes
53c2f0dccc Revert r17851 and just give non-local flash clients access to
the X_HTTP_METHOD_OVERRIDE header.
2009-09-29 16:24:07 +00:00
Ævar Arnfjörð Bjarmason
6eed92c0d6 Capitalize JavaScript as suggested on http://translatewiki.net/w/i.php?title=Special:Translate&task=review&group=out-osm&language=qqq&limit=2500 2009-09-29 16:21:50 +00:00