Akce - týden - detail - Tiskový servis

Při zpracování šablony došlo k chybě.
Template importing failed (for parameter value "_TEMPLATE_CONTEXT_/20097/317111/35474/GOV_MACROS"):
Unable to find FreeMarker template with ID _TEMPLATE_CONTEXT_/20097/317111/35474/GOV_MACROS

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #import "${templatesPath}/GOV_MACROS"...  [in template "GLOBAL_SETUP" at line 2, column 1]
	- Reached through: #include "${templatesPath}/GLOBAL_SETUP"  [in template "20097#20123#4181880" at line 1, column 1]
----
1<#include "${templatesPath}/GLOBAL_SETUP" /> 
2 
3<#assign 
4    ariaLabel = "Drobečková navigace" 
5    mainPageTitle = "Úvodní stránka" 
6/> 
7 
8<#if locale == "en_GB"> 
9    <#assign 
10        ariaLabel = "Breadcrumbs" 
11        mainPageTitle = "Main Page" 
12    /> 
13</#if> 
14 
15<#if entries?has_content> 
16    <@global.printBreadcrumbsHeader ariaLabel=ariaLabel /> 
17        <@global.printBreadcrumbItem title=mainPageTitle url=mainPageUrl /> 
18         
19        <#list entries as curEntry> 
20            <#assign showEntry = true> 
21 
22            <#-- Nezobrazovanie niektorych stranok v drobeckovke na /cz webe --> 
23            <#if layoutGroupFriendlyUrl == "/cz"> 
24                <#if curEntry.getURL()?ends_with("/sluzby") || curEntry.getURL()?ends_with("/lide")> 
25                    <#assign showEntry = false /> 
26                </#if> 
27            </#if> 
28             
29            <#if showEntry> 
30                <#if curEntry.getURL()?has_content && !curEntry?is_last> 
31                    <@global.printBreadcrumbItem title=curEntry.getTitle() url=curEntry.getURL() /> 
32                <#else> 
33                    <@global.printBreadcrumbItem title=curEntry.getTitle() /> 
34                </#if> 
35            </#if> 
36        </#list> 
37    <@global.printBreadcrumbsFooter /> 
38    <@global.breadcrumbsJsonLdScript /> 
39</#if> 
Při zpracování šablony došlo k chybě.
Template importing failed (for parameter value "_TEMPLATE_CONTEXT_/20097/317111/20018/GOV_MACROS"):
Unable to find FreeMarker template with ID _TEMPLATE_CONTEXT_/20097/317111/20018/GOV_MACROS

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #import "${templatesPath}/GOV_MACROS"...  [in template "GLOBAL_SETUP" at line 2, column 1]
	- Reached through: #include "${globalTemplatesPath}/GLOB...  [in template "COMMON_SETUP" at line 8, column 1]
	- Reached through: #include "${templatesPath}/COMMON_SETUP"  [in template "20097#20123#317865" at line 1, column 1]
----
1<#include "${templatesPath}/COMMON_SETUP" /> 
2 
3<#assign 
4    structAkce = global.getJAStructure(structureName.AKCE) 
5 
6    weekStartDateFromParam = request.getParameter(requestParamName.TYDEN)!"" 
7    date = global.getDateFromString(weekStartDateFromParam) 
8    date = date?has_content?then(date, .now) 
9 
10    weekDates = macros.getWeekDatesByDate(date) 
11 
12    firstDate = weekDates[0] 
13    firstDateDay = firstDate?string('d') 
14    firstDateMonth = firstDate?string('M') 
15    firstDateYear = firstDate?string('yyyy') 
16 
17    lastDate = weekDates[6] 
18    lastDateDay = lastDate?string('d') 
19    lastDateMonth = lastDate?string('M') 
20    lastDateYear = lastDate?string('yyyy') 
21 
22    weekUrl = firstDate?string(dateFormat.yyyyMMdd) 
23 
24    tabId = "dny" 
25/> 
26 
27<#if firstDateYear == lastDateYear> 
28    <#assign 
29        weekHeading = "Akce od ${firstDateDay}. ${firstDateMonth}. do ${lastDateDay}. ${lastDateMonth}. ${lastDateYear}" 
30    /> 
31<#else> 
32    <#assign 
33        weekHeading = "Akce od ${firstDateDay}. ${firstDateMonth}. ${firstDateYear} do ${lastDateDay}. ${lastDateMonth}. ${lastDateYear}" 
34    /> 
35</#if> 
36 
37<main tabindex="-1" id="bno-main"> 
38    <@macros.printHeaderTitle title=weekHeading /> 
39 
40    <div class="bno-main"> 
41        <section class="bno-container bno-container--offset-top-none"> 
42            <div class="bno-container__content"> 
43                <div class="bno-tabs bno-tabs--fullwidth"> 
44                    <ul class="bno-tabs__links-holder bno-list--plain" role="tablist" aria-label="Seznam dnů"> 
45                        <#list weekDates as date> 
46                            <#assign 
47                                index = date?index 
48                                day = date?string["EEEE"] 
49                                dayUrl = WEEK_DAYS_URL[index] 
50                            /> 
51                            <@macros.printTabListLink id=tabId title=day url="#${dayUrl}" isActive=false /> 
52                        </#list> 
53                    </ul> 
54 
55                    <section class="bno-tabs__content-holder"> 
56                        <#-- POZOR !nesmie tu byt class="bno-tabs__content is-active", pretoze vtedy nefunguje href na .bno-tabs__link --> 
57                        <div id="link-${tabId}-tab" role="tabpanel" aria-labelledby="link-${tabId}"> 
58                            <div class="bno-layout bno-layout--ratio-3-1"> 
59                                <div class="bno-layout__col bno-layout__col--spread-3"> 
60                                    <#if structAkce?has_content && assetHelper?? && assetHelper?has_content> 
61                                        <#list weekDates as date> 
62                                            <#assign 
63                                                index = date?index 
64                                                dayUrl = WEEK_DAYS_URL[index] 
65                                            /> 
66                                            <@printDate date=date dayUrl=dayUrl structAkce=structAkce /> 
67                                        </#list> 
68                                    </#if> 
69                                </div> 
70                                <div class="bno-layout__col"> 
71                                </div> 
72                            </div> 
73                        </div> 
74                    </section> 
75                </div> 
76            </div> 
77        </section> 
78 
79        <#if structAkce?has_content && assetHelper?? && assetHelper?has_content> 
80            <section class="bno-container bno-container--bordered"> 
81                <div class="bno-container__content"> 
82                    <@macros.printNextWeeks date /> 
83                </div> 
84            </section> 
85        </#if> 
86    </div> 
87</main> 
88 
89<#macro printDate date dayUrl structAkce> 
90    <#assign 
91        dateString = date?string(dateFormat.yyyyMMdd) 
92        dateEventsEntries = macros.getAkceForDate(dateString, structAkce) 
93        areEvents = dateEventsEntries?size gt 0 
94 
95        day = date?string["EEEE"] 
96        dateFormatted = date?string(dateFormat.dMyyyy) 
97 
98        h2CssClass = (dayUrl == WEEK_DAYS_URL[0])?then("u-mt--unset", "") 
99    /> 
100    <section> 
101        <h2 id="${dayUrl}" class="${h2CssClass}">${day} ${N_DASH} ${dateFormatted}</h2> 
102 
103        <#if areEvents> 
104            <ul class="bno-list--plain"> 
105                <#list dateEventsEntries as eventEntry> 
106                    <li> 
107                        <article class="bno-article-preview"> 
108                            <@printEvent eventEntry=eventEntry /> 
109                        </article> 
110                    </li> 
111                </#list> 
112            </ul> 
113        <#else> 
114            <p> 
115                <em>žádné události</em> 
116            </p> 
117        </#if> 
118    </section> 
119</#macro> 
120 
121<#macro printEvent eventEntry> 
122    <#if eventEntry.getAssetRenderer()??> 
123        <#assign 
124            renderer = eventEntry.getAssetRenderer() 
125            journalArticle = renderer.getArticle() 
126 
127            eventTitle = journalArticle.getTitle(locale) 
128 
129            doc = saxReaderUtil.read(journalArticle.getContent()) 
130            eventTimeStart = global.getStringFromDoc(doc, "datumACas", "cas") 
131            eventTimeStartSpecial = global.getStringFromDoc(doc, "datumACas", "specialniCas") 
132            eventLocation = doc.valueOf("//dynamic-element[@name='misto']/dynamic-content/text()") 
133            eventDescription = doc.valueOf("//dynamic-element[@name='kratkyPopis']/dynamic-content/text()") 
134            eventDescription = global.replacePicfit(eventDescription) 
135            facebookUdalost = doc.valueOf("//dynamic-element[@name='facebookUdalost']/dynamic-content/text()") 
136             
137            link = global.getURLViewInContext(journalArticle) 
138 
139            eventTimeStart = eventTimeStart?has_content?then(eventTimeStart, eventTimeStartSpecial) 
140        /> 
141        <div class="bno-article-preview__content-wrap"> 
142            <div class="bno-article-preview__header"> 
143                <#if eventTimeStart?has_content> 
144                    <span class="bno-chip bno-chip--large"> 
145                        <span class="bno-chip__inner"> 
146                            ${eventTimeStart} 
147                        </span> 
148                    </span> 
149                </#if> 
150                <address class="bno-address-list"> 
151                    <ul class="bno-address-list__items u-mt--unset"> 
152                        <li class="bno-address-list__item"> 
153                            <span class="bno-icon bno-icon--pin" aria-hidden="true"></span> 
154                            <span>${eventLocation}</span> 
155                        </li> 
156                    </ul> 
157                </address> 
158            </div> 
159            <div class="bno-article-preview__content"> 
160                <h5> 
161                    <a href="${link}"> 
162                        ${eventTitle} 
163                    </a> 
164                </h5> 
165                <p>${eventDescription}</p> 
166            </div> 
167        </div> 
168    </#if> 
169</#macro> 
Při zpracování šablony došlo k chybě.