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

{% load humanize %}
{% load cloud_extras %}
						
{% block title %}Cloudly | User {{u|title}} Report{% endblock %}

{% block nav-bar %}
    {% include "partials/nav-bar-classic.html" %}
{% endblock %}

{% block page_content %}
<div id="main" class="col-md-10 col-sm-11 main ">

	<ol class="breadcrumb">
	  	<li><a href="/admin/">Admin</a></li>
	  	<li class="active"></li> Report for user <b>"{{user_profile.name}}"</b> <u>{{user_profile.user.email}}</u>
	</ol>
	
	<div class="row">
		<div class="col-xs-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h2><i class="fa fa-picture-o"></i>Virtual Machines</h2>
					<div class="panel-actions">
						<a href="#" class="btn-setting"><i class="fa fa-wrench"></i></a>
						<a href="#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
						<a href="#" class="btn-close"><i class="fa fa-times"></i></a>
					</div>
				</div>
				<div class="panel-body">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th>id</th>
								<th>state</th>
								<th>instance_type</th>
								<th>name</th>
								<th>public_dns_name</th>
								<th>region</th>
								<th>ip_address</th>
								<th>key_name</th>
								<th>launch_time</th>
								<th>virtualization_type</th>
								<th>architecture</th>
								<th>hypervisor</th>
							</tr>
						</thead>   
						<tbody>
							{% for i in vms_cached_response %}
							<tr>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"id"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"_state"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"instance_type"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"tags"|dict_get:"Name"}}</td>
								<td>
									{% if vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"public_dns_name" %}
									<a href="http://{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"public_dns_name"}}" target="_blank"><font size=1>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"public_dns_name"}}</a></font>
									{% else %}
									-
									{% endif %}
								</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"region"|dict_get:"name"}}</td>
								<td>
									{% if vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"ip_address" %}
									<a href="http://www.infosniper.net/index.php?ip_address={{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"ip_address"}}&map_source=1&overview_map=1&lang=1&map_type=1&zoom_level=7" target="_blank">
										{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"ip_address"}}
									</a>
									{% else %}
									-
									{% endif %}
								</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"key_name"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"launch_time"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"virtualization_type"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"architecture"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"hypervisor"}}</td>
							</tr>
							{% endfor %}
						</tbody>
					</table>
				</div>
			</div>
		</div>

		<div class="col-xs-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h2><i class="fa fa-picture-o"></i>Private Servers</h2>
					<div class="panel-actions">
						<a href="#" class="btn-setting"><i class="fa fa-wrench"></i></a>
						<a href="#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
						<a href="#" class="btn-close"><i class="fa fa-times"></i></a>
					</div>
				</div>
				<div class="panel-body">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th>agent</th>
								<th>name</th>
								<th>uuid</th>
								<th>IP_remote</th>
								<th>IP</th>
								<th>uptime</th>                                          
								<th>last_seen</th>
							</tr>
						</thead>   
						<tbody>
							{% for server in servers %}
							<tr>
								<td>v{{server|dict_get:"agent_version"}}</td>
								<td>TBD</td>
								<td>{{server|dict_get:"uuid"}}</td>
								<td>
									<a href="http://www.infosniper.net/index.php?ip_address={{server|dict_get:"ip"}}&map_source=1&overview_map=1&lang=1&map_type=1&zoom_level=7" target="_blank">
									{{server|dict_get:"ip_remote"}}
									</a>	
								</td>
								<td>
									<a href="http://www.infosniper.net/index.php?ip_address={{server|dict_get:"ip"}}&map_source=1&overview_map=1&lang=1&map_type=1&zoom_level=7" target="_blank">
									{{server|dict_get:"ip"}}
									</a>
								</td>
								<td>{{server|dict_get:"uptime"}}</td>
								<td>{{server|dict_get:"last_seen"}}</td>
							</tr>
							{% endfor %}
						</tbody>
					</table>
				</div>
			</div>
		</div>
	
	
		<div class="col-xs-4">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h2><i class="fa fa-picture-o"></i>Activity ({{profile.clicks}} clicked)</h2>
					<div class="panel-actions">
						<a href="#" class="btn-setting"><i class="fa fa-wrench"></i></a>
						<a href="#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
						<a href="#" class="btn-close"><i class="fa fa-times"></i></a>
					</div>
				</div>
				
				<div class="panel-body">						
					<table class="table table-bordered">
						<thead>
							<tr>
								<th>IP Address</th><commit_msg>updated wording in the admins user report<commit_after>{% extends "base.html" %}

{% load humanize %}
{% load cloud_extras %}
						
{% block title %}Cloudly | User {{u|title}} Report{% endblock %}

{% block nav-bar %}
    {% include "partials/nav-bar-classic.html" %}
{% endblock %}

{% block page_content %}
<div id="main" class="col-md-10 col-sm-11 main ">

	<ol class="breadcrumb">
	  	<li><a href="/admin/">Admin</a></li>
	  	<li class="active"></li> Report for user <b>"{{user_profile.name}}"</b> <u>{{user_profile.user.email}}</u>
	</ol>
	
	<div class="row">
		<div class="col-xs-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h2><i class="fa fa-picture-o"></i>Virtual Machines</h2>
					<div class="panel-actions">
						<a href="#" class="btn-setting"><i class="fa fa-wrench"></i></a>
						<a href="#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
						<a href="#" class="btn-close"><i class="fa fa-times"></i></a>
					</div>
				</div>
				<div class="panel-body">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th>id</th>
								<th>state</th>
								<th>instance_type</th>
								<th>name</th>
								<th>public_dns_name</th>
								<th>region</th>
								<th>ip_address</th>
								<th>key_name</th>
								<th>launch_time</th>
								<th>virtualization_type</th>
								<th>architecture</th>
								<th>hypervisor</th>
							</tr>
						</thead>   
						<tbody>
							{% for i in vms_cached_response %}
							<tr>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"id"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"_state"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"instance_type"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"tags"|dict_get:"Name"}}</td>
								<td>
									{% if vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"public_dns_name" %}
									<a href="http://{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"public_dns_name"}}" target="_blank"><font size=1>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"public_dns_name"}}</a></font>
									{% else %}
									-
									{% endif %}
								</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"region"|dict_get:"name"}}</td>
								<td>
									{% if vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"ip_address" %}
									<a href="http://www.infosniper.net/index.php?ip_address={{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"ip_address"}}&map_source=1&overview_map=1&lang=1&map_type=1&zoom_level=7" target="_blank">
										{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"ip_address"}}
									</a>
									{% else %}
									-
									{% endif %}
								</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"key_name"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"launch_time"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"virtualization_type"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"architecture"}}</td>
								<td>{{vms_cached_response|dict_get:i|dict_get:"instance"|dict_get:"hypervisor"}}</td>
							</tr>
							{% endfor %}
						</tbody>
					</table>
				</div>
			</div>
		</div>

		<div class="col-xs-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h2><i class="fa fa-picture-o"></i>Private Servers</h2>
					<div class="panel-actions">
						<a href="#" class="btn-setting"><i class="fa fa-wrench"></i></a>
						<a href="#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
						<a href="#" class="btn-close"><i class="fa fa-times"></i></a>
					</div>
				</div>
				<div class="panel-body">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th>agent</th>
								<th>name</th>
								<th>uuid</th>
								<th>IP_remote</th>
								<th>IP</th>
								<th>uptime</th>                                          
								<th>last_seen</th>
							</tr>
						</thead>   
						<tbody>
							{% for server in servers %}
							<tr>
								<td>v{{server|dict_get:"agent_version"}}</td>
								<td>TBD</td>
								<td>{{server|dict_get:"uuid"}}</td>
								<td>
									<a href="http://www.infosniper.net/index.php?ip_address={{server|dict_get:"ip"}}&map_source=1&overview_map=1&lang=1&map_type=1&zoom_level=7" target="_blank">
									{{server|dict_get:"ip_remote"}}
									</a>	
								</td>
								<td>
									<a href="http://www.infosniper.net/index.php?ip_address={{server|dict_get:"ip"}}&map_source=1&overview_map=1&lang=1&map_type=1&zoom_level=7" target="_blank">
									{{server|dict_get:"ip"}}
									</a>
								</td>
								<td>{{server|dict_get:"uptime"}}</td>
								<td>{{server|dict_get:"last_seen"}}</td>
							</tr>
							{% endfor %}
						</tbody>
					</table>
				</div>
			</div>
		</div>
	
	
		<div class="col-xs-4">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h2><i class="fa fa-picture-o"></i>Activity ({{profile.clicks}} clicks)</h2>
					<div class="panel-actions">
						<a href="#" class="btn-setting"><i class="fa fa-wrench"></i></a>
						<a href="#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
						<a href="#" class="btn-close"><i class="fa fa-times"></i></a>
					</div>
				</div>
				
				<div class="panel-body">						
					<table class="table table-bordered">
						<thead>
							<tr>
								<th>IP Address</th>
{'fraction_non_alphanumeric': 0.21374988968317007, 'fraction_numerical': 0.005471714764804518, 'mean_word_length': 3.0056557087310005, 'pattern_counts': {'":': 0, '<': 403, '<?xml version=': 0, '>': 403, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6938403', 'n_tokens_mistral': 5831, 'n_tokens_neox': 4126, 'n_words': 511}