Zuletzt geändert von xwikiadmin am 2025/01/07 11:39

Von Version 1.1
bearbeitet von xwikiadmin
am 2024/06/24 14:35
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.19.4]
Auf Version 2.1
bearbeitet von xwikiadmin
am 2025/01/07 11:39
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.25.4]

Zusammenfassung

Details

XWiki.WikiMacroClass[0]
Makro-Code
... ... @@ -14,40 +14,42 @@
14 14   #end
15 15   #set ($results = $NULL)
16 16   #getCQLMacroResults($xcontext.macro $results)
17 - #set ($showLastModified = "$!xcontext.macro.params.showLastModified")
18 - #set ($showLastModified = $showLastModified.equalsIgnoreCase("true"))
19 - #set ($showPageLabels = "$!xcontext.macro.params.showPageLabels")
20 - #set ($showPageLabels = $showPageLabels.equalsIgnoreCase("true"))
21 - #set ($showCreator = "$!xcontext.macro.params.showCreator")
22 - #set ($showCreator = $showCreator.equalsIgnoreCase("true"))
23 - #set ($showAnyMetadata = $showLastModified || $showPageLabels || $showCreator)
24 - #set ($details = $services.confluence.details.getDetails("$!xcontext.macro.params.id", "$!xcontext.macro.params.headings", $results))
25 - #if ($details.size() < 2)
26 - $services.localization.render('rendering.macro.detailssummary.noresults')
27 - #else
28 - #foreach ($row in $details)
29 - #if ($foreach.first)
30 - |=$title##
31 - #foreach ($cell in $row)
32 - |=$services.rendering.escape($cell, $xwiki.currentContentSyntaxId)##
33 - #end##
34 - #if ($showLastModified)|=$services.localization.render('rendering.macro.detailssummary.lastModified')#end##
35 - #if ($showCreator)|=$services.localization.render('rendering.macro.detailssummary.creator')#end##
36 - #if ($showPageLabels)|=$services.localization.render('rendering.macro.detailssummary.tags')#end##
17 + #if ($results != $NULL)
18 + #set ($showLastModified = "$!xcontext.macro.params.showLastModified")
19 + #set ($showLastModified = $showLastModified.equalsIgnoreCase("true"))
20 + #set ($showPageLabels = "$!xcontext.macro.params.showPageLabels")
21 + #set ($showPageLabels = $showPageLabels.equalsIgnoreCase("true"))
22 + #set ($showCreator = "$!xcontext.macro.params.showCreator")
23 + #set ($showCreator = $showCreator.equalsIgnoreCase("true"))
24 + #set ($showAnyMetadata = $showLastModified || $showPageLabels || $showCreator)
25 + #set ($details = $services.confluence.details.getDetails("$!xcontext.macro.params.id", "$!xcontext.macro.params.headings", $results))
26 + #if ($details.size() < 2)
27 + $services.localization.render('rendering.macro.detailssummary.noresults')
28 + #else
29 + #foreach ($row in $details)
30 + #if ($foreach.first)
31 + |=$title##
32 + #foreach ($cell in $row)
33 + |=$cell##
34 + #end##
35 + #if ($showLastModified)|=$services.localization.render('rendering.macro.detailssummary.lastModified')#end##
36 + #if ($showCreator)|=$services.localization.render('rendering.macro.detailssummary.creator')#end##
37 + #if ($showPageLabels)|=$services.localization.render('rendering.macro.detailssummary.tags')#end##
37 37  
38 - #else
39 - #if ($showAnyMetadata)
40 - #set ($d = $xwiki.getDocument($row.get(0)))
41 - #end##
42 - #foreach ($cell in $row)
43 - |#if ($foreach.first)[[$cell]]#{else}$services.rendering.escape($cell, $xwiki.currentContentSyntaxId)#end##
44 - #end##
45 - #if ($showLastModified)|$xwiki.formatDate($d.getDate())#end##
46 - #if ($showCreator)|#if ($d.getCreator() == "XWiki.superadmin")superadmin#else[[$d.getCreator()]]#end#end##
47 - #if ($showPageLabels)|#showTags($d)#end|
39 + #else
40 + #if ($showAnyMetadata)
41 + #set ($d = $xwiki.getDocument($row.get(0)))
42 + #end##
43 + #foreach ($cell in $row)
44 + | ((( #if ($foreach.first)[[$cell]]#{else}$cell#end ))) ##
45 + #end##
46 + #if ($showLastModified)|$xwiki.formatDate($d.getDate())#end##
47 + #if ($showCreator)|#if ($d.getCreator() == "XWiki.superadmin")superadmin#else[[$d.getCreator()]]#end#end##
48 + #if ($showPageLabels)|#showTags($d)#end|
49 + #end
48 48   #end
49 - #end
50 50  
52 + #end
51 51   #end
52 52  #end
53 53  {{/velocity}}