Commit 50e3e2ab47ddebd9b8a6ec0388c91d837f105220
1 parent
ba2315ce
Exists in
master
and in
1 other branch
Only expand title bar for errs#show page
Showing
3 changed files
with
9 additions
and
2 deletions
Show diff stats
app/assets/stylesheets/errbit.css
| @@ -162,11 +162,17 @@ a.action { float: right; font-size: 0.9em;} | @@ -162,11 +162,17 @@ a.action { float: right; font-size: 0.9em;} | ||
| 162 | 162 | ||
| 163 | /* Content Title and Comments */ | 163 | /* Content Title and Comments */ |
| 164 | #content-title, #content-comments { | 164 | #content-title, #content-comments { |
| 165 | - padding: 43px 24px 37px; | 165 | + padding: 30px 24px; |
| 166 | border-top: 1px solid #FFF; | 166 | border-top: 1px solid #FFF; |
| 167 | border-bottom: 1px solid #FFF; | 167 | border-bottom: 1px solid #FFF; |
| 168 | background-color: #f2f2f2; | 168 | background-color: #f2f2f2; |
| 169 | } | 169 | } |
| 170 | + | ||
| 171 | +/* Make err title bar bigger to fit more buttons */ | ||
| 172 | +#content-title.err_show { | ||
| 173 | + padding: 43px 24px 37px; | ||
| 174 | +} | ||
| 175 | + | ||
| 170 | #content-comments { | 176 | #content-comments { |
| 171 | background-color: #ffffff; | 177 | background-color: #ffffff; |
| 172 | } | 178 | } |
app/views/errs/show.html.haml
| 1 | - content_for :page_title, @problem.message | 1 | - content_for :page_title, @problem.message |
| 2 | +- content_for :title_css_class, 'err_show' | ||
| 2 | - content_for :title, @problem.error_class || truncate(@problem.message, :length => 32) | 3 | - content_for :title, @problem.error_class || truncate(@problem.message, :length => 32) |
| 3 | - content_for :meta do | 4 | - content_for :meta do |
| 4 | %strong App: | 5 | %strong App: |
app/views/layouts/application.html.haml
| @@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
| 18 | = render 'shared/navigation' if current_user | 18 | = render 'shared/navigation' if current_user |
| 19 | = render 'shared/session' | 19 | = render 'shared/session' |
| 20 | #content-wrapper | 20 | #content-wrapper |
| 21 | - #content-title | 21 | + #content-title{ :class => (yield :title_css_class).to_s } |
| 22 | %h1= yield :title | 22 | %h1= yield :title |
| 23 | %span.meta= yield :meta | 23 | %span.meta= yield :meta |
| 24 | - if (action_bar = yield(:action_bar)).present? | 24 | - if (action_bar = yield(:action_bar)).present? |