{% extends 'cmdb/ci_details.html' %}
{% load icons %}
{% load query %}
{% load bob %}

{% block ci_content %}
<span><h3> Last Repo changes </h3> </span>
<table class="table table-bordered table-striped table-properties">
<tr>
    <th>ID</th>
    <th>Date</th>
    <th>File Paths</th>
    <th>Comment</th>
    <th>Author</th>
    <th>Changeset</th>
    <th>Number of errors</th>
</tr>
{% for f in git_changes  %}
<tr> 
    <td>{{ f.id }}</td>
    <td style='width: 150px;'>{{ f.created }}</td>
    <td style='max-width: 355px; overflow: hidden;' >{{ f.file_paths}}</td>
    <td>{{ f.comment}}</td>
    <td>{{ f.author}}</td>
    <td style='width: 300px'>  <a href='{{fisheye_url}}/changelog/{{fisheye_project}}?cs={{ f.changeset}}'>{{ f.changeset }}</a></td>
    <td>
        <span class="nolink badge badge-important">{{ puppet_feedback_errors|default:"0" }} errors</span><br>
        <span class="nolink badge badge-success">{{ puppet_feedback_changes|default:"0" }} changes</span>
    </td>
</tr>
{% endfor %}
</table>
{% if git_changes %}
{% pagination git_changes url_query=url_query show_all=0 show_csv=0 fugue_icons=1 %}
{% endif %}
{% endblock %}
