diff options
| author | Alban Peignier | 2016-11-09 19:28:43 +0100 |
|---|---|---|
| committer | Alban Peignier | 2016-11-09 19:28:43 +0100 |
| commit | d3e2cfbd3dd0a59378c083e19e39b4f14d1ef977 (patch) | |
| tree | c532127f590a0c067d56ec1a9b865e485cd2d7c9 | |
| parent | ca458e5ce89e8b378772a6d196c245a647e76543 (diff) | |
| download | chouette-core-d3e2cfbd3dd0a59378c083e19e39b4f14d1ef977.tar.bz2 | |
Fixes ReferentialLines#show. Use referential_group_of_lines partial and restore link to create Routes. Refs #1786
| -rw-r--r-- | app/views/referential_lines/show.html.slim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim index 495f0bda7..ddaeea724 100644 --- a/app/views/referential_lines/show.html.slim +++ b/app/views/referential_lines/show.html.slim @@ -117,7 +117,7 @@ h3.routes = t('.itineraries') - if @line.group_of_lines.any? h3.line_group_of_lines = t('.group_of_lines') .group_of_lines.paginated_content - = paginated_content @group_of_lines, "group_of_lines/group_of_line", :delete => false + = paginated_content @group_of_lines, "referential_group_of_lines/group_of_line", :delete => false - content_for :sidebar do ul.actions @@ -134,6 +134,6 @@ h3.routes = t('.itineraries') - if !@line.hub_restricted? || (@line.hub_restricted? && @line.routes.size < 2) / FIXME #825 li - / = link_to t('routes.actions.new'), new_referential_line_route_path(@referential, @line), class: 'add' + = link_to t('routes.actions.new'), new_referential_line_route_path(@referential, @line), class: 'add' = creation_tag(@line) |
