|
| File: org/alfresco/components/dashlets/docsummary.get.desc.xml |
<webscript>
<shortname>Recently Modified Documents</shortname>
<description>Document summary component</description>
<family>site-dashlet</family>
<url>/components/dashlets/docsummary</url>
</webscript> |
| File: org/alfresco/components/dashlets/docsummary.get.html.ftl |
<#macro doclibUrl doc>
<a href="${url.context}/page/site/${doc.location.site}/document-details?nodeRef=${doc.nodeRef}" class="theme-color-1">${doc.displayName?html}</a>
</#macro>
<div class="dashlet">
<div class="title">${msg("header.docSummary")}</div>
<div class="body scrollableList">
<#if docs.message?exists>
<div class="detail-list-item first-item last-item">
<div class="error">${docs.message}</div>
</div>
<#else>
<#if docs.items?size == 0>
<div class="detail-list-item first-item last-item">
<span>${msg("label.noItems")}</span>
</div>
<#else>
<#list docs.items as doc>
<#assign modifiedBy><a href="${url.context}/page/user/${doc.modifiedByUser?url}/profile" class="theme-color-1">${doc.modifiedBy?html}</a></#assign>
<div class="detail-list-item <#if doc_index = 0>first-item<#elseif !doc_has_next>last-item</#if>">
<div>
<div class="icon">
<img src="${url.context}/components/images/generic-file-32.png" alt="${doc.displayName?html}" />
</div>
<div class="details">
<h4><@doclibUrl doc /></h4>
<div>
${msg("text.modified-by", modifiedBy)} ${msg("text.modified-on", doc.modifiedOn?datetime("dd MMM yyyy HH:mm:ss 'GMT'Z '('zzz')'")?string("dd MMM, yyyy HH:mm:ss"))}
</div>
</div>
</div>
</div>
</#list>
</#if>
</#if>
</div>
</div> |
| File: org/alfresco/components/dashlets/docsummary.get.js |
// Get the Documents Modified data for this site
var json = remote.call("/slingshot/doclib/doclist/documents/site/" + page.url.templateArgs.site + "/documentLibrary?filter=recentlyModified&max=10");
// Create the model
var docs = eval('(' + json + ')');
model.docs = docs; |
| File: org/alfresco/components/dashlets/docsummary.get.properties |
header.docSummary=Recently Modified Documents
label.noItems=No items to display
text.modified-by=Modified by {0}
text.modified-on=on {0} |