{% extends "repo-full.html" %} {% import "utils.html" as utils %} {% block title %} {{repo.owner.canonical_name}}/{{repo.name}} ({{ ref }}): {{path_join(*path)}} - {{cfg("sr.ht", "site-name")}} git {% endblock %} {% block repohead %} {% endblock %} {% block content %}
{{ utils.breadcrumb(ref, commit.id, repo, path, entry, view, path_join, stat, pygit2, humanize, current_user) }} {% if commit %}
{{str(commit.id)[: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 %}
{% if markdown %}
{% endif %} {% if markdown and not force_source %}
{% else %}
{% endif %} {# This row has some weird styles going on. This prevents the page from scrolling horizontally #}
{% if markdown and not force_source %}
{{ markdown }}
{% else %} {% if not blob.is_binary and blob.size < 512000 %}
{% autoescape off %}
{% for i in range(
        editorconfig.max_line_length()) %} {% endfor %}
{% set lines = data.splitlines()|length %}
{{ linecounter(lines) }}
{% endautoescape %} {{ highlight_file(repo, ref, entry, data, str(blob.id), str(commit.id)) }}
{% elif blob.is_binary %}

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

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

{% else %}

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

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

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