{% if commits %} {% for date, commit in commits %} <div class="panel panel-default"> <div class="panel-heading"> {{ date | date("F j, Y") }} </div> <ul class="list-group list-group-striped"> {% for item in commit %} <li class="list-group-item p3x-gitlist-commits-list"> <div class="pull-right p3x-gitlist-button" style="text-align: 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}) }}"><i class="far fa-chart-bar"></i> Changes</a> </div> <div class="media"> <div class="media-left"> <a> <img class="media-object" src="{{ avatar(item.author.email, 40) }}"/> </a> </div> <div class="media-body p3x-gitlist-commits-list-message p3x-gitlist-markdown-clear-fix">{{ item.message }}</div> </div> <div class="clearfix"></div> <div class="pull-right p3x-gitlist-button" style="text-align: right;"> <div style="margin-top: 5px; opacity: 0.5;"> <span class="hidden-xs">{{ item.hash }}</span> <span class="hidden-sm hidden-md hidden-lg">{{ item.shortHash }}</span> </div> </div> <div class="pull-left"> <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 %} </div> <div class="clearfix"></div> </li> {% endfor %} </ul> </div> {% endfor %} {% else %} <h4> No more commits. </h4> {% 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 %} <script type="text/javascript"> if (document.body.id === '') { location.reload() } </script>