orbit-basic/app/views/admin/ad_banners/index.html.erb

18 lines
630 B
Plaintext
Raw Normal View History

2012-04-13 08:46:16 +00:00
<%= stylesheet_link_tag "admin/ad_banner_preview" %>
2012-04-01 15:39:49 +00:00
<div id="post-body-content" class="clear">
<ul class="nav nav-tabs">
<% @ad_banners.each do |ab| %>
2012-04-09 04:44:08 +00:00
<%= content_tag :li,link_to(ab.title,"##{ab.title}",:data=>{:toggle=>"tab"}),:class => (ab == @active ? 'active' : nil ) %>
2012-04-01 15:39:49 +00:00
<% end -%>
2012-04-09 04:44:08 +00:00
<%= content_tag :li,link_to('New',"#new-a-banner",:data=>{:toggle=>"tab"}),:id=>'new_ad_banner_tab_but',:class => (@active.nil? ? 'active' : nil ) %>
2012-04-01 15:39:49 +00:00
</ul>
<div class="tab-content">
<%= render :partial => 'ad_banner_tab',:collection => @ad_banners %>
<%= render :partial => "modal_ad_banner_form"%>
</div>
</div>