show xml console link only during testing/staging phase

This commit is contained in:
Priit Tark 2015-05-11 10:47:35 +03:00
parent e2ed907f04
commit 9c7a436cf7

View file

@ -44,7 +44,7 @@
- active_class = ['registrar/invoices'].include?(params[:controller]) ? 'active' :nil - active_class = ['registrar/invoices'].include?(params[:controller]) ? 'active' :nil
%li{class: active_class}= link_to t(:billing), registrar_invoices_path %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 - active_class = ['registrar/xml_consoles'].include?(params[:controller]) ? 'active' :nil
%li{class: active_class}= link_to t(:xml_console), registrar_xml_console_path %li{class: active_class}= link_to t(:xml_console), registrar_xml_console_path