ManageIQ/miq_bot

View on GitHub
app/views/main/_commit_monitor.html.erb

Summary

Maintainability
Test Coverage
<div class="table-responsive">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>Repository</th>
                <th>Branch</th>
                <th>Last Commit</th>
                <th>Last Checked</th>
                <th>Last Changed</th>
            </tr>
        </thead>
        <tbody>
            <% @branches.each do |branch| %>
                <tr>
                    <td><%= branch.fq_repo_name %></td>
                    <td><%= branch.name %></td>
                    <td><%= link_to(branch.last_commit[0, 8], branch.last_commit_uri, :target => "_blank") %></td>
                    <td><%= time_ago_in_words_with_nil_check(branch.last_checked_on) %></td>
                    <td><%= time_ago_in_words_with_nil_check(branch.last_changed_on) %></td>
                </tr>
            <% end %>
        </tbody>
    </table>
</div>