Sha256: e75c2d5ddb963952843be7be955fe6a06d5c5dab85105e44427cd8927f05b312
Contents?: true
Size: 1.02 KB
Versions: 7
Compression:
Stored size: 1.02 KB
Contents
<h1><%= t('activerecord.models.headers') %></h1> <%= render 'tab_admin_menu' %> <table class='table table-striped'> <thead> <tr> <th><%= t('activerecord.attributes.header.photo') %></th> <th><%= t('name_and_paths') %></th> <th><%= t('actions') %></th> </tr> </thead> <tbody> <% @headers.each do |header| %> <tr> <td><%= link_to image_tag(header.photo.thumbnail), header %></td> <td> <h3><%= header.name %> | <%= link_to(t('see_all_resolutions'), header) %></h3> <b>Thumbnail</b> path: <%= header.photo.thumbnail %><br /> <b>Large</b> path: <%= header.photo.large %><br /> </td> <td><%= link_to t('edit'), edit_header_path(header), class: 'btn btn-mini' %> <%= link_to 'Destroy', header, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-mini btn-danger' %></td> </tr> <% end %> </tbody> </table> <%= will_paginate @headers %> <%= link_to t('headers.create.new'), new_header_path, class: 'btn btn-primary' %> <%= render 'shared/admin_sidebar' %>
Version data entries
7 entries across 7 versions & 1 rubygems