.yui-b = render :partial => 'shared/admin_nav' #yui-main .yui-b.box %h3= :ads.l %table{"width"=>"100%"} %tr %th=:name.l %th=:frequency.l %th =:published.l \? %th=:run.l %th=:location.l %th   - for ad in @ads %tr %td= link_to h(ad.name), ad_path(ad) %td= h ad.frequency %td= h ad.published? %td= h ad.time_constrained? ? "#{ad.start_date.to_formatted_s(:short)}-#{ad.end_date.to_formatted_s(:short)}" : "n/a" %td= h ad.location %td{:colspan => 3} = link_to :show.l, ad_path(ad) | = link_to :edit.l, edit_ad_path(ad) | = link_to :destroy.l, ad_path(ad), :confirm => :are_you_sure.l, :method => :delete %br = link_to :new_ad.l, new_ad_path