index : gitrs
A lightweight web interface for browsing Git repositories, implemented in Rust
about summary refs log tree commit diff
gitrs / templates / repository / diff.html
-rw-r--r-- blob 2ba4a3735481ced93bc406556e74610f3bae167d 532 bytes (plain)
1
{% extends "base.html" %}
2
3
{% block title %}{{ repo.name }} — {{ repo.description }}{% endblock %}
4
5
{% block header %}
6
  {{ macros::header(Some(repo), branch_names, Some(current_ref)) }}
7
{% endblock %}
8
9
{% block tabs %}
10
  {{ macros::repo_tabs(repo, current_ref, query, "diff") }}
11
{% endblock %}
12
13
{% block content %}
14
<h3><a href="/{{ repo.name }}/diff/">Diffstat</a>{% if let Some(file_path) = file_path %} <strong>(limited to '{{ file_path }}')</strong>{% endif %}</h3>
15
  {{ macros::diff_view(repo, diff, query) }}
16
{% endblock %}