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

serposcope.views.helpers.functions.ftl.html Maven / Gradle / Ivy

<#function groupLink group>
    <#if group.module == "GOOGLExxx">
        <#return "google">
    
    <#return reverseRoute("google.GoogleGroupController", "view", "groupId", group.getId())>


<#function groupIcon group>
    <#if group.module == "GOOGLE">
        <#return "fa-google-plus-square">
    
    <#if group.module == "TWITTER">
        <#return "fa-twitter-square">
        
    <#if group.module == "GITHUB">
        <#return "fa-github-square">
        
    <#return reverseRoute("google.GoogleGroupController", "view", "groupId", group.getId())>


<#function noreferrer url>
    <#assign urlx = url?html >
    <#return 
        "data:text/html," + 
        "" + 
        "Hiding referrer" + 
        "" + 
        "" + 
        "Hiding referrer and redirecting to " + url + ""
    >


<#function gsIcoInfos search>
    <#assign country = "">
    
    <#if search.getDevice() == "SMARTPHONE" >
        <#assign device = "">
    <#else>
        <#assign device = "">
    
    
    <#if search.getLocal()?has_content >
        <#assign local = "">
    <#else>
        <#assign local = "">
    
    
    <#if search.getDatacenter()?has_content >
        <#assign datacenter = "">
    <#else>
        <#assign datacenter = "">
    
    
    <#if search.getCustomParameters()?has_content >
        <#assign params = "">
    <#else>
        <#assign params = "">
        
    
    <#return country + device + local + datacenter + params>
    <#--
    " " +search.getKeyword() +  ""
    >
    -->
 


<#function formatScore score>
    <#return (score/100)?string(",##0.00")?replace(",",".") >


<#function countryCombo name value>
    <#assign input = "" >
        
    <#return input >
        




© 2015 - 2025 Weber Informatics LLC | Privacy Policy