mirror of
https://github.com/derf/travelynx
synced 2024-12-11 13:33:00 +00:00
Print db and host in development mode
This commit is contained in:
parent
13dbcf8761
commit
c6812f6083
1 changed files with 12 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
<nav class="deep-purple">
|
||||
<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">
|
||||
% if (is_user_authenticated()) {
|
||||
<li class="<%= navbar_class('/history') %>"><a href='/history' title="History"><i class="material-icons">history</i></a></li>
|
||||
|
@ -34,6 +34,17 @@
|
|||
</div>
|
||||
</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">
|
||||
% if (is_user_authenticated()) {
|
||||
% my $acc = current_user();
|
||||
|
|
Loading…
Reference in a new issue