- content_for :page_title do
  = t(:listing_reports)

.columns.twelve
  %table.index
    %thead
      %tr
        %th= t(:name)
        %th= t(:description)
    %tbody
      - @reports.each do |report_type, report_subtypes|
        %tr
          %td
            = I18n.t(:name, scope: [:admin, :reports, report_type])
          %td
            - if report_subtypes.empty?
              - name = I18n.t(:name, scope: [:admin, :reports, report_type])
              - url = main_app.admin_report_url(report_type: report_type)
              - report_subtypes = [[name, url]]
            = render partial: "report_subtype", locals: { report_subtypes: report_subtypes, report_type: report_type }

- content_for :page_title do
  = t(:listing_reports)

.columns.twelve
  %table.index
    %thead
      %tr
        %th= t(:name)
        %th= t(:description)
    %tbody
      - @reports.each do |report_type, report_subtypes|
        %tr
          %td
            = I18n.t(:name, scope: [:admin, :reports, report_type])
          %td
            - if report_subtypes.empty?
              - name = I18n.t(:name, scope: [:admin, :reports, report_type])
              - report_subtypes = [[name, nil]]
            = render partial: "report_subtype", locals: { report_subtypes: report_subtypes, report_type: report_type }

Fix URL generation for report without subtype
Fix URL generation for report without subtype

The URL is generated in the partial and it just needs to know that
there's no subtype.
