|
| File: org/alfresco/components/title/search-title.get.desc.xml |
<webscript>
<shortname>Search Title</shortname>
<description>Title component used in the search page</description>
<url>/components/title/search-title</url>
</webscript> |
| File: org/alfresco/components/title/search-title.get.head.ftl |
<link rel="stylesheet" type="text/css" href="${page.url.context}/components/title/search-title.css"/>
|
| File: org/alfresco/components/title/search-title.get.html.ftl |
<div class="page-title search-title theme-bg-color-1">
<h1><span>${msg("header.searchresults")}</span></h1>
<#if page.url.templateArgs.site??>
<div>
<span class="navigation-item backLink">
<a href="${url.context}/page/site/${page.url.templateArgs.site}/dashboard">${msg("header.backlink", profile.title)}</a>
</span>
</div>
</#if>
<div class="clear"></div>
</div>
|
| File: org/alfresco/components/title/search-title.get.js |
if (page.url.templateArgs.site != undefined)
{
// Call the repository for the site profile
var json = remote.call("/api/sites/" + page.url.templateArgs.site);
var profile =
{
title: "[Not Found]"
};
if (json.status == 200)
{
// Create javascript objects from the repo response
var obj = eval('(' + json + ')');
if (obj && obj.title)
{
profile = obj;
}
}
// Prepare the model
model.profile = profile;
} |
| File: org/alfresco/components/title/search-title.get.properties |
header.searchresults=Search Results
header.backlink=Back to {0} Site |