From 9c7a436cf70ed4f8846e99373bf32a1ae9cd358f Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Mon, 11 May 2015 10:47:35 +0300 Subject: [PATCH] show xml console link only during testing/staging phase --- app/views/layouts/registrar/application.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/registrar/application.haml b/app/views/layouts/registrar/application.haml index 51e3961e4..f9e5c830c 100644 --- a/app/views/layouts/registrar/application.haml +++ b/app/views/layouts/registrar/application.haml @@ -44,7 +44,7 @@ - active_class = ['registrar/invoices'].include?(params[:controller]) ? 'active' :nil %li{class: active_class}= link_to t(:billing), registrar_invoices_path - - if can? :view, :registrar_xml_console + - if !Rails.env.production? && can? :view, :registrar_xml_console - active_class = ['registrar/xml_consoles'].include?(params[:controller]) ? 'active' :nil %li{class: active_class}= link_to t(:xml_console), registrar_xml_console_path