Blob: commits.html
Blob id: 1723ee0ac2bbad1b2baf8f9052d0830ab3bee3a1
Size: 1.4 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | {% extends "base.html" %} {% block content %} <h2>Commits</h2> <table> <thead> <tr style="font-weight: bold;"> <td>Commit</td> <td>Message</td> <td>Author</td> <td>Age</td> <td>Changes</td> </tr> </thead> <tbody> {% for commit in commits %} <tr> <td valign="top" nowrap><a href="{{ url_for('commit_detail', repo_name=repo_name, commit_id=commit.id) }}">{{ commit.id[:8] }}</a></td> <td valign="top">{{ commit.message }}</td> <td valign="top" nowrap>{{ commit.author.name }}</td> <td valign="top" nowrap>{{ commit.date | age }}</td> <td valign="top" nowrap>{{ commit.diff_stats.files_changed }} file{% if commit.diff_stats.files_changed != 1 %}s{% endif %}, <span style="color: green;">+{{ commit.diff_stats.insertions }}</span>, <span style="color: red;">-{{ commit.diff_stats.deletions }}</span></td> </tr> {% endfor %} </tbody> </table> <div> {% if has_prev %} <a href="{{ url_for('repo_commits', repo_name=repo_name, page=page-1, ref=ref) }}">Previous</a> {% endif %} {% if has_next %} <a href="{{ url_for('repo_commits', repo_name=repo_name, page=page+1, ref=ref) }}">Next</a> {% endif %} </div> {% endblock %} |