serposcope.views.HomeController.summary.ftl.html Maven / Gradle / Ivy
The newest version!
<#function renderSearch rank search target>
<#if search?? >
<#if (rank.diff < 0) >
<#assign diffclass = 'text-success' >
<#elseif (rank.diff > 0) >
<#assign diffclass = 'text-danger' >
<#else>
<#assign diffclass = '' >
#if>
<#if rank.rank == 32767 >
<#assign last_rank = '-' >
<#else>
<#assign last_rank = rank.rank >
#if>
<#if rank.previousRank == 32767 >
<#assign previous_rank = '-' >
<#else>
<#assign previous_rank = rank.previousRank >
#if>
<#return '
' + fu.gsIcoInfos(search) + '
${search.getKeyword()}
${last_rank}
${rank.getDisplayDiff()}
'/>
#if>
<#return ""/>
#function>
<#import "homeLayout.ftl.html" as layout>
<@layout.homeLayout i18n("home.title") >
<#list summaries as record>
<#assign target = record.target >
<#assign summary = record.summary >
<#assign targetLink = reverseRoute("google.GoogleTargetController", "target", "groupId", target.getGroupId(), "targetId", target.getId()) >
<#assign targetLinkVariation = reverseRoute("google.GoogleTargetController", "target", "groupId", target.getGroupId(), "targetId", target.getId(), "display", "variation") >
${fu.formatScore(summary.getScoreBP())}%
<#if (summary.getDiffBP() > 0) >
+${fu.formatScore(summary.getDiffBP())}
<#elseif (summary.getDiffBP() < 0)>
${fu.formatScore(summary.getDiffBP())}
<#else>
0
#if>
score
${i18n("label.keyword")}
rank
+/-
<#list summary.getTopRanks() as rank >
<#noescape>${renderSearch(rank, searches?api.get(rank.googleSearchId), target)}#noescape>
#list>
${i18n("label.keyword")}
rank
+/-
<#list summary.getTopImprovements() as rank >
<#noescape>${renderSearch(rank, searches?api.get(rank.googleSearchId), target)}#noescape>
#list>
${i18n("label.keyword")}
rank
+/-
<#list summary.getTopLosts() as rank >
<#noescape>${renderSearch(rank, searches?api.get(rank.googleSearchId), target)}#noescape>
#list>
#list>
@>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy