+
+ <%= render partial: '/flash_msg', layout: 'shared/flash_messages' %> + +
+ <%= content_for?(:content) ? yield(:content) : yield %> +
+ + <%= render :partial => 'shared/footer' %> + + diff --git a/app/views/shared/_footer.html.erb b/app/views/shared/_footer.html.erb new file mode 100644 index 00000000..72e68c31 --- /dev/null +++ b/app/views/shared/_footer.html.erb @@ -0,0 +1,3 @@ +<%= render 'pul-assets/footer' %> + +<%= render 'shared/analytics' %> diff --git a/app/views/shared/_masthead.html.erb b/app/views/shared/_masthead.html.erb new file mode 100644 index 00000000..eef7cbae --- /dev/null +++ b/app/views/shared/_masthead.html.erb @@ -0,0 +1,33 @@ +<%= render 'spotlight/shared/report_a_problem' if show_contact_form? %> + +
+ <% if current_masthead %> + + + <% end %> + + <%= render 'shared/exhibit_navbar' if current_exhibit && resource_masthead? %> + +
+
+ <% if content_for? :masthead %> + <%= content_for :masthead %> + <% elsif current_exhibit %> + <%= current_exhibit.title %> + <% if current_exhibit.subtitle.present? %> + <%= current_exhibit.subtitle %> + <% end %> + <% else %> + <%= application_name %> + <% if current_site.subtitle.present? %> + <%= current_site.subtitle %> + <% end %> + <% end %> +
+
+ + <%= render 'shared/exhibit_navbar' if current_exhibit && !resource_masthead? %> +
+ + +<%= render 'shared/breadcrumbs' unless resource_masthead? %> diff --git a/config/application.rb b/config/application.rb index e91f29ff..5c3e18e1 100644 --- a/config/application.rb +++ b/config/application.rb @@ -2,6 +2,7 @@ require 'rails/all' require 'open-uri' +require 'susy' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production.