added version string to title
This commit is contained in:
parent
41310e012d
commit
78860f3329
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
config.ini
|
config.ini
|
||||||
|
web/version.txt
|
|
@ -35,17 +35,21 @@ _buildConfig() {
|
||||||
echo "SHOW_LOGS=${SHOW_LOGS:-false}"
|
echo "SHOW_LOGS=${SHOW_LOGS:-false}"
|
||||||
echo "PASSWORD=${PASSWORD:-}"
|
echo "PASSWORD=${PASSWORD:-}"
|
||||||
echo "ALLOWED_IPS=${ALLOWED_IPS:-}"
|
echo "ALLOWED_IPS=${ALLOWED_IPS:-}"
|
||||||
|
echo ""
|
||||||
echo "[MAILSERVER]"
|
echo "[MAILSERVER]"
|
||||||
echo "MAILPORT=${MAILPORT:-25}"
|
echo "MAILPORT=${MAILPORT:-25}"
|
||||||
echo "DISCARD_UNKNOWN=${DISCARD_UNKNOWN:-true}"
|
echo "DISCARD_UNKNOWN=${DISCARD_UNKNOWN:-true}"
|
||||||
echo "ATTACHMENTS_MAX_SIZE=${ATTACHMENTS_MAX_SIZE:-0}"
|
echo "ATTACHMENTS_MAX_SIZE=${ATTACHMENTS_MAX_SIZE:-0}"
|
||||||
|
echo ""
|
||||||
echo "[DATETIME]"
|
echo "[DATETIME]"
|
||||||
echo "DATEFORMAT=${DATEFORMAT:-D.M.YYYY HH:mm}"
|
echo "DATEFORMAT=${DATEFORMAT:-D.M.YYYY HH:mm}"
|
||||||
|
echo ""
|
||||||
echo "[CLEANUP]"
|
echo "[CLEANUP]"
|
||||||
echo "DELETE_OLDER_THAN_DAYS=${DELETE_OLDER_THAN_DAYS:-false}"
|
echo "DELETE_OLDER_THAN_DAYS=${DELETE_OLDER_THAN_DAYS:-false}"
|
||||||
|
echo ""
|
||||||
|
GIT_VERSION=$(git describe --tags --always)
|
||||||
|
echo "[VERSION]"
|
||||||
|
echo "VERSION=${GIT_VERSION:-dev}"
|
||||||
}
|
}
|
||||||
|
|
||||||
_buildConfig > /var/www/opentrashmail/config.ini
|
_buildConfig > /var/www/opentrashmail/config.ini
|
||||||
|
|
1
version.txt
Normal file
1
version.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
dev
|
|
@ -26,6 +26,10 @@ tr.htmx-swapping td {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.version {
|
||||||
|
font-size: 0.8em;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
/* pico css overrides */
|
/* pico css overrides */
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="topnav" id="OTMTopnav">
|
<div class="topnav" id="OTMTopnav">
|
||||||
<a href="/"><img src="/imgs/logo_300_light.png" width="50px" /> Open Trashmail</a>
|
<a href="/"><img src="/imgs/logo_300_light.png" width="50px" /> Open Trashmail <small class="version"><?=getVersion()?></small></a>
|
||||||
<a><input id="email" hx-post="/api/address" hx-target="#main" name="email" type="email" style="margin-bottom:0px" hx-trigger="input changed delay:500ms" placeholder="email address" aria-label="email address"></a>
|
<a><input id="email" hx-post="/api/address" hx-target="#main" name="email" type="email" style="margin-bottom:0px" hx-trigger="input changed delay:500ms" placeholder="email address" aria-label="email address"></a>
|
||||||
<a href="/random" hx-get="/api/random" hx-target="#main"><i class="fas fa-random"></i> Generate random</a>
|
<a href="/random" hx-get="/api/random" hx-target="#main"><i class="fas fa-random"></i> Generate random</a>
|
||||||
<?php if($settings['SHOW_ACCOUNT_LIST']): ?><a href="/listaccounts" hx-get="/api/listaccounts" hx-target="#main" hx-push-url="/listaccounts"><i class="fas fa-list"></i> List accounts</a><?php endif; ?>
|
<?php if($settings['SHOW_ACCOUNT_LIST']): ?><a href="/listaccounts" hx-get="/api/listaccounts" hx-target="#main" hx-push-url="/listaccounts"><i class="fas fa-list"></i> List accounts</a><?php endif; ?>
|
||||||
|
|
Loading…
Reference in a new issue