.row
  .col-md-12
    .tabbable
      %ul.nav.nav-tabs
        %li{class: "#{'active' unless params[:tab] == 'submissions-content'}"}
          = link_to 'User Info', '#user-info-content', 'data-toggle'=>'tab'
        - unless @user.events.blank?
          %li{class: "#{'active' if params[:tab] == 'submissions-content'}"}
            = link_to 'Submissions', '#submissions-content', 'data-toggle'=>'tab'
      .tab-content
        #user-info-content.tab-pane{class: "#{'active' unless params[:tab] == 'submissions-content'}"}
          - if can? :edit, @user
            .pull-right
              = link_to "Edit", edit_admin_user_path(@user), class: 'btn btn-primary'
          %table.table
            - @show_attributes.each do |attr|
              %tr
                %td{class: 'table20'}
                  %b
                    = attr.capitalize.gsub('_', ' ')
                - if attr == 'roles'
                  %td
                    = show_roles(@user.get_roles)
                - else
                  %td= @user.send(attr)
        #submissions-content.tab-pane{class: "#{'active' if params[:tab] == 'submissions-content'}"}
          = render 'submissions'
