blob: e4f2a1d427708e64295ff532a831bb185345ffab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  | 
- breadcrumb :line_footnotes, @referential, @line
- content_for :page_header_actions do
  - if policy(@line).update_footnote?
    = link_to(t('actions.edit'), edit_referential_line_footnotes_path(@referential, @line), class: 'btn btn-primary')
- page_header_content_for @line
.page_content
  .container-fluid
    .row
      - if @line.footnotes.any?
        - @line.footnotes.each do |footnote|
          .col-lg-4.col-md-4.col-sm-6.col-xs-12
            .panel.panel-default
              .panel-heading = footnote.code
              .panel-body
                p = footnote.label
              .panel-footer.text-right
                p.text-muted
                  em.small = "Dernière mise à jour le #{l(footnote.updated_at, format: :short)}"
      - else
        = replacement_msg 'Aucune note ne correspond à votre recherche'
  |