Project

General

Profile

Revision ad3852f2

Added by Ohad Levy over 8 years ago

fixes #8718 - refactor container index

- simplify controller to use the correct compute resource type in sql
- used icon helper methods
- fixed html syntax + removed duplicate pagination

View differences:

app/helpers/containers_helper.rb
1 1
module ContainersHelper
2 2
  def managed_icon(container, resource)
3
    if managed?(container, resource)
4
      '<span class="glyphicon glyphicon-check"></span>'.html_safe
5
    else
6
      '<span class="glyphicon glyphicon-unchecked"></span>'.html_safe
7
    end
3
    icon_text(managed?(container, resource) ? 'check' : 'unchecked')
8 4
  end
9 5

  
10 6
  def managed?(container, resource)

Also available in: Unified diff