ffc9d555 |
{% if commits %}
|
6933b58c |
{% for date, commit in commits %}
|
25f0b5d8 |
<table class="table">
|
6933b58c |
<thead>
|
ffc9d555 |
<tr>
|
6933b58c |
<th colspan="3">{{ date | date("F j, Y") }}</th>
|
ffc9d555 |
</tr>
|
6933b58c |
</thead>
<tbody>
|
ffc9d555 |
{% for item in commit %}
|
6933b58c |
<tr>
|
0f1a36ab |
<td width="5%"><img src="https://gravatar.com/avatar/{{ item.author.email | lower | md5 }}?s=64" /></td>
|
ffc9d555 |
<td width="95%">
|
6933b58c |
<span class="pull-right">
<a class="btn btn-small" href="{{ path('commit', {repo: repo, commit: item.hash}) }}">
<i class="icon-list-alt"></i> View {{ item.shortHash }}
</a>
</span>
<h4>{{ item.message }}</h4>
<span><a href="mailto:{{ item.author.email }}">{{ item.author.name }}</a> authored on {{ item.date | format_date }}</span>
|
ffc9d555 |
</td>
|
6933b58c |
</tr>
|
ffc9d555 |
{% endfor %}
|
6933b58c |
</tbody>
</table>
{% endfor %}
|
ffc9d555 |
{% else %}
|
6933b58c |
<p>No results found.</p>
|
ffc9d555 |
{% endif %}
{% if page != 'searchcommits' %}
|
6933b58c |
<ul class="pager">
|
ffc9d555 |
{% if pager.current != 0 %}
|
6933b58c |
<li class="previous">
|
ffc9d555 |
<a href="?page={{ pager.previous }}">← Newer</a>
|
6933b58c |
</li>
|
ffc9d555 |
{% endif %}
{% if pager.current != pager.last %}
|
6933b58c |
<li class="next">
|
ffc9d555 |
<a href="?page={{ pager.next }}">Older →</a>
|
6933b58c |
</li>
|
ffc9d555 |
{% endif %}
|
6933b58c |
</ul>
|
ffc9d555 |
{% endif %}
|