From e3b536d58c98873e6f043a19ec1b4eb4545736a1 Mon Sep 17 00:00:00 2001 From: Yan Date: Tue, 31 Oct 2017 10:50:13 +0630 Subject: [PATCH] check and update for origami btn show --- app/views/origami/home/show.html.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb index acd3c914..86984dc1 100755 --- a/app/views/origami/home/show.html.erb +++ b/app/views/origami/home/show.html.erb @@ -316,8 +316,8 @@ - <% if @dining.bookings.length >= 1 %> - <% if @status_order == 'order' && @status_sale != 'sale' %> + <% if @dining.status != "available" %> + <% if @status_order == 'order' %> @@ -327,7 +327,8 @@ - <% else %> + <% end %> + <% if @status_sale == 'sale' %>