From e1ceb050e19c7574bca146a8da7047ee4ff456b5 Mon Sep 17 00:00:00 2001
From: Marius Burkard <m.burkard@pixcept.de>
Date: Sun, 10 Jul 2016 05:02:35 -0400
Subject: [PATCH] Merge branch 'stable-3.1'

---
 interface/web/dashboard/dashlets/templates/limits.htm |   37 ++++++++++++++++++++++++++-----------
 1 files changed, 26 insertions(+), 11 deletions(-)

diff --git a/interface/web/dashboard/dashlets/templates/limits.htm b/interface/web/dashboard/dashlets/templates/limits.htm
index 11fe0bb..cc98f78 100644
--- a/interface/web/dashboard/dashlets/templates/limits.htm
+++ b/interface/web/dashboard/dashlets/templates/limits.htm
@@ -1,11 +1,26 @@
-	<h2>{tmpl_var name='limits_txt'}</h2>
-	<div style="width:350px;">
-	<table class="list">
-	<tmpl_loop name='rows'>
-		<tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
-		  <td>{tmpl_var name='field_txt'}</td>
-		  <td style="white-space: nowrap">{tmpl_var name='usage'} {tmpl_var name='of_txt'} {tmpl_var name='value'}</td>
-		</tr>
-	</tmpl_loop>
-	</table>
-	</div>
\ No newline at end of file
+	<div class='table-wrapper'>
+	  <table class='table'>
+		<caption>{tmpl_var name='limits_txt'}</caption>
+		<thead class="dark form-group-sm">
+		  <tr>
+			<th>&nbsp;</th>
+			<th colspan='2'>&nbsp;</th>
+		  </tr>
+		</thead>
+		<tbody>
+		<tmpl_loop name='rows'>
+			<tr>
+				<td>{tmpl_var name='field_txt'}</td>
+				<td>{tmpl_var name='usage'} {tmpl_var name='of_txt'} {tmpl_var name='value'}</td>
+				<td>
+				<div class='progress'>
+					<div class='progress-bar progress-bar-{tmpl_if name="percentage" op="<" value="50"}success{tmpl_elseif name="percentage" op="<" value="75"}warning{tmpl_else}danger{/tmpl_if}' role='progressbar' aria-valuemin='0' aria-valuemax='100' aria-valuenow='{tmpl_var name="percentage"}' style='width:{tmpl_var name="percentage"}%' data-toggle="tooltip" data-placement="bottom" title="{tmpl_var name='percentage'}%">
+					<span class='sr-only'>{tmpl_var name='usage'} {tmpl_var name='of_txt'} {tmpl_var name='value'}</span>
+					</div>
+				</div>
+				</td>
+			</tr>
+		</tmpl_loop>
+		</tbody>
+	  </table>
+	</div>

--
Gitblit v1.9.1