Commit 50e3e2ab47ddebd9b8a6ec0388c91d837f105220

Authored by Nathan Broadbent
1 parent ba2315ce
Exists in master and in 1 other branch production

Only expand title bar for errs#show page

app/assets/stylesheets/errbit.css
... ... @@ -162,11 +162,17 @@ a.action { float: right; font-size: 0.9em;}
162 162  
163 163 /* Content Title and Comments */
164 164 #content-title, #content-comments {
165   - padding: 43px 24px 37px;
  165 + padding: 30px 24px;
166 166 border-top: 1px solid #FFF;
167 167 border-bottom: 1px solid #FFF;
168 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 176 #content-comments {
171 177 background-color: #ffffff;
172 178 }
... ...
app/views/errs/show.html.haml
1 1 - content_for :page_title, @problem.message
  2 +- content_for :title_css_class, 'err_show'
2 3 - content_for :title, @problem.error_class || truncate(@problem.message, :length => 32)
3 4 - content_for :meta do
4 5 %strong App:
... ...
app/views/layouts/application.html.haml
... ... @@ -18,7 +18,7 @@
18 18 = render 'shared/navigation' if current_user
19 19 = render 'shared/session'
20 20 #content-wrapper
21   - #content-title
  21 + #content-title{ :class => (yield :title_css_class).to_s }
22 22 %h1= yield :title
23 23 %span.meta= yield :meta
24 24 - if (action_bar = yield(:action_bar)).present?
... ...