Commit a8dac7fc7f85c8fab2efc60d957ba3187d17237e
1 parent
0e65d20c
Exists in
master
and in
29 other branches
Always wrap content to have nice boxes around it
Showing
5 changed files
with
4 additions
and
14 deletions
Show diff stats
app/helpers/boxes_helper.rb
| @@ -10,7 +10,7 @@ module BoxesHelper | @@ -10,7 +10,7 @@ module BoxesHelper | ||
| 10 | else | 10 | else |
| 11 | content_tag('div', | 11 | content_tag('div', |
| 12 | content_tag('div', | 12 | content_tag('div', |
| 13 | - content_tag('div', content, :class => 'no-boxes-inner-2'), | 13 | + content_tag('div', wrap_main_content(content), :class => 'no-boxes-inner-2'), |
| 14 | :class => 'no-boxes-inner-1' | 14 | :class => 'no-boxes-inner-1' |
| 15 | ), | 15 | ), |
| 16 | :class => 'no-boxes' | 16 | :class => 'no-boxes' |
app/views/shared/access_denied.rhtml
| 1 | <div id='access-denied'> | 1 | <div id='access-denied'> |
| 2 | 2 | ||
| 3 | - <% noosfero_wrap do %> | ||
| 4 | <h1> <%= @title || _('Access denied') %> </h1> | 3 | <h1> <%= @title || _('Access denied') %> </h1> |
| 5 | 4 | ||
| 6 | <% unless @message.nil? %> | 5 | <% unless @message.nil? %> |
| @@ -15,6 +14,5 @@ | @@ -15,6 +14,5 @@ | ||
| 15 | <%= button :home, _('Go to the site home page'), :controller => 'home' %> | 14 | <%= button :home, _('Go to the site home page'), :controller => 'home' %> |
| 16 | <% end %> | 15 | <% end %> |
| 17 | 16 | ||
| 18 | - <% end %> | ||
| 19 | 17 | ||
| 20 | </div> | 18 | </div> |
app/views/shared/not_found.rhtml
| 1 | <div id='not-found'> | 1 | <div id='not-found'> |
| 2 | - <% noosfero_wrap do %> | ||
| 3 | <h1><%= _('There is no such page: %s') % (content_tag('tt', @path)) %></h1> | 2 | <h1><%= _('There is no such page: %s') % (content_tag('tt', @path)) %></h1> |
| 4 | <p> | 3 | <p> |
| 5 | <%= _('You may have clicked an expired link or mistyped the address.') %> | 4 | <%= _('You may have clicked an expired link or mistyped the address.') %> |
| @@ -9,5 +8,4 @@ | @@ -9,5 +8,4 @@ | ||
| 9 | <%= button :back, _('Go back'), :back %> | 8 | <%= button :back, _('Go back'), :back %> |
| 10 | <%= button :home, _('Go to %s home page') % environment.name, :controller => 'home' %> | 9 | <%= button :home, _('Go to %s home page') % environment.name, :controller => 'home' %> |
| 11 | <% end %> | 10 | <% end %> |
| 12 | - <% end %> | ||
| 13 | </div> | 11 | </div> |
public/designs/themes/base/style.css
| @@ -773,7 +773,7 @@ X.sep { | @@ -773,7 +773,7 @@ X.sep { | ||
| 773 | width: 48%; | 773 | width: 48%; |
| 774 | } | 774 | } |
| 775 | 775 | ||
| 776 | -.controller-search #content .no-boxes h1 { | 776 | +#content .no-boxes h1 { |
| 777 | font-variant: small-caps; | 777 | font-variant: small-caps; |
| 778 | color: #555753; | 778 | color: #555753; |
| 779 | font-size: 18px; | 779 | font-size: 18px; |
public/stylesheets/application.css
| @@ -454,8 +454,6 @@ div.pending-tasks { | @@ -454,8 +454,6 @@ div.pending-tasks { | ||
| 454 | #content #not-found, | 454 | #content #not-found, |
| 455 | #content #access-denied { | 455 | #content #access-denied { |
| 456 | -moz-border-radius: 6px; | 456 | -moz-border-radius: 6px; |
| 457 | - margin-left: 20%; | ||
| 458 | - margin-right: 20%; | ||
| 459 | } | 457 | } |
| 460 | 458 | ||
| 461 | #content #not-found p, | 459 | #content #not-found p, |
| @@ -3006,12 +3004,8 @@ h1#agenda-title { | @@ -3006,12 +3004,8 @@ h1#agenda-title { | ||
| 3006 | display: inline; | 3004 | display: inline; |
| 3007 | } | 3005 | } |
| 3008 | 3006 | ||
| 3009 | -.controller-profile .no-boxes { | ||
| 3010 | - margin: 0px 260px 0px 260px; | ||
| 3011 | -} | ||
| 3012 | - | ||
| 3013 | -.controller-profile #content .no-boxes h1 { | ||
| 3014 | - margin: 1px 0px 1px 160px; | 3007 | +.no-boxes { |
| 3008 | + margin: 0px 200px 0px 200px; | ||
| 3015 | } | 3009 | } |
| 3016 | 3010 | ||
| 3017 | .controller-profile #content .no-boxes h1, | 3011 | .controller-profile #content .no-boxes h1, |