Avisos, incidències | Esports
Esports
S'ha produït un error mentre es processava la plantilla.
Error while invoking the "journal-article" JSP custom tag; see cause exception ---- FTL stack trace ("~" means nesting-related): - Failed at: @liferay_journal["journal-article"] a... [in template "20116#20160#335765" at line 5, column 5] ----
1<#assign path_actual = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()?keep_before_last("?")>
2
3<#if request.getParameter("id")??>
4<#-- CAL MOSTRAR FITXA ---------->
5 <@liferay_journal["journal-article"]
6 articleId=request.getParameter("id")
7 ddmTemplateKey="220965"
8 groupId=themeDisplay.getScopeGroupId()
9 />
10 <a class="btn" href="${currentURL}" role="button" title="Tornar">Tornar</a>
11 <script>
12 $(document).ready(function() {
13 $(".taglib-page-iterator").hide();
14 });
15 </script>
16<#else>
17<#-- CAL MOSTRAR LLISTAT -------->
18<#if path_actual?keep_after_last("/") == "incidencies">
19 <#assign url_incidencies = path_actual>
20<#else>
21 <#assign url_incidencies = path_actual + "/incidencies">
22 <#--assign url_incidencies = "/incidencies"-->
23</#if>
24 <div class="inici-incidencies">
25 <h2>Avisos</h2>
26 <ol>
27 <#if entries?has_content>
28 <#list entries as curEntry>
29 <#if curEntry.getAssetRenderer().getAssetObject()??>
30 <#if curEntry.getAssetRenderer().getAssetObject()!= "">
31 <#assign assetRenderer = curEntry.getAssetRenderer() journalArticle = assetRenderer.getAssetObject() />
32 <#--EL SEGÜENT PER PODER EDITAR EL CONTINGUT WEB-->
33 <#assign
34 entry = entry
35 assetRenderer = curEntry.getAssetRenderer()
36 entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale))
37 viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, entry, !stringUtil.equals(assetLinkBehavior, "showFullContent"))/>
38 <@getEditIcon />
39 <#--FI EDICIÓ-->
40 <li>
41 <a href="${url_incidencies}?id=${journalArticle.getArticleId()}" style="cursor:pointer">
42 <@liferay_journal["journal-article"]
43 articleId=journalArticle.getArticleId()
44 ddmTemplateKey="221116"
45 groupId=journalArticle.getGroupId()
46 />
47 </a>
48 </li>
49 </#if>
50 </#if>
51 </#list>
52 <#else>
53 <li style="padding: 30px">En aquest moment no hi ha cap avís vigent.</li>
54 </#if>
55 </ol>
56 </div>
57 <#if path_actual?keep_after_last("/") != "incidencies">
58 <div class="ageliferay_mes_info">
59 <a href="${url_incidencies}">Tots els avisos</a>
60 </div>
61 </#if>
62</#if>
63<div style="clear: both;"></div>
64
65<#-- MACRO PER MOSTRAR BOTÓ EDICIÓ CONTINGUT WEB -->
66<#macro getEditIcon>
67 <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())>
68 <#assign redirectURL = renderResponse.createRenderURL() />
69
70 ${redirectURL.setParameter("mvcPath", "/add_asset_redirect.jsp")}
71 ${redirectURL.setWindowState("pop_up")}
72
73 <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" />
74
75 <#if validator.isNotNull(editPortletURL)>
76 <#assign title = languageUtil.format(locale, "EDITAR INCIDÈNCIA «"+entryTitle+"»", entryTitle, false) />
77
78 <@liferay_ui["icon"]
79 cssClass="icon-monospaced visible-interaction"
80 icon="pencil"
81 markupView="lexicon"
82 message=title
83 url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});"
84 />
85 </#if>
86 </#if>
87</#macro>