Aktualności - Wydział Matematyki i Informatyki
Wystąpił błąd podczas przetwarzania szablonu.
The following has evaluated to null or missing:
==> start [in template "20096#20121#SKORKA2015-LISTA-ARTYKULOW" at line 116, column 50]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign adresStrony = adresStrony + s... [in template "20096#20121#SKORKA2015-LISTA-ARTYKULOW" at line 116, column 13]
----
1<#assign sciezkaObrazkow = ''/>
2<#assign currentUrl = ''/>
3<#if request?? && request?has_content>
4 <#assign sciezkaObrazkow = themeDisplay.getPathThemeImages()/>
5 <#assign currentUrl = themeDisplay.getURLCurrent()/>
6 <#assign longGroupId = themeDisplay.getScopeGroupId()/>
7 <#assign currentRenderUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()/>
8</#if>
9
10<#if sciezkaObrazkow?has_content || sciezkaObrazkow?matches(".*/uj-lift-theme/images.*")>
11
12 <style>
13 @media all and (min-width:480px){
14 .post-excerpt__image img.thumb, html.view-gt480 .post-excerpt__image img.thumb{width: 300px;}
15 }
16 </style>
17
18 <#assign langReadMore = htmlUtil.escape(languageUtil.get(locale,"read-more"))/>
19 <#assign langAll = htmlUtil.escape(languageUtil.get(locale,"all"))/>
20 <#assign langFilter = htmlUtil.escape(languageUtil.get(locale,"filter"))/>
21 <#assign langViewAll = htmlUtil.escape(languageUtil.get(locale,"view-all"))/>
22
23<#-----------MACRO----------->
24 <#macro imgAltDescription artImgUrl>
25 <#assign artImgUrlArray = stringUtil.split(artImgUrl, "/")/>
26 <#assign fileGroup = getterUtil.getLong(artImgUrlArray[2])/>
27 <#assign fileFolder = getterUtil.getLong(artImgUrlArray[3])/>
28 <#assign fileName = httpComponentsUtil.decodeURL(artImgUrlArray[4])/>
29
30 <#if fileEntryService.getFileEntryByFileName(fileGroup, fileFolder, fileName)??>
31 <#assign file = fileEntryService.getFileEntryByFileName(fileGroup, fileFolder, fileName)/>
32 <#assign fileTitle = file.getTitle()/>
33 <#assign fileTitle = fileTitle?replace("\\\"", """)/>
34 <#assign fileDescription = file.getDescription()>
35 <#assign fileDescription = fileDescription?replace("\\\"", """)/>
36 <#assign fileExtension = file.getExtension()/>
37 </#if>
38 </#macro>
39
40<#-----------Services----------->
41 <#assign journalArticleResourceService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")/>
42 <#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/>
43 <#assign assetTagService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService")/>
44 <#assign groupService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")/>
45 <#assign fileEntryService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")/>
46
47<#-----------Structure variables----------->
48 <#assign
49 titleData = ""
50 typeData = ""
51 categoriesData = ""
52 omitCategoriesData = ""
53 tagsData = ""
54 omitTagsData = ""
55 groupIdsData = ""
56 noResultsData = ""
57 sortByData = ""
58 hideData = ""
59 aggregatorSiteUrlData = ""
60 aggregatorPortletIdData = ""
61 hidePaginationData = ""
62 omitArticleIdsData = ""
63 iloscNaStronie = ""
64 />
65
66 <#if (title.getData())??>
67 <#assign titleData = title.getData()/>
68 </#if>
69 <#if (type.getData())??>
70 <#assign typeData = type.getData()?upper_case/>
71 </#if>
72 <#if (categories.getData())??>
73 <#assign categoriesData = categories.getData()/>
74 </#if>
75 <#if (omitCategories.getData())??>
76 <#assign omitCategoriesData = omitCategories.getData()/>
77 </#if>
78 <#if (tags.getData())??>
79 <#assign tagsData = tags.getData()/>
80 </#if>
81 <#if (omitTags.getData())??>
82 <#assign omitTagsData = omitTags.getData()/>
83 </#if>
84 <#if (groupIds.getData())??>
85 <#assign groupIdsData = groupIds.getData()/>
86 </#if>
87 <#if (noResults.getData())??>
88 <#assign noResultsData = noResults.getData()/>
89 </#if>
90 <#if (sortBy.getData())??>
91 <#assign sortByData = sortBy.getData()/>
92 </#if>
93 <#if (hide.getData())??>
94 <#assign hideData = hide.getData()/>
95 </#if>
96 <#if (aggregatorSiteUrl.getData())??>
97 <#assign aggregatorSiteUrlData = aggregatorSiteUrl.getData()/>
98 </#if>
99 <#if (aggregatorPortletId.getData())??>
100 <#assign aggregatorPortletIdData = aggregatorPortletId.getData()/>
101 </#if>
102 <#if aggregatorSiteUrlData?has_content && aggregatorPortletIdData?has_content>
103 <#assign adresStrony = aggregatorSiteUrlData/>
104 <#assign portletId = aggregatorPortletIdData/>
105 <#else>
106 <#assign adresStrony = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()/>
107
108 <#if adresStrony?contains("?")>
109 <#assign adresStrony = adresStrony?substring(0, adresStrony?index_of("?")) />
110 <#else>
111 <#assign adresStrony = adresStrony/>
112 </#if>
113 <#if themeDisplay.getLayout().getName()?contains("#start") && !adresStrony?contains("/start")>
114 <#assign adresStrony = adresStrony + themeDisplay.getLayout().getFriendlyURL()/>
115 <#else>
116 <#assign adresStrony = adresStrony + start/>
117 </#if>
118
119
120 <#assign portletId = themeDisplay.getPortletDisplay().getId()/>
121 </#if>
122
123 <#if (hidePagination.getData())??>
124 <#assign hidePaginationData = hidePagination.getData()/>
125 </#if>
126 <#if (omitArticleIds.getData())??>
127 <#assign omitArticleIdsData = omitArticleIds.getData()/>
128 </#if>
129
130 <#if (articlesCountOnPage.getData())??>
131 <#assign iloscNaStronie = getterUtil.getInteger(articlesCountOnPage.getData())/>
132 </#if>
133
134<#-----------Organizations & Groups----------->
135 <#assign groupsList = []/>
136 <#assign groupIds = []/>
137 <#assign groupIdsLong = getterUtil.getLongValues(stringUtil.split(groupIdsData, ","))/>
138
139 <#list groupIdsLong as g>
140 <#if groupService.fetchGroup(g)??>
141 <#assign groupIds = groupIds + [g] />
142 </#if>
143 </#list>
144
145 <#if groupIds?size gt 0>
146 <#list groupIds as groupId>
147 <#assign groupsList = groupsList + [groupId] />
148 </#list>
149
150 <#else>
151 <#assign groupsList = [longGroupId?string]/>
152 <#assign groupIds = [longGroupId]/>
153 </#if>
154
155 <#assign groupsListFilter = groupsList/>
156
157 <#assign groupFilter = ''/>
158 <#if renderRequest.getOriginalHttpServletRequest().getParameter('groupFilter')??>
159 <#assign groupFilter = renderRequest.getOriginalHttpServletRequest().getParameter('groupFilter')?html/>
160 </#if>
161
162 <#if groupFilter?has_content>
163 <#if groupsList?join(",")?contains(groupFilter)>
164 <#assign groupsList = [groupFilter?string]/>
165 <#assign groupIds = [getterUtil.getLong(groupFilter)]/>
166 </#if>
167 </#if>
168
169 <#assign emptyLongArray = getterUtil.getLongValues([])/>
170<#-----------Categories----------->
171 <#assign categoryIds = emptyLongArray/>
172 <#assign omitCategoryIds = emptyLongArray/>
173
174 <#list stringUtil.split(categoriesData, ",") as categorie>
175 <#if categorie?length gt 0>
176 <#assign categoryNameTmp = [categorie?trim]/>
177 <#list groupIds as longGroupId>
178 <#assign categoryIdTmp = ujCustomAssetHelper.getCategoryIds(longGroupId, categoryNameTmp)/>
179 <#assign categoryIds = arrayUtil.append(categoryIds, categoryIdTmp)/>
180 </#list>
181 </#if>
182 </#list>
183
184 <#list stringUtil.split(omitCategoriesData, ",") as categorie>
185 <#if categorie?length gt 0>
186 <#assign omitCategoryNameTmp = [categorie?trim]/>
187 <#list groupIds as longGroupId>
188 <#assign omitCategoryIdTmp = ujCustomAssetHelper.getCategoryIds(longGroupId, omitCategoryNameTmp)/>
189 <#assign omitCategoryIds = arrayUtil.append(omitCategoryIds, omitCategoryIdTmp)/>
190 </#list>
191 </#if>
192 </#list>
193
194<#-----------Tags----------->
195 <#assign tagIds = emptyLongArray/>
196 <#assign omitTagIds = emptyLongArray/>
197
198 <#list stringUtil.split(tagsData) as tag>
199 <#if tag?length gt 0>
200 <#assign tagNameTmp = [tag?trim]/>
201 <#list groupIds as longGroupId>
202 <#assign tagIdTmp = ujCustomAssetHelper.getTagIds(longGroupId, tagNameTmp)/>
203 <#assign tagIds = arrayUtil.append(tagIds, tagIdTmp)/>
204 </#list>
205 </#if>
206 </#list>
207
208 <#assign addTagId = ''/>
209 <#assign addLongTagId = 0/>
210 <#if renderRequest.getOriginalHttpServletRequest().getParameter('tagId')??>
211 <#assign addTagId = renderRequest.getOriginalHttpServletRequest().getParameter('tagId')?html/>
212 <#assign addLongTagId = getterUtil.getLong(addTagId)/>
213 </#if>
214
215 <#list stringUtil.split(omitTagsData, ",") as tag>
216 <#if tag?length gt 0>
217 <#assign omitTagNameTmp = [tag?trim]/>
218 <#list groupIds as longGroupId>
219 <#assign omitTagIdTmp = ujCustomAssetHelper.getTagIds(longGroupId, omitTagNameTmp)/>
220 <#assign omitTagIds = arrayUtil.append(omitTagIds, omitTagIdTmp)/>
221 </#list>
222 </#if>
223 </#list>
224
225<#-----------Pagination variables----------->
226 <#if iloscNaStronie == 0>
227 <#assign iloscNaStronie = 5/>
228 </#if>
229 <#assign strona = 1/>
230
231 <#if renderRequest.getOriginalHttpServletRequest().getParameter('strona')??>
232 <#assign strona = getterUtil.getInteger(renderRequest.getOriginalHttpServletRequest().getParameter('strona')?html)/>
233 </#if>
234
235 <#assign iloscWszystkich = ujCustomAssetHelper.getAssetsFromGroupsCount(groupIds, typeData, categoryIds, omitCategoryIds, tagIds, omitTagIds, null, null, null, null, .now?date)/>
236
237 <#assign iloscStron = (iloscWszystkich/iloscNaStronie)?ceiling/>
238
239 <#if strona gt iloscStron>
240 <#assign strona = iloscStron/>
241 </#if>
242 <#assign indeksPoczatkowy = iloscNaStronie*(strona - 1)/>
243 <#assign indeksKoncowy = indeksPoczatkowy + iloscNaStronie/>
244
245 <#assign assets = ujCustomAssetHelper.getAssetsFromGroups(groupIds, typeData, categoryIds, omitCategoryIds, tagIds, omitTagIds, sortByData,
246 "title","DESC","ASC", null, null, null, null, .now?date, indeksPoczatkowy, indeksKoncowy)/>
247
248 <#if addLongTagId gt 0>
249 <p>Wyniki sortowane według etykiety: <strong>${assetTagService.getTag(addLongTagId).getName()}</strong> </p>
250 </#if>
251
252 <section class="main-content" id="main-content" tabindex="-1">
253
254 <#if titleData?has_content>
255 <div class="page-sub-heading">
256 <h2 class="page-sub-heading__title">${titleData}</h2>
257 </div>
258 </#if>
259 <#-----------Select articles by groupId----------->
260 <#if !hideData?contains('groupFilter')>
261 <#if groupsListFilter?size gt 1>
262 <form id="articlesFilter" name="formArticlesFilter" class="jsForm" action="${currentUrl}" method="post" onsubmit="">
263
264 <select name="groupFilter" id="groupFilter" class="jsFormSelect " data-placeholder="${langFilter}">
265 <option value=""></option>
266 <option value="all" <#if groupFilter == 'all'> selected='selected' </#if>>${langAll}</option>
267 <#list groupsListFilter as g>
268 <#assign grupa = groupService.getGroup(getterUtil.getLong(g))/>
269 <option value="${g}" <#if g?string == groupFilter> selected='selected' </#if>>
270 <#--special case on english site-->
271 <#if longGroupId == 16167284>
272 <#if g == 757404>Archive new
273 <#elseif g == 16167284>Current news
274 <#else>${grupa.getDescriptiveName()}
275 </#if>
276 <#else>
277 ${grupa.getDescriptiveName()}
278 </#if>
279 </option>
280 </#list>
281 </select>
282 <input type="hidden" name="tagId" value="${addTagId}"/>
283 </form>
284 </#if><#--end of form-->
285 </#if><#--end of checking hiding-->
286
287 <script type="text/javascript">
288 jQuery('select').change(function() {
289 jQuery(this).parent('form').submit();
290 });
291 </script>
292
293 <#-----------End of select articles by groupId----------->
294 <div class="_cf">
295 <#if assets?size == 0>
296 ${noResultsData}
297 <#else>
298 <#-- starts omit articles from configuration field-->
299 <#assign omitArticleIds = getterUtil.getLongValues(omitArticleIdsData?split(","))/>
300 <#assign omitArticleIdsList = []/>
301 <#if omitArticleIds?size gt 0>
302 <#list omitArticleIds as oArticleId>
303 <#assign omitArticleIdsList = omitArticleIdsList + [oArticleId?string]/>
304 </#list>
305 </#if>
306
307 <#list assets as asset>
308 <#assign
309 articleId = ""
310 articleTitle = ""
311 articleDescription = ""
312 artImgJson = ""
313 imgDescription = ""
314 articleGroupId = ""
315
316 articleResource = journalArticleResourceService.getArticleResource(asset.getClassPK())
317 />
318
319 <#-- Zabezpieczenie: pomija wpisy z indeksu wyszukiwania bez odpowiadajacego
320 rekordu JournalArticleResource w bazie (niespojnosc po migracji), zamiast
321 rzucac niezlapany NullPointerException i zostawiac caly portlet pusty -->
322 <#if articleResource??>
323 <#assign
324 article = journalArticleService.getArticle(articleResource.getGroupId(), articleResource.getArticleId())
325 articleGroupId = article.getGroupId()
326 articleId = article.getArticleId()
327 />
328
329 <#assign artStructureValues = ujJournalArticleHelper.getFormValues(article, portletRequest)/>
330
331 <#if !omitArticleIdsList?seq_contains(articleId)>
332 <#-- Artykul z rozwijana trescia -->
333 <#if article.getDDMTemplateKey() == 'SKORKA2015-ARTYKUL-Z-ROZWIJANA-TRESCIA'>
334 <#assign
335 articleTitle = artStructureValues["title"]
336 articleDescription = artStructureValues["streszczenie"]
337 artImgJson = artStructureValues["imgSrc"]
338 />
339 <#-- Szablon WCAG - Deklaracja Zgodności (prod) || Szablon WCAG Global - Deklaracja Zgodności (prod)) -->
340 <#elseif article.getDDMTemplateKey() == 'WCAG-GLOBAL-DEKLARACJA-ZGODNOSCI' || article.getDDMTemplateKey() = 'SZABLON-WCAG-DEKLARACJA-ZGODNOSCI'>
341 <#assign
342 articleTitle = artStructureValues["title"]
343 articleDescription = artStructureValues["description"]
344 artImgJson = artStructureValues["imgSrc"]
345 />
346 <#-- if tytul w strutkuturze (powinien być tylko szablon Artykułu uniwersalnego ddmTemplateKey== 'SKORKA2015-ARTYKUL' -->
347 <#else>
348 <#if artStructureValues["tytul"]??>
349 <#assign
350 articleTitle = artStructureValues["tytul"]
351 articleTitle = articleTitle?replace('\"', '"', 'r')
352 />
353 <#elseif artStructureValues["title"]??>
354 <#assign articleTitle = artStructureValues["title"]/>
355 </#if>
356
357 <#if artStructureValues["streszczenie"]??>
358 <#assign
359 articleDescription = artStructureValues["streszczenie"]
360 articleDescription = articleDescription?replace('\"', '"', 'r')
361 />
362 </#if>
363
364 <#if artStructureValues["grafikaLista"]??>
365 <#assign artImgJson = artStructureValues["grafikaLista"]/>
366 </#if>
367 </#if>
368
369 <#if !articleTitle?has_content>
370 <#assign articleTitle = article.getUrlTitle()/>
371 </#if>
372 <#if !articleDescription?has_content>
373 <#assign articleDescription = article.getDescription()/>
374 </#if>
375 <#-----------Tags from the current journalArticle----------->
376 <#assign model = 'com.liferay.journal.model.JournalArticle'/>
377 <#assign tags = assetTagService.getTags(model, getterUtil.getLong(asset.getClassPK()))/>
378
379 <#assign articleUrl = htmlUtil.escape("${adresStrony}/-/journal_content/${portletId}/${articleGroupId}/${articleId}")/>
380
381 <div class="post-excerpt">
382 <#if !hideData?contains('abstractImg')>
383 <#if artImgJson??>
384 <#if artImgJson?has_content && artImgJson?length gt 2>
385 <#assign artImgUrl = ujDocumentLibraryHelper.getFileEntryDownloadURL(artImgJson)/>
386
387 <#if ujDocumentLibraryHelper.getFileEntry(artImgJson)??>
388 <#assign fileEntry = ujDocumentLibraryHelper.getFileEntry(artImgJson) />
389
390 <#if fileEntry.getDescription()??>
391 <#assign imgDescription = fileEntry.getDescription()/>
392 <#else>
393 <#assign imgDescription = articleTitle/>
394 </#if>
395 </#if>
396 <#-- <#attempt>-->
397 <#-- <#assign imgDescription = ujDocumentLibraryHelper.getFileEntry(artImgJson).getDescription()/>-->
398 <#-- <#recover>-->
399 <#-- <#assign imgDescription = articleTitle/>-->
400 <#-- </#attempt>-->
401 <div class="post-excerpt__image">
402 <a href="${articleUrl}" title="${articleTitle}">
403 <img src="${artImgUrl}" class="thumb" alt="${imgDescription}">
404 </a>
405 </div>
406 </#if> <#-- End of checking thumb -->
407 </#if> <#-- End of checking given structure contains 'grafikaList' -->
408 </#if> <#-- End of checking hiding -->
409
410 <div <#if artImgJson?has_content && artImgJson != '{}' && !hideData?contains('abstractImg')> class="post-excerpt__text-container" <#else> class="post-excerpt post-excerpt--condensed" </#if>>
411 <#-----------Show organizational source of articles----------->
412 <#if groupIds?size gt 0 && asset.getGroupId() != longGroupId>
413 <div class="post-excerpt__category">
414 <#assign grupa = groupService.getGroup(asset.getGroupId())/>
415 ${grupa.getDescriptiveName()}
416 </div>
417 </#if>
418
419 <#if !hideData?contains('abstractTag')>
420 <#if tags?size gt 0>
421 <div class="post-excerpt__category">
422 <#list tags as tag>
423 <#if tag.getName() != 'polska' && tag.getName() != 'mobilna'>${tag.getName()}</#if>
424 </#list>
425 </div>
426 </#if>
427 </#if> <#-- End of checking hiding -->
428
429 <h3 class="post-excerpt__title">
430 <a href="${articleUrl}">${articleTitle}</a>
431 </h3>
432
433 <#if !hideData?contains('abstractDate')>
434 <div class="post-excerpt__sub-title">
435 <#if sortByData == 'createDate'>${dateUtil.getDate(article.getCreateDate(), "dd.MM.yyyy", locale)}
436 <#elseif sortByData == 'publishDate'>${dateUtil.getDate(article.getDisplayDate(), "dd.MM.yyyy", locale)}
437 <#elseif sortByData == 'modifiedDate'>${dateUtil.getDate(article.getModifiedDate(), "dd.MM.yyyy", locale)}
438 </#if>
439 </div>
440 </#if> <#-- End of checking hiding -->
441
442 <#if !hideData?contains('abstractText')>
443 <#if articleDescription?has_content>
444 <div class="post-excerpt__text">
445 ${articleDescription}
446 </div>
447 </#if>
448 </#if><#-- End of checking hiding -->
449
450 <#if !hideData?contains('abstractLinkMore')>
451 <a href="${articleUrl}" class="post-excerpt__link">
452 ${langReadMore} <span class="invisible-element">o ${articleTitle}</span>
453 </a>
454 </#if><#-- End of checking hiding -->
455 </div>
456 </div>
457 </#if><#-- End of omitting artiles Id -->
458 </#if><#-- End of articleResource null check -->
459 </#list><#-- End of list assets -->
460
461 <#--------- PAGINATION ---------->
462 <#if hidePaginationData == "true">
463 <div class="post-excerpt__show_all_articles">
464 <a href="${adresStrony}" class="post-excerpt__show_all">
465 ${langViewAll}
466 </a>
467 </div>
468 <#else>
469 <#if iloscStron gt 1>
470 <#assign url = ''/>
471 <#if request?? && request?has_content>
472 <#assign url = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()/>
473 </#if>
474 <#if addTagId?has_content && addTagId?length gt 0>
475 <#assign url = httpComponentsUtil.addParameter(url, "tagId", addTagId)/>
476 </#if>
477 <#if groupFilter?has_content && groupFilter?length gt 0>
478 <#assign url = httpComponentsUtil.addParameter(url, "groupFilter", groupFilter)/>
479 </#if>
480
481 <#macro displayPage url s strona hide1 hide2>
482 <#if s == strona>
483 <li class="active">
484 <span class="invisible-element">Aktualna strona</span> ${s}
485 </li>
486 <#else>
487 <li <#if hide1?has_content && hide1 gt 0 && s == hide1 || hide2?has_content && hide2 gt 0 && s == hide2> class="hide-view-lt480"</#if>>
488 <a href="${httpComponentsUtil.setParameter(url, "strona", s)}">
489 <span class="invisible-element">Strona</span> ${s}
490 </a>
491 </li>
492 </#if>
493 </#macro>
494
495 <#if iloscStron gt 1>
496 <nav role="navigation" class="pagination" aria-label="Paginacja">
497 <ul class="pagination__list">
498 <#if iloscStron lt 8>
499 <#list 1..iloscStron as s>
500 <@displayPage url=currentRenderUrl s=s strona=strona hide1=-1 hide2=-1/>
501 </#list>
502 <#elseif strona lt 5>
503 <#list 1..6 as s>
504 <@displayPage url=currentRenderUrl s=s strona=strona hide1=6 hide2=-1/>
505 </#list>
506 <li>
507 <span aria-hidden="true">...</span>
508 </li>
509
510 <li>
511 <a href="${httpComponentsUtil.setParameter(currentRenderUrl, 'strona', iloscStron)}">
512 <span class="invisible-element">Strona</span>
513 ${iloscStron}
514 </a>
515 </li>
516 <#elseif strona + 4 gt iloscStron>
517 <li>
518 <a href="${httpComponentsUtil.setParameter(currentRenderUrl, 'strona', 1)}">
519 <span class="invisible-element">Strona</span>
520 1
521 </a>
522 </li>
523 <li>
524 <span aria-hidden="true">...</span>
525 </li>
526 <#assign x = iloscStron - 5/>
527 <#list x..iloscStron as s>
528 <@displayPage url=currentRenderUrl s=s strona=strona hide1=x hide2=-1/>
529 </#list>
530 <#else>
531 <li>
532 <a href="${httpComponentsUtil.setParameter(currentRenderUrl, 'strona', 1)}">
533 <span class="invisible-element">Strona</span>
534 1
535 </a>
536 </li>
537 <li>
538 <span aria-hidden="true">...</span>
539 </li>
540 <#assign x = strona - 2/>
541 <#assign y = strona + 2/>
542 <#list x..y as s>
543 <@displayPage url=url s=s strona=strona hide1=x hide2=y/>
544 </#list>
545 <li>
546 <span aria-hidden="true">...</span>
547 </li>
548 <li><a href="${httpComponentsUtil.setParameter(currentRenderUrl,'strona',iloscStron)}">${iloscStron}</a>
549 </li>
550 </#if>
551 </ul>
552 <div class="pagination__arrows">
553 <#if strona gt 1>
554 <#assign poprzednia = strona - 1/>
555 <a class="pagination__prev" href="${httpComponentsUtil.setParameter(currentRenderUrl, 'strona', poprzednia)}">
556 <i aria-hidden="true" class="icon icon-angle-left"></i>
557 <span class="invisible-element">${languageUtil.get(locale, "previous")}</span>
558 </a>
559 </#if>
560 <#if strona lt iloscStron>
561 <#assign nastepna = strona + 1/>
562 <a class="pagination__next" href="${httpComponentsUtil.setParameter(currentRenderUrl, 'strona', nastepna)}">
563 <i aria-hidden="true" class="icon icon-angle-right"></i>
564 <span class="invisible-element">${languageUtil.get(locale, "next")}</span>
565 </a>
566 </#if>
567 </div>
568 </nav>
569 </#if> <#-- End of pagination-->
570 </#if> <#-- End of checking if hidePagination is true -->
571 </#if> <#-- End of checking whether assets exists-->
572 </#if>
573 </div> <#-- End of _cf-->
574 </section> <#-- End of main_content-->
575<#else>
576 <#if permissionChecker.getUserId() gt 100000>
577 <p>Ten szablon przeznaczony jest tylko dla dedykowanej skórki UJ</p>
578 </#if>
579</#if>