diff options
| author | Zog | 2018-03-13 10:41:48 +0100 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-04-04 11:10:39 +0200 |
| commit | d034376737c27e48a7a3413b82461a65999ee105 (patch) | |
| tree | c657811ee569ce1f2487c07f921fdae3382eb726 /app/views/shared/custom_fields | |
| parent | a77307ca49c57dc18823f6aece2424ccb3c5a7c2 (diff) | |
| download | chouette-core-d034376737c27e48a7a3413b82461a65999ee105.tar.bz2 | |
Refs #6090; CustomFields inputs made easy
:warning: We'll have to refine this code once StopArea are linked to
workgroups
Diffstat (limited to 'app/views/shared/custom_fields')
| -rw-r--r-- | app/views/shared/custom_fields/_attachment.html.slim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/shared/custom_fields/_attachment.html.slim b/app/views/shared/custom_fields/_attachment.html.slim index 2f25b396a..32d0fda4d 100644 --- a/app/views/shared/custom_fields/_attachment.html.slim +++ b/app/views/shared/custom_fields/_attachment.html.slim @@ -1 +1,4 @@ -= link_to I18n.t("custom_fields.#{field.owner.class.name.demodulize.underscore}.#{field.code}.link"), field.value.url +- if field.value.present? + = link_to I18n.t("custom_fields.#{field.owner.class.name.demodulize.underscore}.#{field.code}.link"), field.value.url +- else + = "-" |
