diff options
| author | Teddy Wing | 2017-06-15 18:07:13 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-15 18:07:13 +0200 |
| commit | 8be607f4a481099a5c29b4eb8de3026bf1e83900 (patch) | |
| tree | b20342869540af5a02c525e16498af47435fa0e1 | |
| parent | 1d489cef3b9aeb474071b89be6d256e554182863 (diff) | |
| download | chouette-core-8be607f4a481099a5c29b4eb8de3026bf1e83900.tar.bz2 | |
referentials/show.html.slim: Remove commented header links
Now that we've integrated the `#action_links` from
`ReferentialDecorator`, all these `link_to`s are taken care of by our
loop just below the removed commented code.
Refs #3479
| -rw-r--r-- | app/views/referentials/show.html.slim | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/app/views/referentials/show.html.slim b/app/views/referentials/show.html.slim index 2e67f4968..dfa264c0b 100644 --- a/app/views/referentials/show.html.slim +++ b/app/views/referentials/show.html.slim @@ -8,24 +8,6 @@ / Below is secondary actions & optional contents (filters, ...) .row.mb-sm .col-lg-12.text-right - /= link_to t('time_tables.index.title'), referential_time_tables_path(@referential), class: 'btn btn-primary' - / - /- if policy(@referential).clone? - / = link_to t('actions.clone'), new_referential_path(from: @referential.id), class: 'btn btn-primary' - / - /- if policy(@referential).edit? - / button.btn.btn-primary type='button' data-toggle='modal' data-target='#purgeModal' Purger - / - / - if @referential.archived? - / = link_to t('actions.unarchive'), unarchive_referential_path(@referential.id), method: :put, class: 'btn btn-primary' - / - else - / = link_to t('actions.archive'), archive_referential_path(@referential.id), method: :put, class: 'btn btn-primary' - / - /- if policy(@referential).destroy? - / = link_to referential_path(@referential), method: :delete, data: {confirm: t('referentials.actions.destroy_confirm')}, class: 'btn btn-primary' do - / span.fa.fa-trash - / span = t('actions.destroy') - /= leslinks.map { |l| link_to l.href, l.label } - @referential.action_links.each do |link| - if link.is_a?(HTMLElement) = link.to_html(class: 'btn btn-primary') |
