aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinhui2018-01-04 12:25:42 +0100
committerXinhui2018-01-04 12:25:42 +0100
commit0285fa5a76a88e613d24c4a93aaf0005b1224d7b (patch)
treeb9abf4e99f6c8733e370b9ea8e2d978ab47f6544
parent5bf89ed790a50a5a507d5fde153d2e5b00956ae3 (diff)
downloadchouette-core-0285fa5a76a88e613d24c4a93aaf0005b1224d7b.tar.bz2
Display checksum for time_table
Refs #5460
-rw-r--r--app/views/time_tables/show.html.slim3
-rw-r--r--config/locales/time_tables.en.yml1
-rw-r--r--config/locales/time_tables.fr.yml1
3 files changed, 4 insertions, 1 deletions
diff --git a/app/views/time_tables/show.html.slim b/app/views/time_tables/show.html.slim
index 036581268..df9789055 100644
--- a/app/views/time_tables/show.html.slim
+++ b/app/views/time_tables/show.html.slim
@@ -28,7 +28,8 @@
'Couleur associée' => (@time_table.color.nil? ? '-' : content_tag(:span, '', class: 'fa fa-circle', style: "color:#{@time_table.try(:color)}")),
'Etiquettes' => @time_table.tag_list,
'Modèle de calendrier' => (@time_table.calendar ? link_to(@time_table.calendar.name, @time_table.calendar) : '-'),
- "Journées d'application pour les périodes ci-dessous" => %w(monday tuesday wednesday thursday friday saturday sunday).collect{ |d| content_tag(:span, t("calendars.days.#{d}"), class: "label label-default #{@time_table.send(d) ? '' : 'disabled'}") }.join.html_safe }
+ "Journées d'application pour les périodes ci-dessous" => %w(monday tuesday wednesday thursday friday saturday sunday).collect{ |d| content_tag(:span, t("calendars.days.#{d}"), class: "label label-default #{@time_table.send(d) ? '' : 'disabled'}") }.join.html_safe,
+ Chouette::TimeTable.human_attribute_name(:checksum) => @time_table.checksum}
.row
.col-lg-12.mb-sm
diff --git a/config/locales/time_tables.en.yml b/config/locales/time_tables.en.yml
index ff36a6d7d..ce890942d 100644
--- a/config/locales/time_tables.en.yml
+++ b/config/locales/time_tables.en.yml
@@ -102,6 +102,7 @@ en:
other: "timetables"
attributes:
time_table:
+ checksum: Checksum
comment: "Name"
color: "Associated color"
bounding_dates: 'Global validity period'
diff --git a/config/locales/time_tables.fr.yml b/config/locales/time_tables.fr.yml
index 631ecca95..8abc0e0af 100644
--- a/config/locales/time_tables.fr.yml
+++ b/config/locales/time_tables.fr.yml
@@ -102,6 +102,7 @@ fr:
other: "calendriers"
attributes:
time_table:
+ checksum: Signature métier
comment: "Nom du calendrier"
color: "Couleur associée"
bounding_dates: 'Période contenue dans le calendrier'