Skip to content

Commit 16b2eb4

Browse files
author
Kristan Kenney
committed
Add footer messages for developer/beta builds
1 parent c436292 commit 16b2eb4

File tree

3 files changed

+93
-3
lines changed

3 files changed

+93
-3
lines changed

web/css/src/themes/default.css

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ a {
839839
padding: 4rem;
840840
}
841841

842-
.notification-container .empty .status-icon {
842+
.notification-container .empty . {
843843
color: #54a6e5;
844844
}
845845

@@ -3677,6 +3677,71 @@ form#vstobjects.suspended {
36773677
padding-right: 59px !important;
36783678
}
36793679

3680+
.footer-banner {
3681+
width: 100%;
3682+
text-align:center;
3683+
border-top: 1px solid rgba(255,255,255,0.25);
3684+
box-shadow: 0px -2px 4px rgb(0 0 0 / 40%);
3685+
font-size: 0.75rem;
3686+
padding: 10px;
3687+
position: fixed;
3688+
bottom: 0px;
3689+
}
3690+
3691+
.footer-banner b, .footer-banner strong {
3692+
color: unset;
3693+
}
3694+
3695+
.footer-banner a {
3696+
font-weight: 500;
3697+
color: #fff;
3698+
}
3699+
3700+
.footer-banner a:hover {
3701+
color: #fff;
3702+
}
3703+
3704+
.footer-banner a:hover {
3705+
text-decoration: underline;
3706+
}
3707+
3708+
.footer-banner.alpha {
3709+
background-color: #222;
3710+
color: #fff;
3711+
}
3712+
3713+
.footer-banner.alpha a {
3714+
color: #fff;
3715+
}
3716+
3717+
.footer-banner.alpha a:hover {
3718+
color: #fff;
3719+
}
3720+
3721+
.footer-banner.beta {
3722+
background-color: #eaeaea;
3723+
color: #404040;
3724+
}
3725+
3726+
.footer-banner.beta a {
3727+
color: #404040;
3728+
}
3729+
3730+
.footer-banner.developer {
3731+
background-color: yellow;
3732+
color: #000;
3733+
}
3734+
3735+
.footer-banner.developer a {
3736+
font-weight: 500;
3737+
color: #000;
3738+
}
3739+
3740+
.footer-banner.updates {
3741+
background-color: green;
3742+
color: #fff;
3743+
}
3744+
36803745
.float-left {
36813746
float: left;
36823747
}

web/css/themes/default.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/templates/footer.html

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
</div>
2-
2+
<? if (($_SESSION['RELEASE_BRANCH'] !== "release") && ($_SESSION['RELEASE_BRANCH'] !== "beta")) { ?>
3+
<div class="footer-banner alpha" id="banner">
4+
<div>
5+
<b>Pre-release development build for testing purposes only.</b> Please report bugs or issues to our development team on <a href="https://github.com/hestiacp/hestiacp/"><i class="fab fa-github icon-large icon-pad-right"></i>GitHub</a>.<br> Hestia Control Panel <b>v<?php echo $_SESSION['VERSION']; ?></b> (code branch <b><?php echo $_SESSION['RELEASE_BRANCH']; ?></b>)
6+
</div>
7+
<div style="margin-top: 4px;"><a href="javascript:elementHideShow('banner');">Hide</a></div>
8+
</div>
9+
<?}?>
10+
<? if ($_SESSION['RELEASE_BRANCH'] === "beta") { ?>
11+
<div class="footer-banner beta" id="banner">
12+
<div>
13+
<b>Thank you for testing <?=_('Hestia Control Panel')?> v<?=$_SESSION['VERSION']?>!</b><br> Please report any issues that you encounter to our development team on <a href="https://github.com/hestiacp/hestiacp/"><i class="fab fa-github icon-large icon-pad-right"></i>GitHub</a>.
14+
</div>
15+
<div style="margin-top: 4px;"><a href="javascript:elementHideShow('banner');">Hide</a></div>
16+
</div>
17+
<?}?>
18+
<? if ($_SESSION['user'] === 'admin') {?>
19+
<? if ($_SESSION['updateAvailableNotify'] === "yes") { ?>
20+
<div class="footer-banner updates" id="banner">
21+
<div>
22+
<b>New updates are available!</b> To upgrade your server now, run <span style="font-family:'Courier New', Courier, monospace">apt update && apt upgrade</span> from a shell session.
23+
</div>
24+
<div style="margin-top: 4px;"></div><a href="javascript:elementHideShow('banner');">Hide</a></div>
25+
</div>
26+
<?}?>
27+
<?}?>
328
<div title="<?=_('Confirmation')?>" class="confirmation-text-redirect hidden">
429
<p class="confirmation"><?=_('LEAVE_PAGE_CONFIRMATION')?></p>
530
</div>

0 commit comments

Comments
 (0)