src/server/http/templates/diff.html
Ref: Size: 766 B History
{% extends "repo_base.html" %}
{% block title %}{{ short_id }} — {{ repo_name }} — {{ site_title }}{% endblock %}
{% block content %}
<section style="display: grid; gap: 12px;">
<div>
<h2 class="mono">{{ short_id }}</h2>
<p><strong>{{ summary }}</strong></p>
<p style="color: #666;">{{ author }} {{ date }}</p>
</div>
{% if !full_message.is_empty() %}
<div>
<div style="font-size: 12px; color: #666; margin-bottom: 6px;">Commit message</div>
<pre class="commit-message">{{ full_message }}</pre>
</div>
{% endif %}
</section>
<hr style="margin: 16px 0;">
{% if diff_files.is_empty() %}
<p style="color: #666;">No diff available for this commit.</p>
{% else %}
{% include "diff_files.html" %}
{% endif %}
{% endblock %}