public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
Added nightly footer
a8eb3b6a
data/web/templates/base.twig | 13 ++++++++++---
update.sh | 3 ++-
2 files changed, 12 insertions(+), 4 deletions(-)
Diff
diff --git a/data/web/templates/base.twig b/data/web/templates/base.twig
index 37c27e21..ba0810a1 100644
--- a/data/web/templates/base.twig
+++ b/data/web/templates/base.twig
@@ -477,13 +477,20 @@ function recursiveBase64StrToArrayBuffer(obj) {
{% if ui_texts.ui_footer %}
<hr><span class="rot-enc">{{ ui_texts.ui_footer|rot13|raw }}</span>
{% endif %}
- {% if mailcow_cc_username and mailcow_info.version_tag|default %}
+ {% if mailcow_cc_username and mailcow_info.mailcow_build|lower == "stable" and mailcow_info.version_tag|default %}
<span class="version">
🐮 + 🐋 = 💕
- <a href="{{ mailcow_info.git_project_url }}/releases/tag/{{ mailcow_info.version_tag }}" target="_blank">
- Version: {{ mailcow_info.version_tag }}
+ Version: <a href="{{ mailcow_info.git_project_url }}/releases/tag/{{ mailcow_info.version_tag }}" target="_blank">{{ mailcow_info.version_tag }}
</a>
</span>
+ {% endif %}
+ {% if mailcow_cc_username and mailcow_info.mailcow_build|lower == "nightly" and mailcow_info.version_tag|default %}
+ <span class="version">
+ 🛠️🐮 + 🐋 = 💕
+ Nightly: <a href="{{ mailcow_info.git_project_url }}/commit/{{ mailcow_info.git_commit }}" target="_blank">{{ mailcow_info.version_tag }}
+ </a><br>
+ <span style="text-align:right;display:block;">Build: {{ mailcow_info.git_commit_date }}</span>
+ </span>
{% endif %}
</div>
</body>
diff --git a/update.sh b/update.sh
index 7d47b3cc..2d8ed95a 100755
--- a/update.sh
+++ b/update.sh
@@ -873,11 +873,12 @@ fi
# Set app_info.inc.php
if [ ${BRANCH} == "master" ]; then
mailcow_git_version=$(git describe --tags `git rev-list --tags --max-count=1`)
- mailcow_last_git_version=""
elif [ ${BRANCH} == "nightly" ]; then
mailcow_git_version=$(git rev-parse --short HEAD)
+ mailcow_last_git_version=""
else
mailcow_git_version=$(git rev-parse --short HEAD)
+ mailcow_last_git_version=""
fi
mailcow_git_commit=$(git rev-parse HEAD)