0 Votes

Changes for page Nonwhite Privilege

Last modified by Ryan C on 2025/08/31 04:21

From version 130.1
edited by Ryan C
on 2025/05/03 17:03
Change comment: There is no comment for this version
To version 121.1
edited by Ryan C
on 2025/05/03 16:24
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -93,32 +93,26 @@
93 93  
94 94  == Images and Videos ==
95 95  
96 -{{carousel/}}
97 -
98 98  {{velocity}}
99 -#panelheader('Gallery')
100 -
101 101  #set($attachments = $doc.getAttachmentList())
102 -#set($imageCount = 0)
103 -
98 +#if($attachments.size() > 0)
99 +<div style="display: flex; flex-wrap: wrap; gap: 10px;">
104 104  #foreach($attachment in $attachments)
105 - #if($attachment.filename.endsWith(".jpg") || $attachment.filename.endsWith(".png") || $attachment.filename.endsWith(".webp"))
106 - #set($imageCount = $imageCount + 1)
101 + #set($filename = $attachment.getFilename())
102 + #set($ext = $stringtool.substringAfterLast($filename, "."))
103 + #if($ext.equalsIgnoreCase("jpg") || $ext.equalsIgnoreCase("jpeg") || $ext.equalsIgnoreCase("png") || $ext.equalsIgnoreCase("webp"))
104 + <div style="flex: 1 1 300px; max-width: 300px;">
105 + <img src="$xwiki.getDocument($doc.fullName).getAttachmentURL($filename, true)"
106 + alt="$filename"
107 + style="max-width: 100%; height: auto; border: 1px solid #444;"/>
108 + </div>
107 107   #end
108 108  #end
109 -
110 -#if($imageCount > 0)
111 - {{gallery}}
112 - #foreach($attachment in $attachments)
113 - #if($attachment.filename.endsWith(".jpg") || $attachment.filename.endsWith(".png") || $attachment.filename.endsWith(".webp"))
114 - image:$attachment.filename
115 - #end
116 - #end
117 - {{/gallery}}
111 +</div>
118 118  #end
119 -
120 -#panelfooter()
121 121  {{/velocity}}
122 122  
123 123  
116 +
117 +
124 124  {{putFootnotes/}}
backgroundchecks.jpg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.AdminAngriff
Size
... ... @@ -1,1 +1,0 @@
1 -33.9 KB
Content
background checks are racist[100%_ 6441q4_ Black Privilege_ does_ football_ image_ images_ white] - Copy.jpg
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AdminAngriff
Size
... ... @@ -1,0 +1,1 @@
1 +42.8 KB
Content