aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/line_footnotes/show.html.slim
blob: 0ed1d29585e49fddad85af5fcaed23f1be7cb77a (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
26
- breadcrumb :line_footnotes, @referential, @line
/ PageHeader
= pageheader 'ligne',
             "Notes sur la ligne #{@line.name}",
             'Lorem ipsum dolor sit amet',
             '',
             (policy(@line).update_footnote? ? link_to(t('actions.edit'), edit_referential_line_footnotes_path(@referential, @line), class: 'btn btn-primary') : '')

/ PageContent
.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'