An error occurred while processing the template.
Template inclusion failed (for parameter value "_TEMPLATE_CONTEXT_/20155/20182/20513/4891145"):
Unable to find FreeMarker template with ID _TEMPLATE_CONTEXT_/20155/20182/20513/4891145

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #include "${templatesPath}/4891145"  [in template "20155#20195#120460" at line 7, column 1]
----
1<#-- TEMPLATE KEY : 135487 --> 
2<#-- TEMPLATE ID  : 120460 --> 
3<#-- TEMPLATE NAME: HNB Document Download ADT --> 
4<#-- TEST STRANICA: https://webtest.hnb.hr/en/statistics/statistical-data/archive/indicators-of-credit-institution-operations --> 
5<#-- PORTLET: DocumentDisplayPublisher - custom portlet --> 
6 
7<#include "${templatesPath}/4891145" /> 
8 
9<#-- ovo na webtest-u javlja grešku 
10Da bi ovo radilo mora se uključiti template s debug funkcijama (prije toga ga se treba refaktorirati 
11${asDebug('<br />TEMPLATE KEY: 135487 TEMPLATE ID: 120460 NAME: HNB Document Download ADT PATH: ${templatesPath}', '')} 
12--> 
13	 
14<style> 
15.hnb-body .related-document-item p {text-align:left;} 
16.related-documents-list .separator {border-left: 1px solid #d4d4d8; width: 100%; margin: 0 6px 0 4px; padding: 0; clear: both;} 
17</style> 
18 
19<#assign aDateToday = .now?string["dd.MM.yyyy"]> 
20 
21<div class="article"> 
22 
23    <div class="article-content"> 
24 
25        <div class="related-documents"> 
26             <header> 
27                <h5 class="pad-t-8 pad-b-8 pad-nq-l-16 margo-b-0 uppercase related-documents-title">${languageUtil.get(locale,"templates.article.relatedDocuments")}</h5> 
28             </header> 
29             <ul class="related-documents-list"> 
30 
31                <#--<#list entries?sort_by("description") as file>--> 
32                <#list entries as file> 
33                 
34                    <#assign odDatumaAzuriranjaDoDanas=( 
35                                            ( file.getModifiedDate()?string["dd.MM.yyyy"]?datetime("dd.MM.yyyy")?long - aDateToday?datetime("dd.MM.yyyy")?long  ) / (1000 * 60 * 60 * 24) )?int 
36                                          > 
37                            <#if file.getDescription()?has_content> 
38                                  <#assign documentTitle=file.getDescription()?replace("^\\[[a-zA-Z0-9]*\\] - ", "", "r")> 
39                             <#else> 
40                                    <#assign documentTitle=file.getTitle()> 
41                              </#if> 
42                    <li class="related-document-item"> 
43                     <#--data_title atribut za google analytics--> 
44                     <a href="/documents/${groupId}/${file.getFolderId()}/${file.getTitle()}" data_title="${documentTitle}" target="_self" data_description="${file.getDescription()}" data_file="${file.getTitle()}.${file.getExtension()}"> 
45                        <div class="related-document-image ${file.getIcon()}"> 
46							<i class="${chooseIcon(file.getExtension())}"></i> 
47                         </div> 
48                      <p><span>${documentTitle}</span></p> 
49                     
50                      <h6 class="ultradark-aux-grey-color related-documents-attributes"> 
51                        <!--span class="displayDate">${languageUtil.get(locale,"templates.article.publishDate")}: ${formatDate(file.getCreateDate())} </span> 
52                        <span class="separator"></span--> 
53 
54                        <#if odDatumaAzuriranjaDoDanas gte -4> 
55                            <span><i class="fa fa-check-square" style="color:#c81818;"></i></span> 
56                        </#if> 
57 
58                        <#-- u ovom slučaju je modified date zapravo publish date jer koristimo LiferaySync --> 
59                        <span class="modifiedDate">${languageUtil.get(locale,"templates.article.publishDate")}: ${formatDate(file.getModifiedDate())} </span> 
60                        <#if file.getSize()?has_content> 
61                             <span class="separator"></span> 
62                             ${formatSize(file.getSize())} 
63                         </#if> 
64                     </h6> 
65                    </a> 
66                </li> 
67          </#list> 
68        </ul> 
69    </div> 
70    </div> 
71</div> 
72 
73<#function formatSize num> 
74  <#assign order     = num?round?c?length /> 
75  <#assign thousands = ((order - 1) / 3)?floor /> 
76  <#if (thousands < 0)><#assign thousands = 0 /></#if> 
77  <#assign siMap = [ {"factor": 1, "unit": ""}, {"factor": 1000, "unit": "K"}, {"factor": 1000000, "unit": "M"}, {"factor": 1000000000, "unit":"G"}, {"factor": 1000000000000, "unit": "T"} ]/> 
78  <#assign siStr = (num / (siMap[thousands].factor))?string("0.#") + siMap[thousands].unit /> 
79  <#return siStr /> 
80</#function> 
81 
82<#function formatDate date> 
83		<#assign date_pattern = {"hr_HR":"d.M.yyyy.", "en_US":"d/M/yyyy"}> 
84 
85		<#assign originalLocale = locale /> 
86		<#assign date_pattern = {"hr_HR":"d.M.yyyy.", "en_US":"d/M/yyyy"}> 
87 
88		<#assign originalLocale = locale /> 
89		<#setting locale = localeUtil.getDefault() /> 
90 
91		<#assign formatteddate = dateUtil.getDate(date, date_pattern[locale], locale) > 
92 
93		<#assign locale = originalLocale /> 
94		<#return formatteddate> 
95</#function>