Commit graph

1043 commits

Author SHA1 Message Date
Tom Hughes
e23744bd8d Add :warning and :error flash messages which can be styled separately to
the existing :notice messages.

Also reviewd all existing flash messages and changed them to be errors or
warnings when appropriate and checked that those which are not followed by
a redirect are done as flash.now[] instead of flash[].
2009-11-01 13:07:46 +00:00
Tom Hughes
2541ad0f09 We don't need the @notice hack - we can use flash.now to achieve the same thing. 2009-11-01 12:32:31 +00:00
Ævar Arnfjörð Bjarmason
2d7fa37bd2 Make messages relating to public editing translatable 2009-10-30 17:41:22 +00:00
Ævar Arnfjörð Bjarmason
501adefb3b stop referencing a non-existant translation 2009-10-30 17:28:27 +00:00
Tom Hughes
639a994c9b Experimental support for reverse geocoding using the new geocoder. 2009-10-30 11:12:55 +00:00
Tom Hughes
e0cbfe24a5 Escape non-ascii characters in exported HTML. Closes #2075. 2009-10-27 00:59:38 +00:00
Tom Hughes
59a1543ad0 Removed bogus space from translation token. Closes #2389. 2009-10-26 08:43:28 +00:00
Ævar Arnfjörð Bjarmason
843d601b0a Add title="" to "Where am I?" in the search box 2009-10-23 11:53:22 +00:00
Tom Hughes
0166abe88a Merge 18123:18249 from trunk. 2009-10-21 23:37:05 +00:00
Tom Hughes
fc4e72dc35 Improve handling of signup and login forms on small displays. 2009-10-20 23:57:39 +00:00
Tom Hughes
6ce5986a52 Set method and action on the search box to something that works so that
the "Add keyword for..." feature in Fierefox works.
2009-10-20 23:20:07 +00:00
Tom Hughes
27a3dc447c Mention the OSM blob and twitter in the signup message. 2009-10-18 14:02:13 +00:00
Tom Hughes
e5803ecc11 Link to the foundation blog from the sidebar. 2009-10-16 10:31:55 +00:00
Tom Hughes
17e0753962 Use bounding box information to zoom to search results when possible. 2009-10-15 09:27:21 +00:00
Ævar Arnfjörð Bjarmason
f68ca9ebc2 Improve the UI of the /user/forgot-password page
* Align the submit button like on the rest of the /user/* pages
 * Tabindex
 * Help text to explain what the page does
2009-10-14 19:49:20 +00:00
Ævar Arnfjörð Bjarmason
4c2b591bbf Reduce choice anxiety when signing up for a new user by explaining
that the display name can be changed later.
2009-10-14 19:39:19 +00:00
Tom Hughes
3244635aa1 Merge 17130 from trunk. 2009-10-13 20:27:38 +00:00
Tom Hughes
ef40b61ff4 Merged 17256:18123 from trunk. 2009-10-13 20:06:24 +00:00
Matt Amos
2a7f689f1f Fixed merge fail - this branch doesn't have javascript_strings. 2009-10-13 14:36:15 +00:00
Matt Amos
42cdcce858 Another version of the media-queries CSS stuff. Works better for more pages now. 2009-10-13 14:23:20 +00:00
Tom Hughes
a8cc053bcc Add some administrator only actions to the user page. 2009-10-12 08:00:59 +00:00
Tom Hughes
921c150b63 Display user's email addresses and the IP address used to create
their account to people that are logged in as administrators.
2009-10-09 15:45:01 +00:00
Matt Amos
137468f75f Fixed bug in _blocks partial when used by the index view. 2009-10-06 14:19:54 +00:00
Tom Hughes
2a9cacb6f1 Add parentheses to avoid warning. 2009-10-05 20:28:15 +00:00
Tom Hughes
7de5220090 Merge 17944:17988 from trunk. 2009-10-05 20:25:45 +00:00
Tom Hughes
596ab82461 Move javascript translations to a separate key based on the path to
the javascript file that uses them and amend the layout to automatically
find and output all javascript strings.
2009-10-02 23:33:17 +00:00
Tom Hughes
52126dc3c1 There is no need to translate the names of layers which are not shown
in the layer switcher.
2009-10-02 23:03:42 +00:00
Ævar Arnfjörð Bjarmason
4c84709c80 Follow up to [17948]: Make the layer switcher translatable too! 2009-10-02 20:39:47 +00:00
Ævar Arnfjörð Bjarmason
b0e1560875 Some of our JavaScript files have UI messages but we don't want to
make them dynamic.

So I'm creating a globally scoped JavaScript array called rails_i18n
which holds some of these messages. It's loaded in <head> before any
of the JavaScript files so it should always be available.
2009-10-02 20:19:28 +00:00
Matt Amos
17f05fdb13 Merging 17905:17944 from trunk. 2009-10-02 15:36:46 +00:00
Tom Hughes
d0f2288797 Add parentheses to avoid warnings. 2009-10-02 14:40:25 +00:00
Ævar Arnfjörð Bjarmason
8c1d3fdd6b Amend [17942]:
* Center-align donation text
 * Add title="" to the donate link
 * Use an official cc_button.png from http://1.1.1.1/bmi/i.creativecommons.org/l/by-sa/2.0/88x31.png that doesn't include English text
 * Add rel=license to license link as suggested by CC
 * Add width/height to CC button
2009-10-02 13:04:47 +00:00
Tom Hughes
968e6c417f Replace the donate button with a text version that can be translated. 2009-10-02 12:29:44 +00:00
Ævar Arnfjörð Bjarmason
2dab83d57b use {{count}} instead of {{sent_count}} so rails plural forms will kick in 2009-10-02 10:41:47 +00:00
Tom Hughes
a549d33fdf Add "blocks on" and "blocks by" links to the user page when a logged
in user is looking at their own page.
2009-10-01 21:30:45 +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
Æ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
Æ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
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
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
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
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