Blob Blame Raw
{% extends "repo_master.html" %}

{% block title %}Commit - {{ repo.name }} - {{ commitid }}{% endblock %}
{%block tag %}home{% endblock %}

{% block repo %}

<h3>
  Commit: {{ commitid }}
  (<a href="{{ url_for('view_tree', username=username,
               repo=repo.name, identifier=commitid) }}"
    >tree</a>)
</h3>

<table>
  <tr>
    <td>Author</td>
    <td>
      {{ commit.author.name }} {{ '<' + commit.author.email + '>' }}
      - {{ commit.commit_time }}
    </td>
  </tr>
  <tr>
    <td>Committer</td>
    <td>
      {{ commit.committer.name }} {{ '<' + commit.committer.email + '>' }}
      - {{ commit.commit_time }}
    </td>
  </tr>
  <tr>
    <td>Parent</td>
    <td>
      {% for parent in commit.parents %}
        <a href="{{ url_for('view_commit', username=username,
                  repo=repo.name, commitid=parent.oid.hex) }}">
          {{ parent.oid.hex }}
        </a> <br />
      {% endfor %}
    </td>
  </tr>
</table>

<section class="commit_message">
  <span class="commit_message_head">
    {{ commit.message.split('\n')[0] }}
  </span>
  <span class="commit_message_body">
    {{ commit.message.split('\n')[1] }}
  </span>
</section>

<section class="commit_diff">
  <h3>Diff:</h3>
  {% autoescape false %}
  {{ html_diff }}
  {% endautoescape %}
</section>

{% endblock %}