We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3d6e1c commit 377636aCopy full SHA for 377636a
1 file changed
app/views/redaction/news/_topbar.html.haml
@@ -2,14 +2,15 @@
2
- if show_backlink
3
.backlink
4
= link_to image_tag("feather-icons/dist/icons/arrow-left.svg", alt: "Retour à l’espace de rédaction"), '/redaction'
5
- .lastmodifications
6
- - revision = news.versions.first
7
- .revision-table
8
- .revision-cell
9
- = revision.version
10
- %p
11
- dernière modification
12
- %br
13
- %span.revision-date
14
- = "le #{I18n.l(revision.created_at, :format => '%d %B %Y à %H:%M:%S')}"
+ - if news.versions.count > 0
+ .lastmodifications
+ - revision = news.versions.first
+ .revision-table
+ .revision-cell
+ = revision.version
+ %p
+ dernière modification
+ %br
+ %span.revision-date
15
+ = "le #{I18n.l(revision.created_at, :format => '%d %B %Y à %H:%M:%S')}"
16
= render 'attendees', attendees: news.attendees, enable_reassign: false
0 commit comments