serposcope.views.helpers.functions.ftl.html Maven / Gradle / Ivy
<#function groupLink group>
<#if group.module == "GOOGLExxx">
<#return "google">
#if>
<#return reverseRoute("google.GoogleGroupController", "view", "groupId", group.getId())>
#function>
<#function groupIcon group>
<#if group.module == "GOOGLE">
<#return "fa-google-plus-square">
#if>
<#if group.module == "TWITTER">
<#return "fa-twitter-square">
#if>
<#if group.module == "GITHUB">
<#return "fa-github-square">
#if>
<#return reverseRoute("google.GoogleGroupController", "view", "groupId", group.getId())>
#function>
<#function noreferrer url>
<#assign urlx = url?html >
<#return
"data:text/html," +
"" +
"Hiding referrer " +
"" +
"" +
"Hiding referrer and redirecting to " + url + ""
>
#function>
<#function gsIcoInfos search>
<#assign country = "">
<#if search.getDevice() == "SMARTPHONE" >
<#assign device = "">
<#else>
<#assign device = "">
#if>
<#if search.getLocal()?has_content >
<#assign local = "">
<#else>
<#assign local = "">
#if>
<#if search.getDatacenter()?has_content >
<#assign datacenter = "">
<#else>
<#assign datacenter = "">
#if>
<#if search.getCustomParameters()?has_content >
<#assign params = "">
<#else>
<#assign params = "">
#if>
<#return country + device + local + datacenter + params>
<#--
" " +search.getKeyword() + ""
>
-->
#function>
<#function formatScore score>
<#return (score/100)?string(",##0.00")?replace(",",".") >
#function>
<#function countryCombo name value>
<#assign input = "" >
<#return input >
#function>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy