Skip to content

Commit 3d008ee

Browse files
author
Pascal Dreissen
committed
fixes #5954, fixes type, cleanup, fixes no progressbar when unlimited quota
1 parent a03b327 commit 3d008ee

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

interface/web/mail/templates/user_quota_stats_list.htm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ <h1>
5858
<td><a href="#" data-load-content="mail/mail_user_edit.php?id={tmpl_var name='id'}">{tmpl_var
5959
name="quota"}</a></td>
6060
<td colspan="2">
61-
{tmpl_if name="progressbar" op="!=" value="-1"}<div class="progress" style="height: 20px">
61+
{tmpl_if name="quota" op="!=" value="0"}<div class="progress" style="height: 20px">
6262
<div class='progress-bar-striped progress-bar-{tmpl_if name="percentage_sort" op="<" value="50"}success{tmpl_elseif name="percentage_sort" op="<" value="75"}warning{tmpl_else}danger{/tmpl_if}'
63-
role="progressbar" style="width: {tmpl_var name=" progressbar"}%;"
63+
role="progressbar" style="width: {tmpl_var name="progressbar"}%;"
6464
aria-valuenow="{tmpl_var name=" percentage"}" aria-valuemin="0" aria-valuemax="100">
65-
{tmpl_var name="percentage"}</div>
65+
<span>{tmpl_var name="percentage"}</span</div>
6666
</div>{/tmpl_if}
6767
</td>
6868

interface/web/themes/default/assets/stylesheets/ispconfig.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,22 @@ body {
284284
height: 20px;
285285
background-color: #ababab;
286286
font-weight: bold;
287+
position: relative;
287288
}
288289

289290
.progress-bar-danger, .progress-bar-warning, .progress-bar-success {
290291
text-align: center;
291292
color: white;
293+
display: list-item;
294+
}
295+
296+
.progress span {
297+
position: absolute;
298+
left: 0;
299+
width: 100%;
300+
text-align: center;
301+
z-index: 2;
302+
color: white;
292303
}
293304

294305
p.fieldset-legend {

0 commit comments

Comments
 (0)