demarches-normaliennes/app/views/super_admins/release_notes/index.html.haml

32 lines
1.1 KiB
Text
Raw Normal View History

= render "main_navigation", action: :index
.fr-container.fr-my-5w
.fr-grid-row.fr-grid-row--center
.fr-col-lg-10
%h1.fr-h2 Liste des annonces
-# haml-lint:disable ApplicationNameLinter
= link_to "Releases sur GitHub", "https://github.com/demarches-simplifiees/demarches-simplifiees.fr/releases", **external_link_attributes
-# haml-lint:enable ApplicationNameLinter
.fr-table
%table
%thead
%th Annoncé le
%th Publié ?
%th Notes
%th Actions
%tbody
- @release_notes.each do |note|
%tr
%td= l(note.released_on) if note.released_on
%td
- if note.published?
%span.fr-badge.fr-badge--success.fr-badge--no-icon Publié
- else
%span.fr-badge.fr-badge--warning.fr-badge--no-icon Brouillon
%td= note.body.to_plain_text.truncate_words(12)
%td
= link_to 'Modifier', edit_super_admins_release_note_path(note), class: 'fr-btn fr-btn--secondary'