<commit_before>= content_for :title do
	| Management Console

#manage

	ul.nav.nav-tabs
		li.active
			a href="#accounts" data-toggle="tab" Active Accounts
		li
			a href="#requests" data-toggle="tab" Pending Account Requests

	.tab-content
	
		.tab-pane.active#accounts
			- if @approved.length > 0
				table.table.table-striped.table-condensed
					thead
						tr
							th Name
							th Email
							th Admin?
							th Created
							th Last Login
							th Actions
					tbody id="approved_users"
						=render :partial => 'approved_user', :collection => @approved

		.tab-pane#requests
			- if @pending.length > 0
				table.table.table-striped.table-condensed
					thead
						tr
							th Email
							th Created
							th Actions
					tbody
						- @pending.each do |user|
							tr id="user_#{user.id}"
								td
									= user.email
									br
									img src="#{gravatar_image_url(current_user.email, filetype: :png, rating: 'pg', size: 20, secure: true)}"
								td
									= time_ago_in_words user.created_at
									|  ago.
								td
									.btn-group
										= button_to 'Approve', approve_user_path(user), :remote => true, :class => 'btn btn-default', form_class: 'approve button_to'
										= button_to 'Deny', deny_user_path(user), :remote => true, :class => 'btn btn-default deny', form_class: 'deny button_to', confirm: 'Are you sure you want to deny access to this user?'
			- else
				h1 Nada!<commit_msg>Admin UI fix.<commit_after>= content_for :title do
	| Management Console

#manage

	ul.nav.nav-tabs
		li.active
			a href="#accounts" data-toggle="tab" Active Accounts
		li
			a href="#requests" data-toggle="tab" Pending Account Requests

	.tab-content
	
		.tab-pane.active#accounts
			- if @approved.length > 0
				table.table.table-striped.table-condensed
					thead
						tr
							th Name
							th Email
							th Admin?
							th Created
							th Last Login
							th Actions
					tbody id="approved_users"
						=render :partial => 'approved_user', :collection => @approved

		.tab-pane#requests
			- if @pending.length > 0
				table.table.table-striped.table-condensed
					thead
						tr
							th Email
							th Created
							th Actions
					tbody
						- @pending.each do |user|
							tr id="user_#{user.id}"
								td
									= user.email
									br
									img src="#{gravatar_image_url(user.email, filetype: :png, rating: 'pg', size: 20, secure: true)}"
								td
									= time_ago_in_words user.created_at
									|  ago.
								td
									.btn-group
										= button_to 'Approve', approve_user_path(user), :remote => true, :class => 'btn btn-default', form_class: 'approve button_to'
										= button_to 'Deny', deny_user_path(user), :remote => true, :class => 'btn btn-default deny', form_class: 'deny button_to', confirm: 'Are you sure you want to deny access to this user?'
			- else
				h1 Nada!
{'fraction_non_alphanumeric': 0.11029923451635351, 'fraction_numerical': 0.003479471120389701, 'mean_word_length': 2.2670454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '499521', 'n_tokens_mistral': 1353, 'n_tokens_neox': 906, 'n_words': 251}