File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
interface/web/dashboard/dashlets Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ function show($limit_to_client_id = null) {
2727 $ databases = $ app ->quota_lib ->get_databasequota_data ($ limit_to_client_id );
2828 //print_r($databases);
2929
30- $ has_databasequota = false ;
3130 $ total_used = 0 ;
3231 if (is_array ($ databases ) && !empty ($ databases )){
3332 foreach ($ databases as &$ db ) {
@@ -38,9 +37,6 @@ function show($limit_to_client_id = null) {
3837 }
3938 $ databases = $ app ->functions ->htmlentities ($ databases );
4039 $ tpl ->setloop ('databasequota ' , $ databases );
41- $ has_databasequota = isset ($ databases [0 ]['used ' ]);
42-
43- $ tpl ->setVar ('has_databasequota ' , $ has_databasequota );
4440 $ tpl ->setVar ('total_used ' , $ app ->functions ->formatBytes ($ total_used , 0 ));
4541
4642 return $ tpl ->grab ();
Original file line number Diff line number Diff line change 1414 < td > < a href ="# " data-load-content ="sites/database_edit.php?id={tmpl_var name='database_id'} " data-toggle ="tooltip " data-placement ="bottom " title ="" data-original-title ="{tmpl_var name='database_name'} "> {tmpl_var name='database_name'}</ a > </ td >
1515 < td > {tmpl_var name='used'}</ td >
1616 < td > {tmpl_var name='database_quota'}</ td >
17- {tmpl_if name="quota_raw " op="!=" value="-1"}< td >
17+ {tmpl_if name="database_quota_raw " op="!=" value="-1"}< td >
1818 < div class ='progress '>
1919 < div class ='progress-bar-striped progress-bar progress-bar-{tmpl_if name="used_percentage" op="<" value="50"}success{tmpl_elseif name="used_percentage" op="<" value="75"}warning{tmpl_else}danger{/tmpl_if} ' role ='progressbar ' aria-valuemin ='0 ' aria-valuemax ='100 ' aria-valuenow ='{tmpl_var name="used_percentage"} ' style ='width: {tmpl_var name="used_percentage"}% '> < span > {tmpl_var name="used_percentage"}%</ span >
2020 < span class ='sr-only '> {tmpl_var name='used'} {tmpl_var name='of_txt'} {tmpl_var name='database_quota'}</ span >
You can’t perform that action at this time.
0 commit comments