Repository navigation
Add: Show user and bandwidth quota on the dashboard - #5031
Merged
jaapmarcus merged 1 commit intoJul 11, 2025
Merged
jaapmarcus merged 1 commit into
jaapmarcus merged 1 commit into
Conversation
|
Does this future inform the client that his disk is full via email? @sahsanu |
No. The code added here in this github post only affects what you see in the panel. It does not do anything else. |
Member
No it doesn't it is only a template change. |
jaapmarcus
approved these changes
Jul 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A forum user suggested displaying the user's disk and bandwidth quota on the dashboard.
https://forum.hestiacp.com/t/display-quota-in-user-dashboard/6498
User jojo showed the code to add the disk quota and I followed their code to also add the bandwidth quota.
Note: the
panel.phptemplate has many modifications but it's becausenpx prettier --write panel.phpmodified the file.The code added is this:
<span class="top-bar-usage-item"> <i class="fas fa-hard-drive" title="<?= _("Disk") ?>: <?= humanize_usage_size($panel[$user]["U_DISK"]) ?> <?= humanize_usage_measure($panel[$user]["U_DISK"]) ?>"></i> <span class="u-text-bold"> <?= humanize_usage_size($panel[$user]["U_DISK"]) ?> </span> <?= humanize_usage_measure($panel[$user]["U_DISK"]) ?> / <span class="u-text-bold"> <?= humanize_usage_size($panel[$user]["DISK_QUOTA"]) ?> </span> <?= humanize_usage_measure($panel[$user]["DISK_QUOTA"]) ?> </span> <span class="top-bar-usage-item"> <i class="fas fa-right-left" title="<?= _("Bandwidth") ?>: <?= humanize_usage_size($panel[$user]["U_BANDWIDTH"]) ?> <?= humanize_usage_measure($panel[$user]["U_BANDWIDTH"]) ?>"></i> <span class="u-text-bold"> <?= humanize_usage_size($panel[$user]["U_BANDWIDTH"]) ?> </span> <?= humanize_usage_measure($panel[$user]["U_BANDWIDTH"]) ?> / <span class="u-text-bold"> <?= humanize_usage_size($panel[$user]["BANDWIDTH"]) ?> </span> <?= humanize_usage_measure($panel[$user]["BANDWIDTH"]) ?> </span>