text_marquee/app/views/admin/text_marquees/show.html.erb

25 lines
749 B
Plaintext

<div>
<table class="table main-list">
<thead>
<tr class="sort-header">
<% @table_fields.each do |f| %>
<%= thead(f) %>
<% end %>
</tr>
</thead>
<tbody>
<%= render :partial => 'text', :collection => @marquee.marquee_texts %>
</tbody>
</div>
<% if can_edit_or_delete?(@marquee) %>
<div class="bottomnav clearfix" style="left: 81px;">
<div class="action pull-right">
<a data-fx="fade" class="btn btn-primary" href="/admin/text_marquees/<%= @marquee.id.to_s %>/newtext">
<i class="icon-plus"></i> <%= t("text_marquee.new") %>
</a>
</div>
<div class="pagination pagination-centered"></div>
</div>
<% end %>
<%= render 'layouts/delete_modal', delete_options: @delete_options %>