{% extends "layout_repo.html" %} {% block page_title %}{{ view.path }} at {{ view.refname }} · {% endblock %} {% block content %} {% let base = r.base() %}
{% let refsel = view.refsel %} {% include "partials/refsel.html" %}
{% if let Some(c) = view.latest %}
{{ crate::web::fmt::avatar(c.author_name, 22)|safe }} {{ c.author_name }} {{ c.summary }} {{ c.short_id }} · {{ crate::web::fmt::icon("history")|safe }} History
{% endif %}
{% if view.line_count > 0 %}{{ crate::web::fmt::plural(view.line_count, "line") }}·{% endif %} {{ crate::web::fmt::bytes(view.size) }} {% if let Some(lang) = view.language %}·{{ lang }}{% endif %}
{% if view.is_markdown %} {% endif %} Raw {{ crate::web::fmt::icon("download")|safe }}
{% match view.content %} {% when crate::web::code::BlobContent::Code with { lines } %}
{% for line in lines %} {% endfor %}
{{ loop.index }}{{ line|safe }}
{% when crate::web::code::BlobContent::Markdown with { html } %}
{{ html|safe }}
{% when crate::web::code::BlobContent::Image with { src } %}
{{ view.file_name }}
{% when crate::web::code::BlobContent::Binary %}
Binary file not shown. View raw
{% when crate::web::code::BlobContent::TooLarge %}
This file is too large to display. View raw
{% endmatch %}
{% endblock %}