Changes for page Attachments
Last modified by Ludovic Dubost on 2024/07/22 15:50
From version 4.1
edited by Ludovic Dubost
on 2017/02/07 23:57
on 2017/02/07 23:57
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui-8.4.4]
To version 5.1
edited by Ludovic Dubost
on 2017/03/08 18:02
on 2017/03/08 18:02
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui-9.1.1]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -107,7 +107,7 @@ 107 107 [[[[image:${attachmentDocument.fullName}@${attachment.filename}||width=180]]>>attach:${attachmentDocument.fullName}@${attachment.filename}||rel="lightbox[attachments]"]] 108 108 #else 109 109 * (% class="mime" %){{html wiki=false clean=false}}#mimetypeimg($attachment.getMimeType().toLowerCase() $attachment.getFilename().toLowerCase()){{/html}}(%%) (% class="filename" %)$attachment.getFilename()(% %) 110 - * v$attachment.getVersion() (#dynamicsize($attachment. filesize))110 + * v$attachment.getVersion() (#dynamicsize($attachment.longSize)) 111 111 * $services.localization.render('core.viewers.attachments.author', [$!{xwiki.getUserName($attachment.author, false)}]) $services.localization.render('core.viewers.attachments.date', [$!{xwiki.formatDate($attachment.date, 'dd/MM/yyyy hh:mm')}]) 112 112 * (% class="buttonwrapper" %)[[${services.localization.render("${translationPrefix}.actions.download")}>>attach:${attachment.getDocument()}@${attachment.filename}||title="$services.localization.render("${translationPrefix}.actions.download")" rel="__blank" class="button"]](%%) 113 113 #end ... ... @@ -208,11 +208,6 @@ 208 208 209 209 {{velocity}} 210 210 #if ($request.docname) 211 - ###if ($request.xpage == 'plain') 212 - ## ## IE6 + XHR + gzip compression = BOOM! 213 - ## ## This disables the automatic gzip compression 214 - ## $response.setContentType('multipart/formdata') 215 - ###end 216 216 #set ($targetDocument = $xwiki.getDocument($request.docname)) 217 217 #if ($request.targetdocname) 218 218 ## Use the target document if it exists.
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -270,11 +270,7 @@ 270 270 ); 271 271 dialog.shortcuts.close.keys = []; 272 272 dialog.showDialog(); 273 - if (window.browser.isIE6x) { 274 - dialog.dialog.down().setStyle({position: "absolute"}); 275 - } else { 276 - dialog.dialog.down().setStyle({position: "fixed"}); 277 - } 273 + dialog.dialog.down().setStyle({position: "fixed"}); 278 278 dialog.dialog.setStyle({top: document.viewport.getScrollOffsets().top + "px", position: "absolute"}); 279 279 dialog.dialogBox.setStyle({overflow: "hidden", width: "80%", margin: "0 10%"}); 280 280 new Ajax.Updater(loading.up(), url, {
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -34,19 +34,11 @@ 34 34 position: relative; 35 35 width: ${boxSize}px; 36 36 } 37 -/* Broken IE6 box model, add the border width to the total width. */ 38 -* html .gallery_attachmentbox { 39 - width: ${mathtool.add($boxSize, 2)}px; 40 -} 41 41 .gallery .current { 42 42 background-color: $theme.highlightColor; 43 43 border-width: 3px; 44 44 margin: 3px; 45 45 } 46 -/* Broken IE6 box model, add the border width to the total width. */ 47 -* html .gallery .current { 48 - width: ${mathtool.add($boxSize, 6)}px; 49 -} 50 50 .gallery .current .gallery_attachmenttitle { 51 51 font-weight: bold; 52 52 }