philomena/lib/philomena_web/templates/admin/site_notice/index.html.slime

45 lines
1.2 KiB
Text
Raw Normal View History

2019-12-14 19:28:04 +01:00
h1 Site Notices
2024-06-06 22:28:35 +02:00
- route = fn p -> ~p"/admin/site_notices?#{p}" end
2019-12-14 21:15:35 +01:00
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @admin_site_notices, route: route, conn: @conn
2019-12-14 19:28:04 +01:00
.block
.block__header
2024-06-06 22:28:35 +02:00
a href=~p"/admin/site_notices/new"
2019-12-14 19:28:04 +01:00
i.fa.fa-plus>
' New site notice
= pagination
.block__content
table.table
thead
tr
th Title
th Start
th Finish
th Live?
th Options
tbody
2019-12-14 21:15:35 +01:00
= for site_notice <- @admin_site_notices do
2019-12-14 19:28:04 +01:00
tr
td
em = site_notice.title
td class=time_column_class(site_notice.start_date)
= pretty_time site_notice.start_date
td class=time_column_class(site_notice.finish_date)
= pretty_time site_notice.finish_date
td
= live_text site_notice
td
2024-06-06 22:28:35 +02:00
=> link "Edit", to: ~p"/admin/site_notices/#{site_notice}/edit"
2019-12-14 19:28:04 +01:00
' &bull;
2024-06-06 22:28:35 +02:00
=> link "Destroy", to: ~p"/admin/site_notices/#{site_notice}", data: [confirm: "Are you really, really sure?", method: "delete"]
2019-12-14 19:28:04 +01:00
.block__header.block__header--light
= pagination