kitgit

tirbofish/kitgit

main / templates / repo_commit.html · 1239 bytes

templates/repo_commit.html
{% extends "layout.html" %}

{% block title %}{{ commit.short_id }} · {{ owner.username }}/{{ repo.name }} — kitgit{% endblock %}

{% block content %}
<section class="kg-section">
  <h1 class="kg-title">
    <a href="/{{ owner.username }}/{{ repo.name }}">{{ owner.username }}/{{ repo.name }}</a>
    · commit
  </h1>
  {% let tab = "commits" %}
  {% let archive_ref = commit.id %}
  {% include "partials/repo_tabs.html" %}

  <p><code>{{ commit.id }}</code></p>
  <p class="kg-title">
    {{ message_html|safe }}
    {% let c = commit %}
    {% let show_unverified = true %}
    {% include "partials/verified_badge.html" %}
  </p>
  <p class="kg-meta">{{ commit.author }} &lt;{{ commit.email }}&gt; · {{ commit.time_display() }}</p>

  <p><a href="/{{ owner.username }}/{{ repo.name }}/diff/{{ commit.id }}{% if show_full %}?full=1{% endif %}">view full diff</a></p>
  {{ diff_html|safe }}
  {% if truncated && !show_full %}
  <p class="kg-diff__truncated">
    Large diffs are not rendered by default.
    Showing the first 50 of {{ total_lines }} lines.
    <a class="kg-btn kg-btn--ghost" href="/{{ owner.username }}/{{ repo.name }}/commit/{{ commit.id }}?full=1">Show full diff</a>
  </p>
  {% endif %}
</section>
{% endblock %}