From ec48c95d1e38c1226043b80c9002900c3addb0e6 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 22 Sep 2018 13:49:00 -0400 Subject: [PATCH] Show size in bytes on hover --- gitsrht/templates/blob.html | 13 +++++++++---- gitsrht/templates/tree.html | 6 ++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gitsrht/templates/blob.html b/gitsrht/templates/blob.html index 9cd7576..614a940 100644 --- a/gitsrht/templates/blob.html +++ b/gitsrht/templates/blob.html @@ -19,8 +19,10 @@ - {{humanize.naturalsize(blob.size, - binary=True).replace("Byte", "byte")}} + + {{humanize.naturalsize(blob.size, + binary=True).replace("Byte", "byte")}} +

- {{humanize.naturalsize(blob.size, - binary=True).replace("Byte", "byte")}} binary file not shown. + + {{humanize.naturalsize(blob.size, + binary=True).replace("Byte", "byte")}} + + binary file not shown.

{% endfor %} -- 2.38.4