0 Votes

Changes for page Nonwhite Privilege

Last modified by Ryan C on 2025/06/02 17:54

From version 117.1
edited by Ryan C
on 2025/05/03 16:20
Change comment: There is no comment for this version
To version 119.1
edited by Ryan C
on 2025/05/03 16:22
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -95,19 +95,23 @@
95 95  
96 96  {{velocity}}
97 97  #set($attachments = $doc.getAttachmentList())
98 -
99 -#macro(imageentry $filename)
100 -#if($filename.endsWith(".jpg") || $filename.endsWith(".png") || $filename.endsWith(".webp"))
101 - image:$doc.space/$doc.name/WebHome@$escapetool.url($filename)
102 -#end
103 -#end
104 -
105 -{{gallery}}
98 +#if($attachments.size() > 0)
99 +<div style="display: flex; flex-wrap: wrap; gap: 10px;">
106 106  #foreach($attachment in $attachments)
107 - #imageentry($attachment.filename)
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.getURL($doc.fullName, 'download', "filename=$escapetool.url($filename)")"
106 + alt="$filename"
107 + style="max-width: 100%; height: auto; border: 1px solid #444;"/>
108 + </div>
109 + #end
108 108  #end
109 -{{/gallery}}
111 +</div>
112 +#end
110 110  {{/velocity}}
111 111  
112 112  
116 +
113 113  {{putFootnotes/}}