aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinhui2018-01-04 12:25:32 +0100
committerXinhui2018-01-04 12:25:32 +0100
commit5bf89ed790a50a5a507d5fde153d2e5b00956ae3 (patch)
treefb8a62bd4232bfba57ef6965efc1d24d09fe839e
parenta5e99f3f49c055fba455a4e94b5c5ed8fb584fd1 (diff)
downloadchouette-core-5bf89ed790a50a5a507d5fde153d2e5b00956ae3.tar.bz2
Display checksum for footnotes
Refs #5460
-rw-r--r--app/views/line_footnotes/show.html.slim4
-rw-r--r--config/locales/footnotes.en.yml1
-rw-r--r--config/locales/footnotes.fr.yml1
3 files changed, 6 insertions, 0 deletions
diff --git a/app/views/line_footnotes/show.html.slim b/app/views/line_footnotes/show.html.slim
index e4f2a1d42..29e1f5708 100644
--- a/app/views/line_footnotes/show.html.slim
+++ b/app/views/line_footnotes/show.html.slim
@@ -16,7 +16,11 @@
.panel-heading = footnote.code
.panel-body
p = footnote.label
+
.panel-footer.text-right
+ div
+ p.text-muted.small = Chouette::Footnote.human_attribute_name(:checksum)
+ p.text-muted.small = footnote.checksum
p.text-muted
em.small = "Dernière mise à jour le #{l(footnote.updated_at, format: :short)}"
diff --git a/config/locales/footnotes.en.yml b/config/locales/footnotes.en.yml
index dba8edd0b..5b86f0806 100644
--- a/config/locales/footnotes.en.yml
+++ b/config/locales/footnotes.en.yml
@@ -16,4 +16,5 @@ en:
attributes:
footnote:
code: "number"
+ checksum: checksum
label: "line text"
diff --git a/config/locales/footnotes.fr.yml b/config/locales/footnotes.fr.yml
index f5cd71c21..692098046 100644
--- a/config/locales/footnotes.fr.yml
+++ b/config/locales/footnotes.fr.yml
@@ -16,4 +16,5 @@ fr:
attributes:
footnote:
code: "numéro"
+ checksum: Signature métier
label: "ligne de texte"