~edwargix/git.sr.ht

261725ef64b165ef87adc77fe8a3d10e7cf8bee8 — Drew DeVault 6 years ago 11432af
Show file mode in octal on hover
2 files changed, 6 insertions(+), 2 deletions(-)

M gitsrht/templates/blob.html
M gitsrht/templates/tree.html
M gitsrht/templates/blob.html => gitsrht/templates/blob.html +3 -1
@@ 14,7 14,9 @@
        >{{part}}</a>/{%
      endif %}{% endfor %}
      <span class="text-muted" style="margin-left: 1rem">
        {{stat.filemode(entry.filemode)}}
        <span title="{{"{0:0o}".format(entry.filemode)}}">
          {{stat.filemode(entry.filemode)}}
        </span>
      </span>
      <span class="text-muted" style="margin-left: 1rem">
        {{humanize.naturalsize(blob.size,

M gitsrht/templates/tree.html => gitsrht/templates/tree.html +3 -1
@@ 41,7 41,9 @@
      {% endif %}
      {% for entry in tree %}
      <div class="mode">
        {{stat.filemode(entry.filemode)}}
        <span title="{{"{0:0o}".format(entry.filemode)}}">
          {{stat.filemode(entry.filemode)}}
        </span>
      </div>
      <div class="name {{entry.type}}">
        <a href="{{url_for("repo.tree",