aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/shared/custom_fields
diff options
context:
space:
mode:
authorZog2018-03-13 09:10:34 +0100
committerJohan Van Ryseghem2018-04-04 11:08:20 +0200
commitf946eb8d72a5601020c420b33225c31b12277be4 (patch)
treeb4d2287a6f72b6d2d34c15a0076d2fe79d3c6312 /app/views/shared/custom_fields
parentecf0dd6406576f8a63ee056fab73b05171c3e767 (diff)
downloadchouette-core-f946eb8d72a5601020c420b33225c31b12277be4.tar.bz2
Refs #6089; Adds `attachment` Custom Fields
As well as an helper to render them in a partial
Diffstat (limited to 'app/views/shared/custom_fields')
-rw-r--r--app/views/shared/custom_fields/_attachment.html.slim1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/shared/custom_fields/_attachment.html.slim b/app/views/shared/custom_fields/_attachment.html.slim
new file mode 100644
index 000000000..2f25b396a
--- /dev/null
+++ b/app/views/shared/custom_fields/_attachment.html.slim
@@ -0,0 +1 @@
+= link_to I18n.t("custom_fields.#{field.owner.class.name.demodulize.underscore}.#{field.code}.link"), field.value.url