%section.content-section.realms
  %header
    %h2 Realms
    %span.label.badge.dark.count= @realms.length

  .content
    - form_tag multi_destroy_realms_path do
      = submit_tag "Delete", :id => 'delete_button', :class => 'button'

      = render :partial => 'layouts/select_all_none'

      %table#realms_table.flat.checkbox_table
        %thead
          %tr
            %th.ignore
            %th= link_to "Realm Name", hardware_profiles_path(:sort_by => "name")
        - unless @realms.blank?
          - @realms.each do |realm|
            %tr{:class => cycle('nostripe','stripe')}
              %td
                - selected = params[:select] == 'all'
                = check_box_tag "realm_selected[]", realm.id, selected, :id => "realm_checkbox_#{realm.id}"
              %td= link_to realm.name, realm_path(realm)

%section.content-section.realms
  %header
    %h2 Realms
    %span.label.badge.dark.count= @realms.length

  .content
    - form_tag multi_destroy_realms_path do
      = submit_tag "Delete", :id => 'delete_button', :class => 'button'

      = render :partial => 'layouts/select_all_none'

      %table#realms_table.flat.checkbox_table
        %thead
          %tr
            %th.ignore
            %th= link_to "Realm Name", params.merge(:sort_by => "name")
        - unless @realms.blank?
          - @realms.each do |realm|
            %tr{:class => cycle('nostripe','stripe')}
              %td
                - selected = params[:select] == 'all'
                = check_box_tag "realm_selected[]", realm.id, selected, :id => "realm_checkbox_#{realm.id}"
              %td= link_to realm.name, realm_path(realm)

Fix the URL in the Realms table header
Fix the URL in the Realms table header

https://bugzilla.redhat.com/show_bug.cgi?id=717542
