detect development mode for travelynx_dev* databases
This commit is contained in:
parent
b93c06dc40
commit
4e7f7a1d0e
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ sub custom {
|
||||||
body => encode( 'utf-8', $body ),
|
body => encode( 'utf-8', $body ),
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($ENV{TRAVELYNX_DB_NAME} eq 'travelynx_dev') {
|
if ($ENV{TRAVELYNX_DB_NAME} =~ m{travelynx_dev}) {
|
||||||
# Do not send mail in dev mode
|
# Do not send mail in dev mode
|
||||||
say "sendmail to ${to}: ${subject}\n\n${body}";
|
say "sendmail to ${to}: ${subject}\n\n${body}";
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -21,7 +21,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"><%= $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">
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue