header “Realms”

subheader “#{Thread::current || ENV || 'default'}”

%div{ :'data-role' => :content, :'data-theme' => 'c'}

%l{ :'data-role' => :listview , :'data-inset' => :true, :'data-divider-theme' => 'a'}
  %i{ :'data-role' => 'list-divider'}=driver_symbol
  - elements.each do |realm|
    %i
      %{ :href => realm_url(realm.id), :'data-ajax' => 'false'}
        %mg{ :class => 'ui-link-thumb', :src => '/images/realm.png'}
        %3= realm.name
        %=[realm.id, realm.limit].join(', ')
        %san{ :class => 'ui-li-count'}=realm.state