diff --git a/etc/ngcp_panel.conf b/etc/ngcp_panel.conf index feece8c1ce..2d8a9a0d10 100644 --- a/etc/ngcp_panel.conf +++ b/etc/ngcp_panel.conf @@ -12,6 +12,7 @@ log4perl.appender.Default.layout.ConversionPattern=%d{ISO8601} [%p] [%F +%L] %m{ <general> maintenance_mode 0 + ui_enable 0 </general> <api_debug_opts> diff --git a/share/layout/body.tt b/share/layout/body.tt index 00c1f11507..69c04f2f3a 100644 --- a/share/layout/body.tt +++ b/share/layout/body.tt @@ -122,6 +122,11 @@ [% END; -%] © 2013 - [% date.format(date.now, '%Y') -%] <a href="http://www.sipwise.com">Sipwise GmbH</a>, [% c.loc('all rights reserved') %]. </div> + [% IF c.config.general.ui_enable -%] + <div class="nav pull-right"> + <b><a href="/v2/#/[% c.req.path -%]">[% c.loc('GO TO NEW ADMIN PANEL') -%]</a></b> + </div> + [% END -%] </div> </div> </div>