>>>>>>>>>>>>>>>>>>>>> PARTIÇÕES <<<<<<<<<<<<<<<<<<<<<<<< HTML:
{{#each data}} {{/each}}
PARTIÇÃO ESPAÇO TOTAL ESPAÇO USADO UTILIZAÇÃO
{{Particao}} {{[Total space]}} {{[Used space]}} {{[Space utilization]}}
CSS: .disk-container { background: #1E223C; color: white; border-radius: 16px; padding: 12px; font-size: 14.4px; box-shadow: 9px 4px 6px rgba(0, 0, 0, 0.3); } .disk-table { width: 100%; border-collapse: collapse; } .disk-table thead tr { border-bottom: 2px solid rgba(255, 255, 255, 0.2); } .disk-table th { text-align: right; font-weight: bold; padding-bottom: 9px; color: white; background: #1E223C; } .disk-table th:first-child { text-align: left; } .disk-table tbody tr { border-bottom: 2px solid rgba(255, 255, 255, 0.2); } .disk-table td { padding: 9px; font-size: 14.4px; vertical-align: middle; text-align: right; } .disk-table td:first-child { text-align: left; } .disk-usage { display: inline-flex; align-items: center; justify-content: center; width: 54px; color: black; border-radius: 50px; padding: 5px 30px; font-weight: 800; font-size: 15px; } JAVASCRIPT: context.handlebars.registerHelper('diskColor', function (usage) { const value = parseFloat(usage.toString().replace('%', '')); if (value > 90) return '#e74c3c'; if (value > 70) return '#ffcc00'; return '#2ecc71'; });