diff --git a/app/views/dashboard/about.html.slim b/app/views/dashboard/about.html.slim
new file mode 100644
index 00000000..58324a5b
--- /dev/null
+++ b/app/views/dashboard/about.html.slim
@@ -0,0 +1,31 @@
+- title t('menu.about')
+= image_tag 'icons/logo-big.png', style: 'float: right'
+p
+ |
+ Qwaiter is een systeem om bestellingen te doen met je smartphone.
+ Als je wel eens op een terras of een afgelegen deel van een horeca gelegenheid
+ hebt gezeten en vond dat het te lang duurde voordat er iemand aan je kwam vragen
+ wat je wil bestellen dan weet je dat er nog veel te verbeteren is.
+p
+ |
+ Om horeca gelegenheden te helpen de vraag van klanten beter te kunnen verwerken
+ is Qwaiter ontstaan. Qwaiter is een toevoeging voor horeca gelegenheden om klanten
+ met hun smartphone te laten bestellen. Dit is de focus van Qwaiter! Om het gemak
+ en de sfeer waar mensen aan gewend zijn te handhaven integreert Qwaiter zo goed
+ mogelijk met de ervaring van mensen. Klanten kunnen gewoon op een lijstje bestellen
+ en bij ondersteunde systemen komt de bestelling gewoon achter de bar of in de keuken
+ uitgeprint.
+p
+ '
+ Qwaiter is gratis om in gebruik te nemen en in een handomdraai toegevoegd als extra dienst.
+ Maak als horeca gelegenheid een
+ =' link_to 'account', new_supplier_registration_path
+ |
+ aan. Richt deze in en je kan aan de slag!
+p
+ '
+ Heb je een ervaring of idee waardoor we de ervaring voor zowel de horeca bezoeker als
+ de horeca gelegenheid kunnen verbeteren mail dit dan naar:
+ =' mail_to 'ervaringe@qwaiter.com'
+ |
+ dan kunnen wij ervoor zorgen dat het gaan naar een horeca gelegenheid leuk en makkelijk wordt!
diff --git a/app/views/theme1/_navigation.html.slim b/app/views/theme1/_navigation.html.slim
index ba4af5a6..4cc4f793 100644
--- a/app/views/theme1/_navigation.html.slim
+++ b/app/views/theme1/_navigation.html.slim
@@ -1,7 +1,7 @@
ul.nav
li[class=(current_page?(controller: '/dashboard', action: 'home') ? :active : nil)]= link_to t('menu.home'), root_path
+ li[class=(current_page?(controller: '/dashboard', action: 'about') ? :active : nil)]= link_to t('menu.about'), about_path
li[class=(current_page?(controller: '/dashboard', action: 'clients') ? :active : nil)]= link_to t('menu.clients'), clients_path
li[class=(current_page?(controller: '/dashboard', action: 'bars_restaurants') ? :active : nil)]= link_to t('menu.bars_restaurants'), bars_restaurants_path
- li[class=(current_page?(controller: '/dashboard', action: 'enquete') ? :active : nil)]= link_to t('menu.enquete'), enquete_path
li[class=(current_page?(controller: '/dashboard', action: 'cartoon') ? :active : nil)]= link_to t('menu.cartoon'), cartoon_path
li[class=(current_page?(controller: '/dashboard', action: 'contact') ? :active : nil)]= link_to t('menu.contact'), contact_path
diff --git a/config/locales/en.yml b/config/locales/en.yml
index afca83fc..cb80293d 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -4,6 +4,7 @@ en:
hello: "Hello world"
menu:
home: Home
+ about: About
bars_restaurants: 'Bars & Restaurants'
clients: Gebruikers
enquete: Enquete
diff --git a/config/locales/nl.yml b/config/locales/nl.yml
index fbf92c2f..eea1b875 100644
--- a/config/locales/nl.yml
+++ b/config/locales/nl.yml
@@ -3,7 +3,8 @@
nl:
menu:
home: Home
- bars_restaurants: 'Bars & Restaurants'
+ about: Over Qwaiter
+ bars_restaurants: 'Horeca'
clients: Gebruikers
enquete: Enquete
cartoon: Cartoon
diff --git a/config/routes.rb b/config/routes.rb
index 750cf313..efee1149 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -61,6 +61,7 @@ Qwaiter::Application.routes.draw do
#match '/show_products' => 'dashboard#show_products', as: :user_products
# GENERAL
+ get '/about' => 'dashboard#about'
get '/enquete' => 'dashboard#enquete'
get '/cartoon' => 'dashboard#cartoon'
get '/bars-restaurants' => 'dashboard#bars_restaurants', as: :bars_restaurants
diff --git a/spec/lib/qwaiter/distribution_spec.rb b/spec/lib/qwaiter/distribution_spec.rb
new file mode 100644
index 00000000..dd25fa0e
--- /dev/null
+++ b/spec/lib/qwaiter/distribution_spec.rb
@@ -0,0 +1,21 @@
+# encoding: UTF-8
+require 'spec_helper'
+
+describe Qwaiter::Distribution do
+ describe 'distribute_lattice' do
+ {
+ [20 , 10, 4] => [10.0, 5.0],
+ [10 , 10, 4] => [ 5.0, 5.0],
+ [20 , 5, 4] => [ 5.0, 5.0],
+ [30 , 10, 4] => [ 7.5, 10.0],
+ [10 , 30, 4] => [10.0, 7.5],
+ [10 , 10, 3] => [ 5.0, 5.0],
+ [13.6, 40, 7] => [ 6.8, 10.0],
+ [13.6, 40, 9] => [ 6.8, 8.0],
+ [13.6, 40, 10] => [ 6.8, 8.0],
+ [40, 40, 23] => [ 8.0, 8.0],
+ }.each do |params, result|
+ it("handles #{params.join(', ')}"){ Qwaiter::Distribution.distribute_lattice(*params).should == result }
+ end
+ end
+end