2013-08-09 01:24:26 +00:00
|
|
|
<table class="table main-list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="span1"><%= t('ad_image.image') %></th>
|
|
|
|
<th class="span1"><%= t('ad_image.post_date') %></th>
|
|
|
|
<th class="span1"><%= t('ad_image.unpost_date') %></th>
|
|
|
|
<th class="span1"><%= t('ad_image.context') %></th>
|
|
|
|
<th class="span1"><%= t('ad_image.out_link') %></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tbody_locations" class="sort-holder">
|
|
|
|
<% @ad_images.each do |ad_image| %>
|
|
|
|
<tr class="with_action">
|
|
|
|
<td><%= image_tag ad_image.file.thumb %>
|
|
|
|
<div class="quick-edit">
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<% if is_admin?%>
|
|
|
|
<li><%= link_to t(:edit), edit_admin_ad_image_path(ad_image)%></li>
|
|
|
|
<li><%= link_to 'Destroy', admin_ad_image_path(ad_image), method: :delete , :confirm => t(:sure?) %></li>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><%= ad_image.post_date %></td>
|
|
|
|
<td><%= ad_image.unpost_date %></td>
|
|
|
|
<td><%= ad_image.context %></td>
|
|
|
|
<td><%=link_to "#{ad_image.out_link}", ad_image.out_link %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<%if is_manager? %>
|
|
|
|
<!-- footer -->
|
|
|
|
<div class="bottomnav clearfix">
|
|
|
|
<div class="action pull-right">
|
|
|
|
<%= link_to content_tag(:i, nil, class: "icons-plus") + " " + t(:add_new), "#add-banner", :class => "btn btn-primary open-slide"%>
|
|
|
|
</div>
|
|
|
|
<div class="pagination pagination-centered">
|
|
|
|
<%= paginate @ad_images unless @ad_images.blank? %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="add-banner" class="nano" style="display:none">
|
|
|
|
<%= render 'new' %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|