Orbit/app/views/admin/ad_banners/index.html.erb

35 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

<% content_for :page_specific_css do -%>
<%#= stylesheet_link_tag "admin/ad_banner_preview" %>
<% end -%>
2012-05-03 06:57:10 +00:00
<% content_for :page_specific_javascript do -%>
<%= javascript_include_tag "/static/jquery.cycle.all.latest.js" %>
<%= javascript_include_tag "inc/modal-preview" %>
<%= javascript_include_tag "lib/contenteditable" %>
<% end -%>
2012-04-13 08:46:16 +00:00
2012-04-01 15:39:49 +00:00
<div id="post-body-content" class="clear">
2012-04-29 16:17:18 +00:00
<ul id="banner_tab" class="nav nav-tabs">
2012-04-01 15:39:49 +00:00
<% @ad_banners.each do |ab| %>
<%= content_tag :li ,:class => (ab == @active ? 'active' : nil) do %>
<%if at_least_module_manager%>
<i class="icons-pencil"></i>
<%= link_to(ab.title,"##{ab.title.dehumanize}",:contenteditable=>"false",:data=>{:toggle=>"tab" ,'edit-url' =>(admin_rename_ad_banner_path ab) } )%>
<% else %>
<%= link_to(ab.title,"##{ab.title.dehumanize}",:data=>{:toggle=>"tab" } )%>
<% end -%>
<% end -%>
2012-04-01 15:39:49 +00:00
<% end -%>
2012-09-12 11:12:50 +00:00
<%= content_tag :li,link_to(t('new.banner'),"#new-a-banner",:data=>{:toggle=>"modal"}),:id=>'new_ad_banner_tab_but',:class => (@active.nil? ? 'active' : nil ) if at_least_module_manager%>
2012-04-01 15:39:49 +00:00
</ul>
<div class="tab-content" id="ad_banner-tab-content">
2012-04-29 16:17:18 +00:00
<%= render :partial => 'ad_banner_tab',:collection => @ad_banners %>
2012-04-01 15:39:49 +00:00
</div>
<%= render :partial => "modal_ad_banner_form"%>
2012-04-01 15:39:49 +00:00
</div>