~wegtam/smederee

Showing details for patch 4768f431d5f99ad93ca831f69a7d60dc3ebc6677.
2024-09-25 (Wed), 10:19 AM - Jens Grassel - 4768f431d5f99ad93ca831f69a7d60dc3ebc6677

VCS: Do not show directory sizes in file browser.

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryFiles.scala.html with 1 added and 1 removed lines
diff -rN -u old-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryFiles.scala.html new-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryFiles.scala.html
--- old-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryFiles.scala.html	2024-11-22 21:17:15.790832317 +0000
+++ new-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryFiles.scala.html	2024-11-22 21:17:15.790832317 +0000
@@ -63,7 +63,7 @@
               <tr>
                 <td>@if(entry._2.isDir) { @icon(baseUri)("folder") } else { @icon(baseUri)("file") }</td>
                 <td><a href="@actionBaseUri.addSegment(entry._1.last)">@{entry._1}</a></td>
-                <td style="text-align: right;">@formatBytes(entry._2.size)</td>
+                <td style="text-align: right;">@if(entry._2.isDir){}else{@formatBytes(entry._2.size)}</td>
                 <td>@{entry._2.mtime}</td>
               </tr>
               }