diff options
| author | jpl | 2016-11-19 15:39:38 +0100 |
|---|---|---|
| committer | jpl | 2016-11-19 15:39:38 +0100 |
| commit | 48a01c6a074c71e70b1c136bc89972aeb09556c7 (patch) | |
| tree | 89509c22241d642630dc7fac098bf64ae9da4903 | |
| parent | 8db23c94a56d6753b146d85fb7dde32c36ef70c2 (diff) | |
| download | chouette-core-48a01c6a074c71e70b1c136bc89972aeb09556c7.tar.bz2 | |
upd/fix transport_mode/transport_submodes views
| -rw-r--r-- | app/views/referential_lines/show.html.slim | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim index a479cd580..9b19982ff 100644 --- a/app/views/referential_lines/show.html.slim +++ b/app/views/referential_lines/show.html.slim @@ -47,19 +47,25 @@ h2 p label = "#{@line.human_attribute_name('transport_mode')} : " - = t("transport_modes.label.#{@line.transport_mode}") + - if @line.transport_mode + = " " + t("transport_modes.label.#{@line.transport_mode}") + - else + = " -" p label = "#{@line.human_attribute_name('transport_submode')} : " - = t("enumerize.linereferential.transport_submode.#{@line.transport_submode}") + - if @line.transport_submode + = " " + t("enumerize.linereferential.transport_submode.#{@line.transport_submode}") + - else + = " -" p label = "#{@line.human_attribute_name('stable_id')} : " - = @line.stable_id + = " #{@line.stable_id}" p label = "#{@line.human_attribute_name('url')} : " - = @line.url + = " #{@line.url}" / p / label = "#{@line.human_attribute_name('mobility_restricted_suitability')} : " |
