<commit_before>{% extends "base.html" %}

{% load static from staticfiles %}

{% block headers %}
<link type="text/css" rel="stylesheet" href="{% static 'jquery/tablesorter-master/css/theme.default.css' %}" />
<script type="text/javascript" src="{% static 'jquery/jquery-1.11.0.min.js' %}"></script>
<script type="text/javascript" src="{% static 'jquery/tablesorter-master/js/jquery.tablesorter.min.js' %}"></script>
<link type="text/css" rel="stylesheet" href="{% static 'ui/css/content.css' %}" />
<link type="text/css" rel="stylesheet" href="{% static 'ui/css/custom_manage_users.css' %}" />
<script>
$(document).ready(function() {
	$('table').tablesorter({
		sortList: [[1,0], [2,0]]
	});
});
</script>
{% endblock %}

{% block content %}
	<div class="table_container">
		<div class="header"><h3 class="table_title">Residents</h3></div>
		<div class="main_table">
		{% if not residents %}
			<div class="field_wrapper text-danger">No residents found in database.</div>
		{% else %}
		<table class="table table-striped table-bordered table-condensed table-hover members_table" id="residents_table">
		<thead>
		<tr>
			<th>Username</th>
			<th>Last Name</th>
			<th>First Name</th>
			<th>Active</th>
			<th>Staff</th>
			<th>Superuser</th>
			<th>Email</th>
			<th>Phone</th>
		</tr>
		</thead>
		<tbody>
		{% for member in residents %}
			<tr>
				<td><a class="page_link" title="Modify Profile" href="{% url 'custom_modify_user' targetUsername=member.user.username %}"><span class="glyphicon glyphicon-cog"></span> {{ member.user.username }}</a></td>
				<td>{{ member.user.last_name }}</td>
				<td>{{ member.user.first_name }}</td>
				<td>{% if  member.user.is_active %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="Yes"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="No"/>{% endif %}</td>
				<td>{% if  member.user.is_staff %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="Yes"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="No"/>{% endif %}</td>
				<td>{% if  member.user.is_superuser %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="Yes"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="No"/>{% endif %}</td>
				<td>{% if member.user.email %}<a class="page_link" title="Write E-mail" href="mailto:{{ member.user.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ member.user.email }}</a>{% endif %}</td>
				<td>{% if member.phone_number %}{{ member.phone_number }}{% endif %}</td>
			</tr>
		{% endfor %}
		</tbody>
		</table>
		{% endif %}
		</div> <!-- .main_table -->
	</div> <!-- table_container -->
	<div class="table_container">
		<div class="header"><h3 class="table_title">Boarders</h3></div>
		<div class="main_table">
		{% if not boarders %}
			<div class="field_wrapper text-info">No boarders found in database.</div>
		{% else %}
		<table class="table table-striped table-bordered table-condensed table-hover members_table" id="boarders_table">
		<thead>
		<tr>
			<th>Username</th>
			<th>Last Name</th>
			<th>First Name</th>
			<th>Active</th>
			<th>Staff</th>
			<th>Superuser</th>
			<th>Email</th>
			<th>Phone</th>
		</tr>
		</thead>
		<tbody>
		{% for member in boarders %}
			<tr>
				<td><a class="page_link" title="Modify Profile" href="{% url 'custom_modify_user' targetUsername=member.user.username %}"><span class="glyphicon glyphicon-cog"></span> {{ member.user.username }}</a></td>
				<td>{{ member.user.last_name }}</td>
				<td>{{ member.user.first_name }}</td>
				<td>{% if  member.user.is_active %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
				<td>{% if  member.user.is_staff %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
				<td>{% if  member.user.is_superuser %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
				<td>{% if member.user.email %}<a class="page_link" title="Write E-mail" href="mailto:{{ member.user.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ member.user.email }}</a>{% endif %}</td>
				<td>{% if member.phone_number %}{{ member.phone_number }}{% endif %}</td>
			</tr>
		{% endfor %}
		</tbody>
		</table>
		{% endif %}
		</div> <!-- .main_table -->
	</div> <!-- .table_container -->
	<div class="table_container">
		<div class="header"><h3 class="table_title">Alumni</h3></div>
		<div class="main_table">
		{% if not alumni %}
			<div class="field_wrapper text-info">No alumni found in database.</div>
		{% else %}
		<table class="table table-striped table-bordered table-condensed table-hover members_table" id="alumni_table">
		<thead>
		<tr>
			<th>Username</th>
			<th>Last Name</th>
			<th>First Name</th>
			<th>Active</th>
			<th>Staff</th>
			<th>Superuser</th>
			<th>Email</th>
			<th>Phone</th>
		</tr>
		</thead>
		<tbody>
		{% for member in alumni %}
			<tr>
				<td><a class="page_link" title="Modify Profile" href="{% url 'custom_modify_user' targetUsername=member.user.username %}"><span class="glyphicon glyphicon-cog"></span> {{ member.user.username }}</a></td>
				<td>{{ member.user.last_name }}</td>
				<td>{{ member.user.first_name }}</td>
				<td>{% if  member.user.is_active %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
				<td>{% if  member.user.is_staff %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
				<td>{% if  member.user.is_superuser %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
				<td>{% if member.user.email %}<a class="page_link" title="Write E-mail" href="mailto:{{ member.user.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ member.user.email }}</a>{% endif %}</td>
				<td>{% if member.phone_number %}{{ member.phone_number }}{% endif %}</td>
			</tr>
		{% endfor %}
		</tbody>
		</table>
		{% endif %}
		</div> <!-- .main_table -->
	</div> <!-- table_container -->
{% endblock %}<commit_msg>Updated manage_users to be more like member_directory<commit_after>{% extends "base.html" %}

{% load static from staticfiles %}

{% block headers %}
<link type="text/css" rel="stylesheet" href="{% static 'jquery/tablesorter-master/css/theme.default.css' %}" />
<script type="text/javascript" src="{% static 'jquery/jquery-1.11.0.min.js' %}"></script>
<script type="text/javascript" src="{% static 'jquery/tablesorter-master/js/jquery.tablesorter.min.js' %}"></script>
<link type="text/css" rel="stylesheet" href="{% static 'ui/css/content.css' %}" />
<link type="text/css" rel="stylesheet" href="{% static 'ui/css/custom_manage_users.css' %}" />
<script>
$(document).ready(function() {
	$('table').tablesorter({
		sortList: [[1,0], [2,0]]
	});
});
</script>
{% endblock %}

{% block content %}
{% if residents %}
<div class="table_container">
  <div class="header"><h3 class="table_title">Residents</h3></div>
  <div class="main_table">
    <table class="table table-striped table-bordered table-condensed table-hover members_table" id="residents_table">
      <thead>
	<tr>
	  <th>Username</th>
	  <th>Last Name</th>
	  <th>First Name</th>
	  <th>Active</th>
	  <th>Staff</th>
	  <th>Superuser</th>
	  <th>Email</th>
	  <th>Phone</th>
	</tr>
      </thead>
      <tbody>
	{% for member in residents %}
	<tr>
	  <td><a class="page_link" title="Modify Profile" href="{% url 'custom_modify_user' targetUsername=member.user.username %}"><span class="glyphicon glyphicon-cog"></span> {{ member.user.username }}</a></td>
	  <td>{{ member.user.last_name }}</td>
	  <td>{{ member.user.first_name }}</td>
	  <td>{% if  member.user.is_active %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="Yes"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="No"/>{% endif %}</td>
	  <td>{% if  member.user.is_staff %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="Yes"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="No"/>{% endif %}</td>
	  <td>{% if  member.user.is_superuser %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="Yes"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="No"/>{% endif %}</td>
	  <td>{% if member.user.email %}<a class="page_link" title="Write E-mail" href="mailto:{{ member.user.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ member.user.email }}</a>{% endif %}</td>
	  <td>{% if member.phone_number %}{{ member.phone_number }}{% endif %}</td>
	</tr>
	{% endfor %}
      </tbody>
    </table>
  </div> <!-- .main_table -->
</div> <!-- .table_container -->
{% endif %}
{% if boarders %}
<div class="table_container">
  <div class="header"><h3 class="table_title">Boarders</h3></div>
  <div class="main_table">
    <table class="table table-striped table-bordered table-condensed table-hover members_table" id="boarders_table">
      <thead>
	<tr>
	  <th>Username</th>
	  <th>Last Name</th>
	  <th>First Name</th>
	  <th>Active</th>
	  <th>Staff</th>
	  <th>Superuser</th>
	  <th>Email</th>
	  <th>Phone</th>
	</tr>
      </thead>
      <tbody>
	{% for member in boarders %}
	<tr>
	  <td><a class="page_link" title="Modify Profile" href="{% url 'custom_modify_user' targetUsername=member.user.username %}"><span class="glyphicon glyphicon-cog"></span> {{ member.user.username }}</a></td>
	  <td>{{ member.user.last_name }}</td>
	  <td>{{ member.user.first_name }}</td>
	  <td>{% if  member.user.is_active %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
	  <td>{% if  member.user.is_staff %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
	  <td>{% if  member.user.is_superuser %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
	  <td>{% if member.user.email %}<a class="page_link" title="Write E-mail" href="mailto:{{ member.user.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ member.user.email }}</a>{% endif %}</td>
	  <td>{% if member.phone_number %}{{ member.phone_number }}{% endif %}</td>
	</tr>
	{% endfor %}
      </tbody>
    </table> <!-- #boarders_table -->
  </div> <!-- .main_table -->
</div> <!-- .table_container -->
{% endif %}
{% if alumni %}
<div class="table_container">
  <div class="header"><h3 class="table_title">Alumni</h3></div>
  <div class="main_table">
    <table class="table table-striped table-bordered table-condensed table-hover members_table" id="alumni_table">
      <thead>
	<tr>
	  <th>Username</th>
	  <th>Last Name</th>
	  <th>First Name</th>
	  <th>Active</th>
	  <th>Staff</th>
	  <th>Superuser</th>
	  <th>Email</th>
	  <th>Phone</th>
	</tr>
      </thead>
      <tbody>
	{% for member in alumni %}
	<tr>
	  <td><a class="page_link" title="Modify Profile" href="{% url 'custom_modify_user' targetUsername=member.user.username %}"><span class="glyphicon glyphicon-cog"></span> {{ member.user.username }}</a></td>
	  <td>{{ member.user.last_name }}</td>
	  <td>{{ member.user.first_name }}</td>
	  <td>{% if  member.user.is_active %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
	  <td>{% if  member.user.is_staff %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
	  <td>{% if  member.user.is_superuser %}<span style="display:none">1</span><img src="{% static 'admin/img/icon-yes.gif' %}" alt="True"/>{% else %}<span style="display:none">2</span><img src="{% static 'admin/img/icon-no.gif' %}" alt="False"/>{% endif %}</td>
	  <td>{% if member.user.email %}<a class="page_link" title="Write E-mail" href="mailto:{{ member.user.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ member.user.email }}</a>{% endif %}</td>
	  <td>{% if member.phone_number %}{{ member.phone_number }}{% endif %}</td>
	</tr>
	{% endfor %}
      </tbody>
    </table> <!-- #alumni_table -->
  </div> <!-- .main_table -->
</div> <!-- .table_container -->
{% endif %}
{% endblock %}
{'fraction_non_alphanumeric': 0.24885595990411855, 'fraction_numerical': 0.004648797849930994, 'mean_word_length': 4.542673107890499, 'pattern_counts': {'":': 0, '<': 497, '<?xml version=': 0, '>': 497, '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': '2629197', 'n_tokens_mistral': 5491, 'n_tokens_neox': 4928, 'n_words': 981}