summaryrefslogtreecommitdiff
path: root/templates/layouts/default.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-06 21:21:35 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-06 21:21:35 +0200
commit4e7f7a1d0e4c87f38ec0c494ab4850f706eed16b (patch)
tree9af6e3d840b5c92e60ba5015c0007f8f467f6a67 /templates/layouts/default.html.ep
parentb93c06dc402c854b0503db2355a06009e2a2140f (diff)
detect development mode for travelynx_dev* databases0.11
Diffstat (limited to 'templates/layouts/default.html.ep')
-rw-r--r--templates/layouts/default.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 51bc25f..fa8dacf 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -21,7 +21,7 @@
<nav class="deep-purple">
<div class="nav-wrapper container">
- <a href="/" class="brand-logo left"><%= $ENV{TRAVELYNX_DB_NAME} eq 'travelynx_dev' ? 'develynx' : 'travelynx' %></a>
+ <a href="/" class="brand-logo left"><%= $ENV{TRAVELYNX_DB_NAME} =~ m{travelynx_dev} ? 'develynx' : '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>