{% extends "base.html" %} {% import "repo_tabs.html" as m %} {% block title %}{{ repo.owner }}/{{ repo.name }}{% endblock %} {% block bodyattrs %} data-repo="{{ repo.url }}" data-ref="{{ at }}"{% endblock %} {% block tabs %}{% call m::tabs(repo, "code") %}{% endblock %} {% block content %} {% include "repo_backdrop.html" %}
{% if o.heads > 1 %}
{{ at }} has {{ o.heads }} heads; the tree below is their union. Bookmarks
{% endif %} {% if o.conflicted %}
This state carries conflicts. See them
{% endif %}
{{ at }}
{% if o.latest.is_none() %}{{ o.changes|plural("change", "changes") }}{% endif %} {% if repo.can(crate::auth::Access::Write) %}new file{% endif %}
Code

The URL alone: {{ repo.clone_url }}

{% if quickstart.is_none() %} Download ZIP

{{ at }} as it is now, without its history. Also as .tar.zst.

{% endif %}
{% if let Some(q) = quickstart %} {% include "quickstart.html" %} {% else %}
{% if let Some(c) = o.latest %}
{% if let Some(a) = c.author.account %} {{ a }}{% else %}{{ c.author.name }}{% endif %} {{ c.title }} {{ c.short }}{{ crate::web::icons::svg("history")|safe }} {{ o.changes|plural("change", "changes") }}
{% endif %} {% include "tree_table.html" %}
{% endif %} {% if let Some(html) = readme_html %}

{{ o.tree.readme.as_ref().unwrap().path }}

{{ html|safe }}
{% endif %}
{% endblock %}