mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Separated Foundation powered site from the Spree powered content (for now).
This commit is contained in:
13
app/assets/javascripts/search/all.js
Normal file
13
app/assets/javascripts/search/all.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// This is a manifest file that'll be compiled into including all the files listed below.
|
||||
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
||||
// be included in the compiled file accessible from http://example.com/assets/application.js
|
||||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
||||
// the compiled file.
|
||||
//
|
||||
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require foundation
|
||||
//= require_tree .
|
||||
|
||||
$(function(){ $(document).foundation(); });
|
||||
@@ -6,11 +6,8 @@
|
||||
//
|
||||
|
||||
//= require 'jquery'
|
||||
//= require jquery_ujs
|
||||
//= require store/spree_core
|
||||
//= require store/spree_auth
|
||||
//= require store/spree_promo
|
||||
//= require foundation
|
||||
//= require_tree .
|
||||
|
||||
$(function(){ $(document).foundation(); });
|
||||
//= require_tree .
|
||||
|
||||
@@ -3,6 +3,5 @@
|
||||
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
||||
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
||||
*= require_self
|
||||
*= require foundation_and_overrides
|
||||
*= require_tree .
|
||||
*= require_tree .
|
||||
*/
|
||||
8
app/assets/stylesheets/search/all.css
Normal file
8
app/assets/stylesheets/search/all.css
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
||||
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
||||
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
||||
*= require_self
|
||||
*= require ./foundation_and_overrides
|
||||
*= require_tree .
|
||||
*/
|
||||
@@ -5,8 +5,8 @@
|
||||
%meta{name: 'viewport', content: "width=device-width,initial-scale=1.0"}/
|
||||
|
||||
%title= content_for?(:title) ? yield(:title) : 'Welcome to Open Food Web'
|
||||
= stylesheet_link_tag "application"
|
||||
= javascript_include_tag "store/all"
|
||||
= stylesheet_link_tag "search/all"
|
||||
= javascript_include_tag "search/all"
|
||||
= csrf_meta_tags
|
||||
%body.off-canvas
|
||||
%nav.top-bar
|
||||
|
||||
Reference in New Issue
Block a user