{% extends "base.html" %}
{% block title %}{{ page_title }} · tit{% endblock %}
{% block content %}
{% if has_head %}
Browse tree · Show commit · Download archive
{% endif %}
{% if page_kind == "summary" %}
{% if description != "" %}
{{ description }}
{% endif %}
Clone
- HTTP
{{ http_clone_url }}
- SSH
{{ ssh_clone_url }}
- Created
{% if has_head %}
{% if has_readme %}
{{ readme_path }}
{% if readme_binary %}
Binary README content cannot be shown.
{% else %}
{{ readme_html|safe }}
{% endif %}
{% endif %}
{% else %}
This repository has no commits.
{% endif %}
{% endif %}
{% if page_kind == "commits" %}
All commits
{% if has_head %}
{% for item in history %}
{{ item.id|short_id }} {{ item.summary }} — {{ item.author_name }}
{% endfor %}
{% if has_previous_page || has_next_page %}
{% endif %}
{% else %}
This repository has no commits.
{% endif %}
{% endif %}
{% if page_kind == "refs" %}
Refs
{% endif %}
{% if page_kind == "tree" %}
Tree{% if path != "" %}: {{ path }}{% endif %}
{% endif %}
{% if page_kind == "blob" %}
Blob: {{ path }}
Raw · Blame
{% if blob_binary %}
Binary content cannot be shown. Use the raw link to download it.
{% else %}
{{ blob_content }}
{% endif %}
{% endif %}
{% if page_kind == "commit" %}
Commit {{ commit.id|short_id }}
Download patch
- Author
- {{ commit.author_name }} <{{ commit.author_email }}>
- Committed
- Tree
{{ commit.tree|short_id }}
{% for parent in commit.parents %}
- Parent
{{ parent|short_id }} · Diff
{% endfor %}
{{ commit.message }}
{% endif %}
{% if page_kind == "diff" %}
Diff
{{ secondary_id|short_id }} → {{ commit_id|short_id }}
{% for file in diffs %}
{{ file.path }}
Mode {{ file.old_mode }} → {{ file.new_mode }}; object {{ file.old_id|short_id }} → {{ file.new_id|short_id }}
{% if file.binary %}
Binary content changed.
{% else %}
{{ file.hunks }}
{% endif %}
{% endfor %}
{% endif %}
{% if page_kind == "blame" %}
Blame: {{ path }}
Blob · Raw
{% if blob_binary %}
Binary content cannot be blamed.
{% else %}
{% for item in blame %}
{{ item.commit_id|short_id }} current lines {{ item.start_line }}–{{ item.current_end_line }}; source lines {{ item.source_start_line }}–{{ item.source_end_line }}{% if item.source_path != "" %} from {{ item.source_path }}{% endif %}{{ item.content }}
{% endfor %}
{% endif %}
{% endif %}
{% if page_kind == "search" %}
Source search
{% if has_head %}
{% if search_done %}
Scanned {{ search_files }} files and {{ search_bytes }} bytes. Found {{ search_matches.len() }} matching lines.{% if search_truncated %} More results exist. Refine the search text.{% endif %}
{% for item in search_matches %}
- {{ item.path }}:{{ item.line_number }}
{{ item.line }}
{% endfor %}
{% endif %}
{% else %}
This repository has no commits to search.
{% endif %}
{% endif %}
{% endblock %}