https://dev.kronoz.win/r/rgit.git
1{% import "macros/link.html" as link %}
2{% import "macros/breadcrumbs.html" as breadcrumbs %}
3{% extends "repo/base.html" %}
4
5{% block head %}
6 <link rel="stylesheet" type="text/css" href="/highlight-{{ crate::HIGHLIGHT_CSS_HASH.get().unwrap() }}.css" />
7 <link rel="stylesheet" type="text/css" href="/highlight-dark-{{ crate::DARK_HIGHLIGHT_CSS_HASH.get().unwrap() }}.css" />
8{%- endblock %}
9
10{% block tree_nav_class %}active{% endblock %}
11
12{% block subnav %}
13 {% call breadcrumbs::breadcrumbs(repo_path, filters::branch_query(branch.as_deref())) %}
14{% endblock %}
15
16{% block extra_nav_links %}
17 <a href="?raw=true{% call link::maybe_branch_suffix(branch) %}">plain</a>
18{% endblock %}
19
20{% block content %}
21<pre>
22 {%- match file.content -%}
23 {%- when crate::git::Content::Text with (content) -%}
24 {{- content|safe -}}
25 {%- when crate::git::Content::Binary with (_) -%}
26 <binary file not displayed>
27 {%- endmatch -%}
28</pre>
29{% endblock %}