serposcope.views.HomeController.homeLayout.ftl.html Maven / Gradle / Ivy
The newest version!
<#assign sideMenu>
${i18n("label.groups")}
#assign>
<#macro homeLayout title="" >
<#import "../layout/root.ftl.html" as layout>
<@layout.rootLayout i18n("home.title") "${sideMenu}" >
${i18n("label.dbSize")} : <#if diskUsage?? >${diskUsage}<#else>${i18n("label.unavailableOnMySQL")}#if>
[${i18n("label.settings")?lower_case}]
${i18n("label.diskFree")} : <#if diskFree?? >${diskFree}<#else>${i18n("label.unavailable")}#if>
${i18n("home.lastTasks")} :
<#if lastRuns?? && lastRuns?has_content >
<#list lastRuns as task>
<#switch task.status>
<#case "RUNNING">
<#assign taskLabel="primary" >
<#assign taskCaption=i18n("home.taskRunning") >
<#break>
<#case "ABORTING">
<#assign taskLabel="warning" >
<#assign taskCaption=i18n("home.taskAborting") >
<#break>
<#case "DONE_SUCCESS">
<#assign taskLabel="success" >
<#assign taskCaption=i18n("home.taskOk") >
<#break>
<#default>
<#assign taskLabel="danger" >
<#assign taskCaption=i18n("home.taskFailure") >
#switch>
#list>
<#else>
-
#if>
${i18n("label.tasks")}
|
${i18n("label.logs")}
<#if currentRun?? && currentRun.isRunning() >
|
${i18n("label.abort")}
#if>
<#if currentRun?? && currentRun.isRunning() >
#if>
<#if lastRun?? >
${lastRun.getDay()}
<#if lastRun.status != "DONE_SUCCESS" >
(${i18n("home.taskFailure")})
#if>
<#if hasTarget >
<#nested>
<#else>
${i18n("home.noTarget")}
#if>
<#else>
${i18n("home.welcome")}
<#noescape>${i18n("home.quickStart")}#noescape>
#if>
@>
#macro>