diff options
| author | jpl | 2017-06-06 15:59:39 +0200 |
|---|---|---|
| committer | jpl | 2017-06-06 15:59:39 +0200 |
| commit | 280cc337c7d2eb3d5e7457d0399e4f0ee5cdb2aa (patch) | |
| tree | ff76211b493de1c1c8a350447485e69f2d535e9d /app/views/referential_lines | |
| parent | 6e6a2158f88e0a4e8973cb8e098e92b444aecf77 (diff) | |
| download | chouette-core-280cc337c7d2eb3d5e7457d0399e4f0ee5cdb2aa.tar.bz2 | |
Refs #3488: updating itl#show
Diffstat (limited to 'app/views/referential_lines')
| -rw-r--r-- | app/views/referential_lines/show.html.slim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim index 43a70dfb5..db99381d3 100644 --- a/app/views/referential_lines/show.html.slim +++ b/app/views/referential_lines/show.html.slim @@ -1,7 +1,7 @@ / PageHeader = pageheader 'map-marker', @line.name, - 'Lorem ipsum dolor sit amet', + '', t('last_update', time: l(@line.updated_at, format: :short)) do / Below is secundary actions & optional contents @@ -11,13 +11,13 @@ = link_to t('routing_constraint_zones.index.title'), referential_line_routing_constraint_zones_path(@referential, @line), class: 'btn btn-primary' - if policy(Chouette::Line).create? && @referential.organisation == current_organisation - = link_to t('lines.actions.new'), new_referential_line_path(@referential), class: 'btn btn-primary' + = link_to t('actions.new'), new_referential_line_path(@referential), class: 'btn btn-primary' - if policy(@line).update? - = link_to t('lines.actions.edit'), edit_referential_line_path(@referential, @line), class: 'btn btn-primary' + = link_to t('actions.edit'), edit_referential_line_path(@referential, @line), class: 'btn btn-primary' - if policy(@line).destroy? = link_to referential_line_path(@referential, @line), method: :delete, data: {confirm: t('lines.actions.destroy_confirm')}, class: 'btn btn-primary' do span.fa.fa-trash - span = t('lines.actions.destroy') + span = t('actions.destroy') - if !@line.hub_restricted? || (@line.hub_restricted? && @line.routes.size < 2) - if policy(Chouette::Route).create? && @referential.organisation == current_organisation |
