Skip to content

Commit 0ed8ded

Browse files
author
Kristan Kenney
committed
Merge branch 'feature/preview-program' into feature/user-roles
2 parents 459ab14 + 35ac134 commit 0ed8ded

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

@@ -3709,6 +3709,71 @@ form#vstobjects.suspended {
37093709
padding-right: 59px !important;
37103710
}
37113711

3712+
.footer-banner {
3713+
width: 100%;
3714+
text-align:center;
3715+
border-top: 1px solid rgba(255,255,255,0.25);
3716+
box-shadow: 0px -2px 4px rgb(0 0 0 / 40%);
3717+
font-size: 0.75rem;
3718+
padding: 10px;
3719+
position: fixed;
3720+
bottom: 0px;
3721+
}
3722+
3723+
.footer-banner b, .footer-banner strong {
3724+
color: unset;
3725+
}
3726+
3727+
.footer-banner a {
3728+
font-weight: 500;
3729+
color: #fff;
3730+
}
3731+
3732+
.footer-banner a:hover {
3733+
color: #fff;
3734+
}
3735+
3736+
.footer-banner a:hover {
3737+
text-decoration: underline;
3738+
}
3739+
3740+
.footer-banner.alpha {
3741+
background-color: #222;
3742+
color: #fff;
3743+
}
3744+
3745+
.footer-banner.alpha a {
3746+
color: #fff;
3747+
}
3748+
3749+
.footer-banner.alpha a:hover {
3750+
color: #fff;
3751+
}
3752+
3753+
.footer-banner.beta {
3754+
background-color: #eaeaea;
3755+
color: #404040;
3756+
}
3757+
3758+
.footer-banner.beta a {
3759+
color: #404040;
3760+
}
3761+
3762+
.footer-banner.developer {
3763+
background-color: yellow;
3764+
color: #000;
3765+
}
3766+
3767+
.footer-banner.developer a {
3768+
font-weight: 500;
3769+
color: #000;
3770+
}
3771+
3772+
.footer-banner.updates {
3773+
background-color: green;
3774+
color: #fff;
3775+
}
3776+
37123777
.float-left {
37133778
float: left;
37143779
}

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)