app/views/admin/banner_sets/show.html.erb in tb_banners-1.1.1 vs app/views/admin/banner_sets/show.html.erb in tb_banners-1.1.2
- old
+ new
@@ -1,11 +1,22 @@
<% content_for :data_controls do %>
- <%= link_to 'Upload Banner', new_admin_banner_set_banner_path(@banner_set), :class => 'btn btn-primary spud_banner_add_new' %>
+ <%= link_to 'Upload Banner', new_admin_banner_set_banner_path(@banner_set), :class => 'btn btn-primary admin-banner-set-item-add' %>
<% end %>
-<div class="spud_banner_set_banners_container">
- <%= render :partial => 'admin/banners/banner', :collection => @banner_set.banners %>
-</div>
+<table class="table table-striped">
+ <thead>
+ <tr>
+ <th>Banner</th>
+ <th>Start Date</th>
+ <th>End Date</th>
+ <% if !@banner_set.has_rich_text %>
+ <th>Links to</th>
+ <% end %>
+ </tr>
+ </thead>
+ <tbody class="admin-banner-set-items-container">
+ <%= render :partial => 'admin/banners/banner', :collection => @banner_set.banners %>
+ </tbody>
<script>
$(document).ready(spud.admin.banners.init);
</script>