From 773f145edc8999fc5a9bd1440cc1d4f6b1f465cb Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 30 Jan 2013 18:17:04 +0000 Subject: [PATCH] Show the header block on slim layout pages --- app/assets/stylesheets/common.css.scss | 8 ++++++-- app/views/layouts/slim.html.erb | 16 +++++++++++----- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index aa2e893aa..e57db18ce 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -802,12 +802,16 @@ ul.results-list li { border-bottom: 1px solid #ccc; } #slim_content { margin: 10px; - margin-top: 90px; + margin-top: 95px; max-width: 50em; + + .content-heading { + margin-bottom: 15px; + } } #slim_header { - margin: 10px; + margin: 30px 10px; position: absolute; top: 0px; margin-right: 5px; diff --git a/app/views/layouts/slim.html.erb b/app/views/layouts/slim.html.erb index ba02104f4..72cfcec31 100644 --- a/app/views/layouts/slim.html.erb +++ b/app/views/layouts/slim.html.erb @@ -1,17 +1,23 @@ - + <%= render :partial => "layouts/head" %>
+
+

<%= image_tag("osm_logo.png", :size => "60x60", :border => 0, :alt => t('layouts.logo.alt_text')) %><%= t 'layouts.project_name.h1' %>

+
+
<%= render :partial => "layouts/flash", :locals => { :flash => flash } %> - <%= yield %> -
+ <% if content_for? :heading %> +
+ <%= yield :heading %> +
+ <% end %> -
-

<%= image_tag("osm_logo.png", :size => "60x60", :border => 0, :alt => t('layouts.logo.alt_text')) %><%= t 'layouts.project_name.h1' %>

+ <%= yield %>
-- 2.43.2