From 72af0b8a3f5379fe05815b4edcea2e8476e7a4f5 Mon Sep 17 00:00:00 2001 From: flifloo Date: Tue, 18 Aug 2020 17:10:45 +0200 Subject: [PATCH] Add locales to sandwiches --- locales/en.json | 5 +++-- views/layout.pug | 2 +- views/sandwiches.pug | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/locales/en.json b/locales/en.json index b517b5f..e528061 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1,7 +1,6 @@ { "layout": { "home": "Home", - "sandwiches": "Sandwiches", "administration": "Administration", "logout": "Logout", "login": "Login", @@ -44,5 +43,7 @@ "password": "Password", "email": "Email", "department": "Department", - "commands": "Commands" + "commands": "Commands", + "sandwiches": "Sandwiches", + "date": "Date" } diff --git a/views/layout.pug b/views/layout.pug index 7019b34..2ae1bcf 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -11,7 +11,7 @@ html if user if user.permissions >= 1 p - - a(href="/sandwiches")=__("layout.sandwiches") + a(href="/sandwiches")=__("sandwiches") if user.permissions >= 2 p - a(href="/commands")=__("commands") diff --git a/views/sandwiches.pug b/views/sandwiches.pug index 07c2f32..90f3ff1 100644 --- a/views/sandwiches.pug +++ b/views/sandwiches.pug @@ -2,10 +2,10 @@ extends layout block content div#date-selector.card - label(for="date") Date + label(for="date")=__("date") input#date(type="date" value=date) div.card - h1 Sandwiches + h1=__("sandwiches") each sandwich in sandwiches div.sandwich h2 #{sandwich.SandwichName}: #{sandwich.dataValues.number}