aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpl2016-11-17 15:36:24 +0100
committerjpl2016-11-17 15:36:24 +0100
commite38d353ceb9e95aca546c962e99fb82bea7be274 (patch)
tree53b595f7047942edec49a532b89faa1f0489c654
parent41998d7e44052eb98d857f9c533250bcc86a3805 (diff)
downloadchouette-core-e38d353ceb9e95aca546c962e99fb82bea7be274.tar.bz2
Refs #1980: Add deactivated status on lines#show
-rw-r--r--app/views/referential_lines/show.html.slim5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim
index 309331efc..801aebb28 100644
--- a/app/views/referential_lines/show.html.slim
+++ b/app/views/referential_lines/show.html.slim
@@ -1,7 +1,10 @@
- text_color = @line.text_color.blank? ? "black" : "##{@line.text_color}"
- bg_color = @line.color.blank? ? "white" : "##{@line.color}"
-= title_tag t('lines.show.title', line: @line.name)
+h2
+ = t('lines.show.title', line: @line.name)
+ - if @line.deactivated?
+ small = " (désactivé)"
.line_show
= @map.to_html