crusade-tracker/config/_notifications/ide_notificator/responsibility.ftl.dist
2021-01-18 15:27:50 -05:00

50 lines
2.3 KiB
Plaintext

<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->
<#macro subject responsibility object>
<#-- @ftlvariable name="responsibility" type="jetbrains.buildServer.responsibility.ResponsibilityEntry" -->
<#-- @ftlvariable name="object" type="java.lang.Object" -->
<#compress>
<#assign reporter>
<@reporterDescription responsibility/>
</#assign>
<#assign doneByAnotherUser=(responsibility.state != "NONE" &&
responsibility.reporterUser?? && responsibility.responsibleUser?? &&
responsibility.reporterUser.id != responsibility.responsibleUser.id)/>
<#assign byWhom>by ${reporter?html}</#assign>
<#if responsibility.state.active>
<#if responsibility.reporterUser?? && responsibility.responsibleUser?? &&
responsibility.reporterUser.id == responsibility.responsibleUser.id>
${responsibility.responsibleUser.descriptiveName?html} started investigation of ${object}
<#else>
${responsibility.responsibleUser.descriptiveName?html} is assigned for investigation of ${object} ${byWhom}
</#if>
</#if>
<#if responsibility.state.fixed>
${responsibility.responsibleUser.descriptiveName?html} fixed ${object} <#if doneByAnotherUser>(done ${byWhom})</#if>
</#if>
<#if responsibility.state.givenUp>
${responsibility.responsibleUser.descriptiveName?html} gave up fixing ${object} <#if doneByAnotherUser>(done ${byWhom})</#if>
</#if>
</#compress>
</#macro>
<#macro comment responsibility>
<#-- @ftlvariable name="responsibility" type="jetbrains.buildServer.responsibility.ResponsibilityEntry" -->
<#if responsibility.comment?length != 0>
Comment: ${responsibility.comment?html}
</#if>
</#macro>
<#macro removeMethod responsibility>
<#-- @ftlvariable name="responsibility" type="jetbrains.buildServer.responsibility.ResponsibilityEntry" -->
Resolve: <#if responsibility.removeMethod.manually>manually<#else>automatically when fixed</#if>
</#macro>
<#macro reporterDescription responsibility>
<#-- @ftlvariable name="responsibility" type="jetbrains.buildServer.responsibility.ResponsibilityEntry" -->
<#if responsibility.reporterUser??>
${responsibility.reporterUser.descriptiveName}
<#else>
TeamCity
</#if>
</#macro>