diff options
| author | Teddy Wing | 2017-08-07 15:04:42 +0200 |
|---|---|---|
| committer | Robert | 2017-08-11 10:03:46 +0200 |
| commit | 2458830edbdbe6b098233d59356c7c0b2ef59b9f (patch) | |
| tree | 26048cee727746720057c6ec3171ee4b620580ca /app | |
| parent | 33d5b92305e063e52500ff17a75a5bfb7fe98043 (diff) | |
| download | chouette-core-2458830edbdbe6b098233d59356c7c0b2ef59b9f.tar.bz2 | |
Routes#duplicate: Add page header
Set header text in the locale files and display it on the page given the
route ID in the URL. Remove the third argument from `pageheader` because
after looking at the helper method's signature, I see that it's not
necessary.
Refs #4189
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/routes_controller.rb | 1 | ||||
| -rw-r--r-- | app/views/routes/duplicate.html.slim | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/routes_controller.rb b/app/controllers/routes_controller.rb index c4182af56..7e10366b3 100644 --- a/app/controllers/routes_controller.rb +++ b/app/controllers/routes_controller.rb @@ -70,6 +70,7 @@ class RoutesController < ChouetteController end def duplicate + @route = Chouette::Route.find(params[:id]) end protected diff --git a/app/views/routes/duplicate.html.slim b/app/views/routes/duplicate.html.slim index a5947049d..2c894cc47 100644 --- a/app/views/routes/duplicate.html.slim +++ b/app/views/routes/duplicate.html.slim @@ -1,6 +1,5 @@ = pageheader 'map-marker', - t('routes.new.title'), - '' + t('routes.duplicate.title', route: @route.name) .page_content .container-fluid |
