<script type="text/ng-template" id="bookings/modals/history.html">
<div class="modal-header">
    <button type="button" class="close" ng-click="cancel()">&times;</button>
    <h3 class="modal-title">{[{ title }]}</h3>
</div>
<div class="modal-body" >

    <table class="table table-condensed table-striped">
        <thead>
            <th>Date</th>
            <th>Reason</th>
            <th>Modified by</th>
        </thead>
        <tbody>
            <tr ng-repeat="entry in historyEntries">
                <td>{[{ ::entry.created_at | fromNow }]}</td>
                <td>{[{ entry.new_value }]}</td>
                <td>{[{ (users | filter: {id: entry.user_id})[0].name }]}</td>
            </tr>
        </tbody>
    </table>
    <br><br>
    <div paginator="paginator"></div>
</div>
</script>
