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 | 10 | else |
11 | 11 | content_tag('div', |
12 | 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 | 14 | :class => 'no-boxes-inner-1' |
15 | 15 | ), |
16 | 16 | :class => 'no-boxes' | ... | ... |
app/views/shared/access_denied.rhtml
1 | 1 | <div id='access-denied'> |
2 | 2 | |
3 | - <% noosfero_wrap do %> | |
4 | 3 | <h1> <%= @title || _('Access denied') %> </h1> |
5 | 4 | |
6 | 5 | <% unless @message.nil? %> |
... | ... | @@ -15,6 +14,5 @@ |
15 | 14 | <%= button :home, _('Go to the site home page'), :controller => 'home' %> |
16 | 15 | <% end %> |
17 | 16 | |
18 | - <% end %> | |
19 | 17 | |
20 | 18 | </div> | ... | ... |
app/views/shared/not_found.rhtml
1 | 1 | <div id='not-found'> |
2 | - <% noosfero_wrap do %> | |
3 | 2 | <h1><%= _('There is no such page: %s') % (content_tag('tt', @path)) %></h1> |
4 | 3 | <p> |
5 | 4 | <%= _('You may have clicked an expired link or mistyped the address.') %> |
... | ... | @@ -9,5 +8,4 @@ |
9 | 8 | <%= button :back, _('Go back'), :back %> |
10 | 9 | <%= button :home, _('Go to %s home page') % environment.name, :controller => 'home' %> |
11 | 10 | <% end %> |
12 | - <% end %> | |
13 | 11 | </div> | ... | ... |
public/designs/themes/base/style.css
public/stylesheets/application.css
... | ... | @@ -454,8 +454,6 @@ div.pending-tasks { |
454 | 454 | #content #not-found, |
455 | 455 | #content #access-denied { |
456 | 456 | -moz-border-radius: 6px; |
457 | - margin-left: 20%; | |
458 | - margin-right: 20%; | |
459 | 457 | } |
460 | 458 | |
461 | 459 | #content #not-found p, |
... | ... | @@ -3006,12 +3004,8 @@ h1#agenda-title { |
3006 | 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 | 3011 | .controller-profile #content .no-boxes h1, | ... | ... |