Print db and host in development mode

This commit is contained in:
Daniel Friesel 2019-04-13 18:59:46 +02:00
parent 13dbcf8761
commit c6812f6083

View file

@ -23,7 +23,7 @@
<nav class="deep-purple"> <nav class="deep-purple">
<div class="nav-wrapper container"> <div class="nav-wrapper container">
<a href="/" class="brand-logo left"><%= app->config->{db}->{database} =~ m{travelynx_dev} ? 'develynx' : 'travelynx' %></a> <a href="/" class="brand-logo left">travelynx</a>
<ul id="nav-mobile" class="right"> <ul id="nav-mobile" class="right">
% if (is_user_authenticated()) { % if (is_user_authenticated()) {
<li class="<%= navbar_class('/history') %>"><a href='/history' title="History"><i class="material-icons">history</i></a></li> <li class="<%= navbar_class('/history') %>"><a href='/history' title="History"><i class="material-icons">history</i></a></li>
@ -34,6 +34,17 @@
</div> </div>
</nav> </nav>
% if (app->mode eq 'development') {
<div class="container">
<div class="row">
<div class="col s12 red darken-4 white-text">
Development Mode Datenbank: <%= app->config->{db}->{database} %>
@ <%= app->config->{db}->{host} %>
</div>
</div>
</div>
% }
<div class="container"> <div class="container">
% if (is_user_authenticated()) { % if (is_user_authenticated()) {
% my $acc = current_user(); % my $acc = current_user();