mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add titles to all darkswarm pages
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
- content_for(:title) do
|
||||
Checkout
|
||||
|
||||
= inject_enterprises
|
||||
|
||||
.darkswarm.footer-pad
|
||||
@@ -23,4 +26,3 @@
|
||||
|
||||
|
||||
= render partial: "shared/footer"
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- content_for(:title) do
|
||||
= current_distributor.name
|
||||
|
||||
= inject_enterprises
|
||||
|
||||
%shop.darkswarm
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
= inject_enterprises
|
||||
- content_for(:title) do
|
||||
Groups
|
||||
|
||||
= inject_enterprises
|
||||
|
||||
:javascript
|
||||
angular.module('Darkswarm').value('groups', #{render partial: "json/groups", object: @groups})
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- content_for(:title) do
|
||||
= @group.name
|
||||
|
||||
-# inject all enterprises as "enterprises"
|
||||
-# it could be more efficient to inject only the enterprises that are related to the group
|
||||
= inject_enterprises
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- content_for(:title) do
|
||||
Sign up as a group
|
||||
|
||||
#panes
|
||||
#shops-signup.pane
|
||||
.row.header
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
%meta{charset: 'utf-8'}/
|
||||
%meta{name: 'viewport', content: "width=device-width,initial-scale=1.0"}/
|
||||
|
||||
%title= content_for?(:title) ? yield(:title) : 'Welcome to Open Food Network'
|
||||
%title= content_for?(:title) ? "#{yield(:title)} - Open Food Network" : 'Welcome to Open Food Network'
|
||||
- if Rails.env.production?
|
||||
= favicon_link_tag
|
||||
- else
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
%meta{charset: 'utf-8'}/
|
||||
%meta{name: 'viewport', content: "width=device-width,initial-scale=1.0"}/
|
||||
|
||||
%title= content_for?(:title) ? yield(:title) : 'Welcome to Open Food Network'
|
||||
%title= content_for?(:title) ? "#{yield(:title)} - Open Food Network" : 'Welcome to Open Food Network'
|
||||
- if Rails.env.production?
|
||||
= favicon_link_tag
|
||||
- else
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
= inject_enterprises
|
||||
- content_for(:title) do
|
||||
Map
|
||||
|
||||
= inject_enterprises
|
||||
|
||||
.map-container{"fill-vertical" => true}
|
||||
%map{"ng-controller" => "MapCtrl"}
|
||||
%google-map{options: "map.additional_options", center: "map.center", zoom: "map.zoom", styles: "map.styles", draggable: "true"}
|
||||
%map-search
|
||||
%markers{models: "OfnMap.enterprises", fit: "true",
|
||||
coords: "'self'", icon: "'icon'", click: "'reveal'"}
|
||||
%markers{models: "OfnMap.enterprises", fit: "true",
|
||||
coords: "'self'", icon: "'icon'", click: "'reveal'"}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- content_for(:title) do
|
||||
Producers
|
||||
|
||||
= inject_enterprises
|
||||
|
||||
.producers{"ng-controller" => "EnterprisesCtrl", "ng-cloak" => true}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- content_for(:title) do
|
||||
Sign up as a producer
|
||||
|
||||
#panes
|
||||
#producer-signup.pane
|
||||
.row.header
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- content_for(:title) do
|
||||
Register
|
||||
|
||||
= inject_spree_api_key
|
||||
= inject_available_countries
|
||||
= inject_enterprise_attributes
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- content_for(:title) do
|
||||
Shops
|
||||
|
||||
#panes
|
||||
#shops.pane
|
||||
.row
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- content_for(:title) do
|
||||
Sign up as a hub
|
||||
|
||||
#panes
|
||||
#shops-signup.pane
|
||||
.row.header
|
||||
|
||||
@@ -1,18 +1,21 @@
|
||||
= inject_enterprises
|
||||
- content_for(:title) do
|
||||
Shopping Cart
|
||||
|
||||
= inject_enterprises
|
||||
|
||||
.darkswarm
|
||||
- content_for :order_cycle_form do
|
||||
%closing Your shopping cart
|
||||
%p
|
||||
%p
|
||||
Order ready for
|
||||
%strong
|
||||
- if @order.order_cycle
|
||||
= pickup_time @order.order_cycle
|
||||
= pickup_time @order.order_cycle
|
||||
- else
|
||||
= @order.distributor.next_collection_at
|
||||
|
||||
= render partial: "shopping_shared/details"
|
||||
|
||||
|
||||
%fieldset.footer-pad
|
||||
- if @order.line_items.empty?
|
||||
%div.row{"data-hook" => "empty_cart"}
|
||||
@@ -31,9 +34,9 @@
|
||||
.links{'data-hook' => "cart_buttons"}
|
||||
.row
|
||||
.columns.large-8{"data-hook" => ""}
|
||||
|
||||
|
||||
%a.button.large.secondary{href: main_app.shop_path}
|
||||
%i.ofn-i_008-caret-left
|
||||
%i.ofn-i_008-caret-left
|
||||
Continue shopping
|
||||
.columns.large-4.text-right
|
||||
%a#checkout-link.button.large.primary{href: main_app.checkout_path}
|
||||
@@ -41,4 +44,3 @@
|
||||
%i.ofn-i_007-caret-right
|
||||
|
||||
= render partial: "shared/footer"
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- content_for(:title) do
|
||||
Order Confirmation
|
||||
|
||||
= inject_enterprises
|
||||
|
||||
.darkswarm
|
||||
@@ -32,4 +35,4 @@
|
||||
= link_to t(:my_account), spree_account_path, :class => "button"
|
||||
|
||||
|
||||
= render partial: "shared/footer"
|
||||
= render partial: "shared/footer"
|
||||
|
||||
Reference in New Issue
Block a user