diff options
| author | Zog | 2018-04-30 14:22:53 +0200 | 
|---|---|---|
| committer | Zog | 2018-05-07 15:03:07 +0200 | 
| commit | af49fd1021ee6b22fd8ca6c6592c5f7d64c23aa0 (patch) | |
| tree | 60d770778dbccb6b7deb31247c9d2462a53f19da /app/helpers | |
| parent | f0bbc8d002f845efe0bfecf37477e96c84a6b41c (diff) | |
| download | chouette-core-af49fd1021ee6b22fd8ca6c6592c5f7d64c23aa0.tar.bz2 | |
Better views
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/imports_helper.rb | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/app/helpers/imports_helper.rb b/app/helpers/imports_helper.rb index 341f87037..f06d77eca 100644 --- a/app/helpers/imports_helper.rb +++ b/app/helpers/imports_helper.rb @@ -2,8 +2,9 @@  module ImportsHelper    # Import statuses helper -  def import_status(status, verbose: false) -    return "" unless status +  def import_status(status, verbose: false, default_status: nil) +    status ||= default_status +    return unless status      status = status.to_s.downcase      out = if %w[new running pending].include? status        content_tag :span, '', class: "fa fa-clock-o" | 
