- content_for :title do
  Tag use in Gerrit over past #{pluralize @days, 'day'}
  %small
    %span{day_links}

%section{ data: { view: 'Tags', authors: h(@authors.to_json) } }
  %h2 Global tag use
  #global-used= haml :'shared/progress'

  %h2 Per-author tag use
  - @authors.each do |author|
    %h3&= author
    %ul.nav.nav-tabs{ data: { tabs: 'tabs' } }
      %li.active
        %a{ href: "##{name_to_id author}-used", data: { toggle: 'tab' } } Used
      %li
        %a{ href: "##{name_to_id author}-received", data: { toggle: 'tab' } } Received

    .tab-content
      .tab-pane{ id: "#{name_to_id author}-used" }
      .tab-pane{ id: "#{name_to_id author}-received" }

- content_for :title do
  Tag use in Gerrit over past #{pluralize @days, 'day'}
  %small
    %span{day_links}

%section{ data: { view: 'Tags', authors: h(@authors.to_json) } }
  %h2 Global tag use
  #global-used= haml :'shared/progress'

  %h2 Per-author tag use
  - @authors.each do |author|
    %h3&= author
    %ul.nav.nav-tabs{ data: { tabs: 'tabs' } }
      %li.active
        %a{ href: "##{name_to_id author}-used", data: { toggle: 'tab' } } Used
      %li
        %a{ href: "##{name_to_id author}-received", data: { toggle: 'tab' } } Received

    .tab-content
      .tab-pane.active{ id: "#{name_to_id author}-used" }
      .tab-pane{ id: "#{name_to_id author}-received" }

Make "from" tab pane selected at display time
Make "from" tab pane selected at display time

This makes the tab pane (content) active, matching the active nav tab
itself. This will likely change in a future commit, where I probably
suppress the appearance of the tabs at all of they are not going to have
any content.

Change-Id: I49cded8e1fbec51aa67af55092ba1c18d966dffa
Reviewed-on: https://gerrit.causes.com/27206
Reviewed-by: Greg Hurrell <79e2475f81a6317276bf7cbb3958b20d289b78df@causes.com>
Tested-by: Greg Hurrell <79e2475f81a6317276bf7cbb3958b20d289b78df@causes.com>
