diff options
| author | Robert | 2017-12-14 17:58:57 +0100 | 
|---|---|---|
| committer | Robert | 2017-12-15 08:31:07 +0100 | 
| commit | 4613f02d52e2d8c9159633b6a45b8d0361759332 (patch) | |
| tree | 46bba58a87f71169a8b5e2578cfd54c9e4bd2477 /app/views/imports | |
| parent | 0354c84367cede7d738c79e9c0f116b2c0a178b2 (diff) | |
| download | chouette-core-4613f02d52e2d8c9159633b6a45b8d0361759332.tar.bz2 | |
Refs: #5006@0.7h; CR changes from #5006 & staring error_messages in imports/show
 - Renaming as requested STIF::NetexFile::Frame.get_line_object_id -> get_sgort_id
 - working on error_messages for imports#show
Diffstat (limited to 'app/views/imports')
| -rw-r--r-- | app/views/imports/_import_messages.html.slim | 9 | ||||
| -rw-r--r-- | app/views/imports/show.html.slim | 3 | 
2 files changed, 12 insertions, 0 deletions
diff --git a/app/views/imports/_import_messages.html.slim b/app/views/imports/_import_messages.html.slim new file mode 100644 index 000000000..49440a6d3 --- /dev/null +++ b/app/views/imports/_import_messages.html.slim @@ -0,0 +1,9 @@ + +- if import_messages.any? +  dl +  - import_messages.each do | import_message | +    .error_message +      dt +        = import_message.criticity +      dd +        = t ['imports', import_message.message_key].join('.'), import_message.message_attributes diff --git a/app/views/imports/show.html.slim b/app/views/imports/show.html.slim index 5e22e03e0..90c638d78 100644 --- a/app/views/imports/show.html.slim +++ b/app/views/imports/show.html.slim @@ -11,6 +11,9 @@  - page_header_content_for @import +.error_messages +  = render 'import_messages', import_messages: @import.messages +  .page_content    .container-fluid      .row  | 
