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

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 rank.rank == 32767 >
        <#assign last_rank = '-' >
    <#else>
        <#assign last_rank = rank.rank >
    
    
    <#if rank.previousRank == 32767 >
        <#assign previous_rank = '-' >
    <#else>
        <#assign previous_rank = rank.previousRank >
        
    
    <#return '
        
            
                ' + fu.gsIcoInfos(search) + '
                
                ${search.getKeyword()}
            
            ${last_rank}
            ${rank.getDisplayDiff()}
        
        '/>
    
    <#return ""/>

<#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

score
<#list summary.getTopRanks() as rank > <#noescape>${renderSearch(rank, searches?api.get(rank.googleSearchId), target)}
${i18n("label.keyword")} rank +/-
<#list summary.getTopImprovements() as rank > <#noescape>${renderSearch(rank, searches?api.get(rank.googleSearchId), target)}
${i18n("label.keyword")} rank +/-
<#list summary.getTopLosts() as rank > <#noescape>${renderSearch(rank, searches?api.get(rank.googleSearchId), target)}
${i18n("label.keyword")} rank +/-




© 2015 - 2025 Weber Informatics LLC | Privacy Policy