- gitlist.git
- twig
- commits_list.twig
This file ( 2kB ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
{% if commits %}
{% for date, commit in commits %}
<table class="table table-striped">
<thead>
<tr>
<th colspan="3">{{ date | date("F j, Y") }}</th>
</tr>
</thead>
<tbody>
{% for item in commit %}
<tr>
<td width="5%"><img src="{{ avatar(item.author.email, 40) }}" /></td>
<td width="95%">
<span class="pull-right">
<a class="btn btn-primary btn-sm" href="{{ path('branch', {repo: repo, branch: item.hash}) }}" title="Browse code at this point in history"><span class="fa fa-list-alt"></span> Browse</a>
<a class="btn btn-primary default btn-sm" href="{{ path('commit', {repo: repo, commit: item.hash}) }}"><span class="fa fa-list-alt"></span> Changes</a>
</span>
<h4>{{ item.message }}</h4>
<h6 title="{{ item.hash }}" class="pull-right" style="margin: 0; cursor: pointer;">
<span class="hidden-xs">{{ item.hash }}</span>
<span class="hidden-sm hidden-md hidden-lg">{{ item.shortHash }}</span>
</h6>
<h6>
<a href="mailto:{{ item.author.email }}">{{ item.author.name }}</a> authored on {{ item.date | format_date }}
{% if item.author.email != item.commiter.email %}
• <a href="mailto:{{ item.commiter.email }}">{{ item.commiter.name }}</a> committed on {{ item.commiterDate | format_date }}
{% endif %}
</h6>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
{% else %}
<p>No results found.</p>
{% endif %}
{% if page != 'searchcommits' %}
<ul class="pager">
{% if pager.current != pager.last %}
<li class="next" id="p3x-gitlist-commit-list-next">
<a href="?page={{ pager.next }}">Older / Next →</a>
</li>
{% endif %}
</ul>
{% endif %}