Saman Bemel-Benrud
a36f3558dd
Site cleanup
...
I set out to do a quick and dirty typography overhaul to make things
more consistent and a bit cleaner, but I kept running into things I
didn't like, so this lead me down something of a rabbit hole of design
tweaks to the OSM site.
Goals here are to have better content hierarchy, better vertical
rhythm, more consistent UI, cleaner markup with less tables, all while
keeping the basics pretty much intact. There are a lot of things I
didn't touch even though they need to be updated (lots of tables where
stuff shouldn't be tables, mostly).
Basic overview of changes:
I added a new persistent header that helps segment pages. It's now
a lot easier to know what you're looking at. The header has a page
title, a description, plus a submenu of actions.
There is now a pattern of 20px/10px margins and padding for more
rhythm and breathing room throughout the site.
I know there are other problems here or things I've missed - would
love another set of eyes to look over this! I am still getting comfortable
working on the site - it's my first time ever digging into a ruby or rails
so I'm not familiar with the templating language yet.
2013-01-14 21:27:08 +00:00
Tom Hughes
78ff250c1d
Add a paging control to the user blocks list
2012-07-18 21:36:40 +01:00
Tom Hughes
359371b31c
Handle reason as a rich text area when editing a block
2012-03-19 11:24:47 +00:00
Tom Hughes
561f2f694a
Add preview functionality to rich text controls
2012-03-17 16:36:57 +00:00
Tom Hughes
aa4205482a
Treat all newly entered blocks of text as Markdown
2012-03-17 16:36:55 +00:00
Tom Hughes
e23313fbd4
Don't escape the heading as it contains a link
2012-03-09 23:15:40 +00:00
Tom Hughes
58d889436f
Fix various routing and route generation errors
2012-03-09 23:15:39 +00:00
Tom Hughes
5718d455bc
Don't escape the heading on a user block
2011-11-23 00:11:51 +00:00
Tom Hughes
4ab734ee1b
Fixed escaping in title
2011-11-17 11:03:27 +00:00
Tom Hughes
bca0d5873b
Removed bogus characters from form_for
2011-11-17 11:02:42 +00:00
Tom Hughes
22594361d5
Mark some strings that shouldn't be escaped as raw
2011-11-14 09:42:41 +00:00
Tom Hughes
b25a468e3c
Use <%= instead of <% for block helpers that use concat
2011-11-14 09:42:41 +00:00
Tom Hughes
aa37cecc1d
Format block details more nicely.
2010-01-04 13:58:50 +00:00
Matt Amos
137468f75f
Fixed bug in _blocks partial when used by the index view.
2009-10-06 14:19:54 +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
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
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
Matt Amos
ab1444f338
Truncate long reason texts to not overwhelm the browser window.
2009-09-28 17:30:10 +00:00
Matt Amos
daa2496024
First version of blocking feature. Allows both time-based (for map protection) and notice-based (for education) blocks on users. Also introduces user roles and a simple UI for displaying and administering these.
2009-09-28 16:01:00 +00:00