summaryrefslogtreecommitdiff
path: root/templates/layouts/default.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-13 18:59:46 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-13 18:59:46 +0200
commitc6812f6083ddf4507353ee3e77fb200b168cd54d (patch)
tree42779f7e55f11e3f9717d9481a2b11b30f35c58b /templates/layouts/default.html.ep
parent13dbcf876178da53509cf6af2fb579311ef93d78 (diff)
Print db and host in development mode
Diffstat (limited to 'templates/layouts/default.html.ep')
-rw-r--r--templates/layouts/default.html.ep13
1 files changed, 12 insertions, 1 deletions
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 1f82a2d..9ab9269 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -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();