Skip to content

Commit

Permalink
Remove kiwi_image_breadcrumb Bento helper, and
Browse files Browse the repository at this point in the history
... move icon_for_daemon helper to the monitor helper file,
as it is only used in:
app/views/webui2/webui/monitor/_lights.html.haml

Now that we are only using the new web interface, we want to get rid
of all the helpers only used with Bento.
  • Loading branch information
eduardoj authored and dmarcoux committed Sep 5, 2019
1 parent 9bc6a36 commit 8bf1520
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/api/app/helpers/webui/kiwi/image_helper.rb

This file was deleted.

11 changes: 11 additions & 0 deletions src/api/app/helpers/webui/monitor_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,15 @@ def self.print_statistics_array(array)
array ||= []
'[' + array.map { |time, value| "[#{time * 1000}, #{value}]" }.join(',') + ']'
end

def icon_for_daemon(state)
case state
when 'dead'
'fa-exclamation-circle text-danger'
when 'booting'
'fa-exclamation-triangle text-warning'
else
'fa-check-circle text-success'
end
end
end

0 comments on commit 8bf1520

Please sign in to comment.