summaryrefslogtreecommitdiff
path: root/app/views/admin/users/index.html.haml
blob: 8da0c7f4300d2d9dfd4fdb83ed6f68d9635cec7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- page_title _("Users")

%ul.nav-links.nav-tabs.nav.js-users-tabs{ role: 'tablist' }
  %li.nav-item.js-users-tab-item{ role: 'presentation' }
    %a.nav-link{ href: '#users', class: active_when(params[:tab] != 'cohorts'), data: { toggle: 'tab' }, role: 'tab' }
      = s_('AdminUsers|Users')
  %li.nav-item.js-users-tab-item{ role: 'presentation' }
    %a.nav-link{ href: '#cohorts', class: active_when(params[:tab] == 'cohorts'), data: { toggle: 'tab', track: { event: 'i_analytics_cohorts', action: 'click_tab' } }, role: 'tab' }
      = s_('AdminUsers|Cohorts')

.tab-content
  .tab-pane{ id: 'users', class: ('active' if params[:tab] != 'cohorts') }
    = render 'users'
  .tab-pane{ id: 'cohorts', class: ('active' if params[:tab] == 'cohorts') }
    = render 'cohorts'