diff options
| author | Luc Donnet | 2017-09-04 22:59:51 +0200 | 
|---|---|---|
| committer | Luc Donnet | 2017-09-04 22:59:51 +0200 | 
| commit | 0bfb94f1311517838c4d1989e273ce56c605a25a (patch) | |
| tree | 2942b4e536aeaaa846065fec239acfa79615686a /app/decorators | |
| parent | cbbecf7c40e8102a2b0c24aabb3aabf7e89391cf (diff) | |
| download | chouette-core-0bfb94f1311517838c4d1989e273ce56c605a25a.tar.bz2 | |
Fix import status table views and first version for import_messages Refs #4527
Diffstat (limited to 'app/decorators')
| -rw-r--r-- | app/decorators/import_decorator.rb | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/app/decorators/import_decorator.rb b/app/decorators/import_decorator.rb index eb6a34a13..d63d723cd 100644 --- a/app/decorators/import_decorator.rb +++ b/app/decorators/import_decorator.rb @@ -3,6 +3,14 @@ class ImportDecorator < Draper::Decorator    delegate_all +  def import_status_css_class +    cls ='' +    cls = 'overheaded-success' if object.status == 'successful' +    cls = 'overheaded-warning' if object.status == 'warning' +    cls = 'overheaded-danger' if %w[failed aborted canceled].include? object.status +    cls +  end +    def action_links      links = []  | 
