{% extends "repo.html" %} {% import "utils.html" as utils %} {% block title %} {{repo.owner.canonical_name}}/{{repo.name}}: {{path_join(*path)}} - {{cfg("sr.ht", "site-name")}} git {% endblock %} {% block content %}
{{ utils.breadcrumb(ref, repo, path, path_join) }} {{stat.filemode(entry.filemode)}} {{humanize.naturalsize(blob.size, binary=True).replace("Byte", "byte")}} View raw {% if commit %}
{{commit.id.hex[:8]}} — {% set author_user = lookup_user(commit.author.email) %} {% if author_user %} {{commit.author.name}} {% else %} {{commit.author.name}} {% endif %} {{trim_commit(commit.message)}} {{ commit_time(commit) | date }}
{% endif %}
{# This row has some weird styles going on. This prevents the page from scrolling horizontally #}
{% if not blob.is_binary %}
{% for i in range(
        editorconfig.max_line_length()) %} {% endfor %}
{% for line in data.split("\n") %}{{loop.index}}{% if not loop.last %}
{% endif %}{% endfor %}
{{ highlight_file(repo, ref, entry.name, data, blob.id.hex) }}
{% else %}

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

Download {{icon("caret-right")}}

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}