diff options
| author | Xinhui | 2016-11-28 13:25:18 +0100 |
|---|---|---|
| committer | Xinhui | 2016-11-28 13:25:18 +0100 |
| commit | 850061c7f1d20bce0cf9163658327fc3557919bc (patch) | |
| tree | e86cd9bf156312b4e3df5bb7b2ce7ac93d070258 /app/views/referential_lines | |
| parent | 61653806b8d977eef4d565040cc7ea86cb9fa9c9 (diff) | |
| download | chouette-core-850061c7f1d20bce0cf9163658327fc3557919bc.tar.bz2 | |
LineFootnotes#show
Diffstat (limited to 'app/views/referential_lines')
| -rw-r--r-- | app/views/referential_lines/show.html.slim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim index 1b27a22f8..9b754a5aa 100644 --- a/app/views/referential_lines/show.html.slim +++ b/app/views/referential_lines/show.html.slim @@ -108,11 +108,7 @@ h2 / = ": #{@line.vehicle_journeys.count - (@line.vehicle_journeys.where('flexible_service = ?', true).count + @line.vehicle_journeys.where('flexible_service = ?', false).count)}" / p - label = "#{@line.human_attribute_name('footnotes')} : " - ul - - @line.footnotes.each do |footnote| - li = "#{footnote.code} : #{footnote.label}" - + label = link_to @line.human_attribute_name('footnotes'), referential_line_footnotes_path(@referential, @line) / p / label = "#{@line.human_attribute_name('comment')} : " / = @line.comment @@ -134,9 +130,6 @@ p.after_map - if policy(@line).update? li = link_to t('lines.actions.edit'), edit_referential_line_path(@referential, @line), class: 'edit' - - if policy(@line).update_footnote? - li - = link_to t('lines.actions.edit_footnotes'), edit_referential_line_footnotes_path(@referential, @line), class: 'edit' - if policy(@line).destroy? li = link_to t('lines.actions.destroy'), referential_line_path(@referential, @line), method: :delete, :data => {:confirm => t('lines.actions.destroy_confirm')}, class: 'remove' |
