https://dev.kronoz.win/r/rgit.git
1{% extends "repo/base.html" %}
2
3{% block head -%}
4{%- if let Some(readme) = readme -%}
5 {%- if readme.0 == crate::git::ReadmeFormat::Markdown %}
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 {%- endif -%}
9{%- endif -%}
10{% endblock %}
11
12{% block about_nav_class %}active{% endblock %}
13
14{% block content %}
15{% if let Some(readme) = readme -%}
16 {%- match readme.0 -%}
17 {%- when crate::git::ReadmeFormat::Markdown -%}
18 {{ readme.1|safe }}
19 {%- when crate::git::ReadmeFormat::Plaintext -%}
20 <pre>{{ readme.1 }}</pre>
21 {%- endmatch -%}
22{%- else -%}
23 No README in repository HEAD.
24{%- endif %}
25{% endblock %}