diff options
| author | Zog | 2018-03-27 15:04:45 +0200 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-03-27 15:06:12 +0200 |
| commit | 6e3d0d2544f385fc8ab623bcd8d0e283e803aa7f (patch) | |
| tree | c63f7a20c887142c2d97dbdef4306569907b39fa | |
| parent | 3113be35a74d1d3eddda80d976ef3e8c22e3f51b (diff) | |
| download | chouette-core-6e3d0d2544f385fc8ab623bcd8d0e283e803aa7f.tar.bz2 | |
Refs #6181; Show link to purchase windows only when feature is activated
| -rw-r--r-- | app/views/vehicle_journeys/index.html.slim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/vehicle_journeys/index.html.slim b/app/views/vehicle_journeys/index.html.slim index b2716a809..cd55d3ce6 100644 --- a/app/views/vehicle_journeys/index.html.slim +++ b/app/views/vehicle_journeys/index.html.slim @@ -4,7 +4,8 @@ .row.mb-sm .col-lg-12.text-right = link_to I18n.t("time_tables.index.title"), [@referential, :time_tables], class: 'btn btn-primary sticky-action', target: :blank - = link_to I18n.t("purchase_windows.index.title"), [@referential, :purchase_windows], class: 'btn btn-primary sticky-action', target: :blank + - if has_feature? :purchase_windows + = link_to I18n.t("purchase_windows.index.title"), [@referential, :purchase_windows], class: 'btn btn-primary sticky-action', target: :blank - if @route.opposite_route.present? = link_to(t('routes.actions.opposite_route_timetable'), [@referential, @route.line, @route.opposite_route, :vehicle_journeys], class: 'btn btn-primary sticky-action') |
