a73x

src/server/http/templates/history.html

Ref:   Size: 1.1 KiB   History

{% extends "repo_base.html" %}

{% block title %}History — {{ file_path }} — {{ repo_name }} — {{ site_title }}{% endblock %}

{% block content %}
<h2>History:
  <a href="/{{ repo_name }}/blob/{{ ref_name }}/{{ file_path }}">{{ file_path }}</a>
</h2>
<p style="color: #666;">Ref:
  <select class="mono" onchange="location.href=this.value">
    {% for b in branches %}
    <option value="/{{ repo_name }}/history/{{ b }}/{{ file_path }}"{% if *b == ref_name %} selected{% endif %}>{{ b }}</option>
    {% endfor %}
  </select>
</p>
{% if commits.is_empty() %}
<p style="color: #666;">No commits touched this file.</p>
{% else %}
<div class="table-scroll">
<table>
  <thead>
    <tr>
      <th>Hash</th>
      <th>Message</th>
      <th>Author</th>
      <th>Date</th>
    </tr>
  </thead>
  <tbody>
    {% for c in commits %}
    <tr>
      <td class="mono"><a href="/{{ repo_name }}/diff/{{ c.id }}">{{ c.short_id }}</a></td>
      <td>{{ c.summary }}</td>
      <td style="color: #666;">{{ c.author }}</td>
      <td class="mono" style="color: #666;">{{ c.date }}</td>
    </tr>
    {% endfor %}
  </tbody>
</table>
</div>
{% endif %}
{% endblock %}