From 895e028e7c6943c51a206f4d8ec21ea4e1ff9a72 Mon Sep 17 00:00:00 2001 From: Nweni Date: Wed, 21 Jun 2017 05:55:45 +0630 Subject: [PATCH] added cashier station time --- app/controllers/application_controller.rb | 1 + app/views/layouts/_header_orgiami.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index bfde77c9..42c53b59 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -19,6 +19,7 @@ class ApplicationController < ActionController::Base def current_login_employee @employee = Employee.find_by_token_session(session[:session_token]) + @time = Time.now end private diff --git a/app/views/layouts/_header_orgiami.html.erb b/app/views/layouts/_header_orgiami.html.erb index 894e7a1f..9fc53f02 100644 --- a/app/views/layouts/_header_orgiami.html.erb +++ b/app/views/layouts/_header_orgiami.html.erb @@ -1,7 +1,7 @@
-
- CASHIER STATION 1 - CLOCK +
+ Cashier Station 1 - <%= Time.now.strftime('%a, %d %b %Y %H:%M:%S %p') %>
<% if current_login_employee %>