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

clovsky.swagger-coverage-commons.1.5.0.source-code.ui.ftl Maven / Gradle / Ivy

<#macro progressbar current full height=16>
    <#if full gt 0 >
        <#assign percentValue = 100*current/(full)>
        <#assign bgStyle = "bg-danger">

        <#if percentValue gt 33>
            <#assign bgStyle = "bg-warning">
        

        <#if percentValue gt 66>
            <#assign bgStyle = "bg-success">
        

        
<#macro progress current full postfix>
<#if full gt 0 > ${current}/${full} (${100*(current/full)}%) <#else> -- ${postfix}
<#if full gt 0 > <@progressbar current = current full = full />
<#macro coverageBadget counter> <#if counter.all gt 0> <#assign fullValue = counter.full * 100 / counter.all> <#assign partlyValue = counter.party * 100 / counter.all> <#assign emptyValue = counter.empty * 100 / counter.all>
<#macro coverageStateBadget operationResult> <#if operationResult.processCount == 0> ${i18["common.state.no_call"]} <#else> <#switch operationResult.state> <#case "FULL"> ${i18["common.state.full"]} <#break> <#case "PARTY"> ${i18["common.state.partial"]} <#break> <#case "EMPTY"> ${i18["common.state.empty"]} <#break> <#default> <#macro success text> ${text} <#macro danger text> ${text} <#macro question text> ${text}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy