From 261725ef64b165ef87adc77fe8a3d10e7cf8bee8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 22 Sep 2018 13:47:50 -0400 Subject: [PATCH] Show file mode in octal on hover --- gitsrht/templates/blob.html | 4 +++- gitsrht/templates/tree.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gitsrht/templates/blob.html b/gitsrht/templates/blob.html index 9c33d85..9cd7576 100644 --- a/gitsrht/templates/blob.html +++ b/gitsrht/templates/blob.html @@ -14,7 +14,9 @@ >{{part}}/{% endif %}{% endfor %} - {{stat.filemode(entry.filemode)}} + + {{stat.filemode(entry.filemode)}} + {{humanize.naturalsize(blob.size, diff --git a/gitsrht/templates/tree.html b/gitsrht/templates/tree.html index d089bc9..88bf5f2 100644 --- a/gitsrht/templates/tree.html +++ b/gitsrht/templates/tree.html @@ -41,7 +41,9 @@ {% endif %} {% for entry in tree %}
- {{stat.filemode(entry.filemode)}} + + {{stat.filemode(entry.filemode)}} +