All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.consume.progressBar.ftl Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
<#macro progressSection total amount colorClass what>
    <#import "../common/util.ftl" as util>
    <#assign percent = 100.0*amount/total>
    
<#if percent gt 20> ${what}: ${util.prettyNumber(percent)}% <#elseif percent gt 4> ${util.prettyNumber(percent)}% <#elseif percent gt 1> ${util.prettyNumber(percent)}%
<#macro progressBar total preRetention skip read remain emHeight=1 legend=false> <#import "../common/util.ftl" as util> <#if total gt 0> <#if legend>
Begin
Read progress
End
<@progressSection total=total amount=preRetention colorClass="deleted" what="Processed retention-deleted"/> <@progressSection total=total amount=skip colorClass="skipped" what="Skipped"/> <@progressSection total=total amount=read colorClass="processed" what="Processed"/> <@progressSection total=total amount=remain colorClass="remaining" what="Remaining"/>
<#else> (empty)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy