This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
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| %>
|
|
|
|
<%= content_tag :li,link_to(ab.title,"##{ab.title}",:data=>{:toggle=>"tab"}),:class => (ab == @active ? 'active' : '' ) %>
|
|
|
|
<% end -%>
|
|
|
|
<%= content_tag :li,link_to('New',"#new-a-banner",:data=>{:toggle=>"tab"}),:class => (@active.nil? ? 'active' : '' ) %>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content">
|
|
|
|
<%= render :partial => 'ad_banner_tab',:collection => @ad_banners %>
|
|
|
|
<%= render :partial => "modal_ad_banner_form"%>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2012-01-31 10:31:31 +00:00
|
|
|
|