File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
src/main/resources/templates Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ <h5 class="modal-title">Share File</h5>
239239 </ div >
240240
241241 <!-- === Image View Modal === -->
242- < div class ="modal fade " id ="viewImageModal " tabindex ="-1 ">
242+ < div class ="modal fade " id ="viewModal " tabindex ="-1 ">
243243 < div class ="modal-dialog modal-lg modal-dialog-centered ">
244244 < div class ="modal-content ">
245245
@@ -285,9 +285,17 @@ <h5 class="modal-title">
285285 </ div >
286286
287287 < div class ="modal-body ">
288+ < div th:if ="${fileTypeString == 'Pdf'} ">
289+ < th:block th:each ="pdf, stat : ${filePaths} ">
290+ < span th:text ="'Pdf ' + ${stat.count} + ': ' "> </ span >
291+ < a th:href ="@{'/files/' + ${pdf}} " target ="_blank "> Click here to view</ a >
292+ < br />
293+ </ th:block >
294+ </ div >
295+
288296
289297
290- < div id ="imageSlider " class ="carousel slide " data-ride ="carousel " data-keyboard ="true "
298+ < div th:if =" ${fileTypeString == 'Image'} " id ="imageSlider " class ="carousel slide " data-ride ="carousel " data-keyboard ="true "
291299 data-touch ="true ">
292300
293301
@@ -340,10 +348,10 @@ <h5 class="modal-title">
340348 </ script >
341349
342350 < script th:if ="${action == 'view'
343- and fileTypeString == 'Image'
351+
344352 and filePaths?.size() > 0} ">
345353 $ ( document ) . ready ( function ( ) {
346- $ ( '#viewImageModal ' ) . modal ( 'show' ) ;
354+ $ ( '#viewModal ' ) . modal ( 'show' ) ;
347355 } ) ;
348356 </ script >
349357
You can’t perform that action at this time.
0 commit comments