diff options
| author | Robert | 2017-07-10 22:19:01 +0200 |
|---|---|---|
| committer | Robert | 2017-07-10 22:32:00 +0200 |
| commit | 25d99e6fc46db9a37fcbcae83b008ff96bc00520 (patch) | |
| tree | ae30ed535a2eda288fca628ec4b5c83470bc14a3 /app/views/calendars | |
| parent | 1ab9c3364ffcd777dae39bd9154dca031cc00db0 (diff) | |
| download | chouette-core-25d99e6fc46db9a37fcbcae83b008ff96bc00520.tar.bz2 | |
Refs: #4021@1.5h; Added spec for incorrectly shown `Créer` button on calenders#index view and made them pass
Diffstat (limited to 'app/views/calendars')
| -rw-r--r-- | app/views/calendars/index.html.slim | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/calendars/index.html.slim b/app/views/calendars/index.html.slim index 843ec1256..e3ac16505 100644 --- a/app/views/calendars/index.html.slim +++ b/app/views/calendars/index.html.slim @@ -1,8 +1,10 @@ / PageHeader -= pageheader 'map-marker', - t('.title'), - '', - link_to(t('actions.add'), new_calendar_path, class: 'btn btn-default') do + +- header_params = ['map-marker', + t('.title'), + ''] +- header_params << link_to(t('actions.add'), new_calendar_path, class: 'btn btn-default') if policy(Calendar).create? += pageheader(*header_params) do / PageContent .page_content |
