Sha256: 24c1ed849e4d015f3829865930ca80f300fa4a0f66fdc4f4db512f44609b87da
Contents?: true
Size: 1.3 KB
Versions: 3
Compression:
Stored size: 1.3 KB
Contents
<div class="col left"> <h1> Letters <span class="pull-right"> <%= link_to letters_path, class: 'btn refresh' do %> <i class="icon-refresh"></i> Refresh <% end %> <%= link_to clear_letters_path, method: 'delete', confirm: 'Are you sure?', class: 'btn btn-danger' do %> <i class="icon-trash icon-white"></i> Clear <% end %> </span> </h1> <table class="table table-hover letter-opener" data-letters-path="<%= letters_path %>"> <thead> <tr> <th>ID</th> <th>Sent at</th> </tr> </thead> <tbody> <% if first_letter = @letters.shift %> <tr class="active"> <td> <%= link_to(first_letter.id, letter_path(first_letter, style: 'rich'), target: 'mail') %> </td> <td><%= first_letter.sent_at %></td> </tr> <% end %> <% @letters.each do |letter| %> <tr> <td> <%= link_to(letter.id, letter_path(letter, style: 'rich'), target: 'mail') %> </td> <td><%= letter.sent_at %></td> </tr> <% end %> </tbody> </table> </div> <div class="col right"> <iframe name="mail" id="mail" src="<%= first_letter.present? ? letter_path(first_letter, style: 'rich') : 'about:blank' %>"></iframe> </div>
Version data entries
3 entries across 3 versions & 1 rubygems