aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/shared
diff options
context:
space:
mode:
authorZog2018-04-09 11:20:56 +0200
committerZog2018-04-09 11:22:40 +0200
commit27442a9ffe40d0f548b1dc99ab917a8d8b0a02a2 (patch)
tree2faaccac03f27602ca7618f5efbb8ed623def7b2 /app/views/shared
parentf9da9a4bda21ef1a4e73b0d5e0e960ab43b27527 (diff)
downloadchouette-core-27442a9ffe40d0f548b1dc99ab917a8d8b0a02a2.tar.bz2
Refs #6360; Add checks on calendars during WorkbenchImport
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/iev_interfaces/_messages.html.slim7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/shared/iev_interfaces/_messages.html.slim b/app/views/shared/iev_interfaces/_messages.html.slim
index 14157a88d..4e2c4d849 100644
--- a/app/views/shared/iev_interfaces/_messages.html.slim
+++ b/app/views/shared/iev_interfaces/_messages.html.slim
@@ -1,14 +1,15 @@
- if messages.any?
ul.list-unstyled.import_message-list
- messages.order(:created_at).each do | message |
+ - width = message.resource_attributes.present? ? 6 : 12
li
.row class=bootstrap_class_for_message_criticity(message.criticity)
- if message.message_attributes && message.message_attributes["line"]
.col-md-1= "L. #{message.message_attributes["line"]}"
- .col-md-5= export_message_content message
+ div class="col-md-#{width-1}"= export_message_content message
- else
- .col-md-6= export_message_content message
+ div class="col-md-#{width}"= export_message_content message
.col-md-6
- - if message.resource_attributes
+ - if message.resource_attributes.present?
pre
= JSON.pretty_generate message.resource_attributes || {}