internetee/registry

View on GitHub
app/views/admin/bounced_mail_addresses/index.html.erb

Summary

Maintainability
Test Coverage
<h1>Bounced Mail Addresses</h1>

<%= render 'application/pagination' %>

<div class="row">
    <div class="row">
        <div class="col-md-12">
            <div class="table-responsive">
                <table class="table table-hover table-bordered table-condensed">
                    <thead>
                        <tr>
                            <th>Email</th>
                            <th>Action</th>
                            <th>Status</th>
                            <th>Diagnostic</th>
                            <th>Tracked</th>
                            <th colspan="2">Actions</th>
                        </tr>
                    </thead>

                    <tbody>
                        <% @bounced_mail_addresses.each do |mail_addr| %>
                        <tr>
                            <td><%= mail_addr.email %></td>
                            <td><%= mail_addr.action %></td>
                            <td><%= mail_addr.status %></td>
                            <td><%= mail_addr.diagnostic %></td>
                            <td><%= mail_addr.created_at %></td>
                            <td><%= link_to 'Detailed', admin_bounced_mail_address_path(mail_addr) %></td>
                            <td><%= link_to 'Destroy', admin_bounced_mail_address_path(mail_addr), method: :delete, data: { confirm: 'Are you sure?' } %></td>
                        </tr>
                        <% end %>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-md-6">
        <%= paginate @bounced_mail_addresses %>
    </div>
    <div class="col-md-6 text-right">
        <div class="pagination">
            <%= t(:result_count, count: @count) %>
        </div>
    </div>
</div>