Sha256: f3da21c698c49c40030f66959c3cedbb49d9f7dc8234824fc7ed9eb3443ea3a7

Contents?: true

Size: 1.16 KB

Versions: 5

Compression:

Stored size: 1.16 KB

Contents

<%= render 'backend/breadcrumbs' %>

<% if @emails.any? %>
  <table class="table table-striped table-hover">
    <thead class="thead-inverse">
      <tr>
        <th><%= t 'b.from' %></th>
        <th><%= t 'b.to' %></th>
        <th><%= t 'b.subject' %></th>
        <th><%= t 'b.locale' %></th>
        <th><%= t 'b.sent_at' %></th>
        <th>&nbsp;</th>
      </tr>
    </thead>

    <tbody>
      <% @emails.each do |e| %>
        <tr>
          <td><%= mail_to e.from_email, e.from_name %></td>
          <td><%= mail_to e.to_email, e.to_name %></td>
          <td><%= e.subject %></td>
          <td><%= e.locale %></td>
          <td>
            <% if e.sent_at %>
              <%= l e.sent_at %>
            <% else %>
              <%= t 'b.not_yet_sent' %>
            <% end %>
          </td>
          <td class="right icons">
            <%= link_to_show [:backend, e] %>
          </td>
        </tr>
      <% end %>
    </tbody>

    <% if will_paginate %>
      <tfoot>
        <tr>
          <td colspan="6">
            <%= will_paginate %>
          </td>
        </tr>
      </tfoot>
    <% end  %>
  </table>

<% else %>
  <p><%= t 'b.msg.no_items' %></p>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
udongo-1.0.3 app/views/backend/emails/index.html.erb
udongo-1.0.2 app/views/backend/emails/index.html.erb
udongo-1.0.1 app/views/backend/emails/index.html.erb
udongo-1.0.0 app/views/backend/emails/index.html.erb
udongo-0.1.0 app/views/backend/emails/index.html.erb