Source

chempound / chempound-webapp / src / main / resources / net / chempound / templates / search-result.ftl

Full commit
<@layout.page
    title="Search Results"
>

<h1>Search Results</h1>

<#list results as resource>
    <div class="result<#if resource_index == 0> first</#if>">
<#if items[resource].thumbnail??>
    <a href="${resource}">
        <img class="thumbnail" src="${items[resource].thumbnail}" alt="Thumbnail" />
    </a>
</#if>

<#if items[resource].dataType??><div class="dataType">${items[resource].dataType}</div></#if>
        <h2><a href="${resource}">
        <#if items[resource].title??>${items[resource].title}<#else>${resource}</#if></a>
        </h2>

        <div class="clear"></div>
    </div>
</#list>

</@layout.page>