<% route = fn p -> ~p"/admin/adverts?#{p}" end %> <% pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @adverts, route: route) %>
New advert <%= pagination %>
<%= for advert <- @adverts do %> <% end %>
Image Ad Information Start Finish Enabled Restriction Statistics Options
URL: <%= link(advert.link, to: advert.link) %>
Title: <%= advert.title %> <%= if present?(advert.notes) do %>
Notes: <%= advert.notes %> <% end %>
<%= pretty_time(advert.start_date) %> <%= pretty_time(advert.finish_date) %> <%= live_text(advert) %> <%= advert.restrictions %> Impressions: <%= advert.impressions %>
Clicks: <%= advert.clicks %>
<%= link("Edit", to: ~p"/admin/adverts/#{advert}/edit") %> • <%= link("Destroy", to: ~p"/admin/adverts/#{advert}", data: [confirm: "Are you really, really sure?", method: "delete"]) %>
<%= pagination %>