Files
project-work/worker-toolkit-stocks-in-the-future/repo/app/views/admin/announcements/index.html.erb
Eric Bell 392781f7aa chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
2026-08-11 14:44:09 -04:00

21 lines
840 B
Plaintext

<div class="max-w-7xl mx-auto">
<%= admin_breadcrumbs(@breadcrumbs) %>
<%= admin_table(
@announcements,
columns: [
{ attribute: :title, label: "Title", sortable: true },
{ attribute: :featured, label: "Featured", sortable: true },
{ attribute: :created_at, label: "Created", sortable: true },
{ attribute: :updated_at, label: "Updated", sortable: true }
],
title: "Announcements",
actions: link_to(
"New Announcement",
new_admin_announcement_path,
class: "inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700"
),
empty_message: "No announcements found. Create your first announcement to get started."
) %>
</div>