Changes for page Card Navigation

Last modified by Calvin Henderson on 2025/03/11 10:29

From version 14.48
edited by calvin_henderson
on 2024/12/18 13:21
Change comment: There is no comment for this version
To version 14.35
edited by calvin_henderson
on 2024/12/18 13:14
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
code
... ... @@ -1,24 +1,17 @@
1 1  {{velocity}}
2 2  #set($wikiRef = $doc.documentReference.getWikiReference().getName())
3 3  #set($docRef = $doc.getFullName())
4 -#set($entries = $wikimacro.content)
5 -#if("$xcontext.action" != "edit")
6 6  
7 -
8 -{{html wiki="true"}}
9 -#if (false)
10 - <div style="display: grid;
11 - grid-template-columns: 1fr 1fr 1fr;
12 - gap: 10px;
13 - ">
14 -#end
15 -$entries
16 -
17 -
5 +#if("$xcontext.action" != "edit")
6 +#set($entries = $wikimacro.content)
7 + {{html wiki="true"}}
8 + <div style="display: grid;
9 + grid-template-columns: 1fr 1fr 1fr;
10 + gap: 10px;
11 + ">
18 18  #foreach($entry in $entries.split('\n'))
19 19   #set($card = $entry.split('\|'))
20 - #if (false)
21 - <a href="$card[2]" style="text-decoration:none;">
14 + <a href=$card[2] style="text-decoration:none;">
22 22   <div style="
23 23   display:grid;
24 24   text-align:center;
... ... @@ -27,17 +27,16 @@
27 27   border:1px solid rgba(222,222,222,1);
28 28   border-bottom: 3px solid rgba(222,222,222,1);
29 29   ">
30 - <i class="fa $card[0]" style="font-size:4em;"></i>
23 + <i class="fa "$card[0] style="font-size:4em;"></i>
31 31   <h3>$card[1]</h3>
32 32   </div>
33 33   </a>
34 - #end
35 -
36 - $card[0],$card[1],$card[2]
37 37  #end
38 -## </div>
39 -{{/html}}
28 + </div>
29 + {{/html}}
30 +#end
40 40  
32 +
41 41  ----
42 42  
43 43  == Search ==
... ... @@ -44,5 +44,4 @@
44 44  
45 45  {{documentTree root="document:$wikiRef:$docRef" finder="true" limit="30"/}}
46 46  
47 -#end
48 48  {{/velocity}}