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

{% block title %}Home{% endblock %}

{% block body %}

<h1>GitZen</h1>
<h3><a href={% url change %}>Change Account Settings</a></h3>
<br/>

<h2>Enhancement Tracking</h2>
<br/>

{% if status %}
<div class="row">
<div class="span12">
    <h3>Currently Tracking</h3>
    {% if tracking %}
		<table class="table span12 table-center">
			<thead>
				<tr>
					<th>Association</th>
					<th>Zendesk Subject</th>
					<th>Requester</th>
					<th>Last Zen Ticket Update</th>
					<th>Last Git Ticket Update</th>
					<th>Git Issue Labels</th>
				</tr>
			</thead>
			<tbody>
			{% for enhancement in tracking %}
				<tr>
					<td>
						<a class="open" href="{{ zen_url }}/tickets/
							{{ enhancement.z_id }}">Z{{ enhancement.z_id }}</a> 
						--&gt; <a class="open" href="{{ enhancement.g_url }}"
							>G{{enhancement.g_id }}</a>
					</td>
					<td>{{ enhancement.z_subject }}</td>
					<td>{{ enhancement.z_requester }}</td>
					<td class="open">{{ enhancement.z_date }}</td>
					<td class="open">{{ enhancment.g_date }}</td>
					<td>
					{% if enhancement.g_labels %}
						{% for label in enhancement.g_labels %}
							{% if not forloop.last %}
								{{ label }},
							{% else %}
								{{ label }}
							{% endif %}
						{% endfor %}
					{% else %}
						None
					{% endif %}
					</td>
				</tr>
			{% endfor %}
			</tbody>
		</table>
    {% else %}
        <p>There are currently no Enhancements being tracked.</p>
    {% endif %}
</div>
</div>
<br/>

<div class="row">
<div class="span12">
	<h3>Need Attention</h3>
    {% if need_attention %}
		<table class="table span12 table-center">
			<thead>
				<tr>
					<th>Association</th>
					<th>Zendesk Subject</th>
					<th>Requester</th>
					<th>Last Zen Ticket Update</th>
					<th>Last Git Ticket Update</th>
					<th>Git Issue Labels</th>
				</tr>
			</thead>
			<tbody>
			{% for enhancement in need_attention %}
				<tr>
					<td>
						<a class="open" href="{{ zen_url }}/tickets/
							{{ enhancement.z_id }}">Z{{ enhancement.z_id }}</a> 
						--&gt; <a class="closed" href="{{ enhancement.g_url }}"
							>G{{ enhancement.g_id }}</a>
					</td>
					<td>{{ enhancement.z_subject }}</td>
					<td>{{ enhancement.z_requester }}</td>
					<td class="open">{{ enhancement.z_date }}</td>
					<td class="closed">{{ enhancement.g_date }}</td>
					<td>
					{% if enhancement.g_labels %}
						{% for label in enhancement.g_labels %}
							{% if not forloop.last %}
								{{ label }},
							{% else %}
								{{ label }}
							{% endif %}
						{% endfor %}
					{% else %}
						None
					{% endif %}
					</td>
				</tr>
			{% endfor %}
			</tbody>
        </table>
    {% else %}
        <p>There are currently no Enhancements in need of attention.</p>
    {% endif %}
</div>
</div>
<br/>

{% if broken_enhancements %}
<div class="row">
<div class="span8 offset2">
	<h3>Requested Enhancements with Improper GitHub Associations</h3>
	<p>The listing in the GitHub Association field should be in the format
	"gh-###" where the "###" is the GitHub issue number of the associated
	issue.</p>

	<table class="table table-striped span8 offset2 table-center">
		<thead>
			<tr>
				<th>Zendesk Ticket</th>
				<th>Subject</th>
				<th>Requester</th>
				<th>Last Updated</th>
				<th>Association Field Data</th>
			</tr>
		</thead>
		<tbody>
		{% for enhancement in broken_enhancements %}
			<tr>
				<td>
					<a class="open" href="{{ zen_url }}/tickets/
						{{ enhancement.z_id }}">Z{{ enhancement.z_id }}</a>
				</td>
				<td>{{ enhancement.z_subject }}</td>
				<td>{{ enhancement.z_requester }}</td>
				<td>{{ enhancement.z_date }}</td>
				<td>{{ enhancement.broken_assoc }}</td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
</div>
</div>
<br/>
{% endif %}

<div class="row">
<div class="span8 offset2">		
    <h3>Requested Enhancements not Associated with GitHub</h3>
    {% if unassociated_enhancements %}
	<table class="table table-striped span8 offset2 table-center">
		<thead>
			<tr>
				<th>Zendesk Ticket</th>
				<th>Subject</th>
				<th>Requester</th>
				<th>Last Updated</th>
			</tr>
		</thead>
		<tbody>
		{% for enhancement in unassociated_enhancements %}
			<tr>
				<td>
					<a class="open" href="{{ zen_url }}/tickets/
					{{ enhancement.z_id }}">Z{{ enhancement.z_id }}</a>
				</td>
				<td>{{ enhancement.z_subject }}</td>
				<td>{{ enhancement.z_requester }}</td>
				<td>{{ enhancement.z_date }}</td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
    {% else %}
		<p>There are currently no requested Enhancements without GitHub
			associations.</p>
	{% endif %}
</div>
</div>
{% else %}
	<p>There was an Error connecting to either GitHub or Zendesk. Try adjusting
		your account settings.</p>
{% endif %}

{% endblock %}
<commit_msg>gz-20: Fixed some small position and naming issues in the home page template.<commit_after>{% extends "base.html" %}

{% block title %}Home{% endblock %}

{% block body %}

<h1>GitZen</h1>
<h3><a href={% url change %}>Change Account Settings</a></h3>
<br/>

<h2>Enhancement Tracking</h2>
<br/>

{% if status %}
<div class="row">
<div class="span12">
	<h3>Need Attention</h3>
    {% if need_attention %}
		<table class="table span12 table-center">
			<thead>
				<tr>
					<th>Association</th>
					<th>Zendesk Subject</th>
					<th>Requester</th>
					<th>Last Zen Ticket Update</th>
					<th>Last Git Ticket Update</th>
					<th>Git Issue Labels</th>
				</tr>
			</thead>
			<tbody>
			{% for enhancement in need_attention %}
				<tr>
					<td>
						<a class="open" href="{{ zen_url }}/tickets/
							{{ enhancement.z_id }}">Z{{ enhancement.z_id }}</a> 
						--&gt; <a class="closed" href="{{ enhancement.g_url }}"
							>G{{ enhancement.g_id }}</a>
					</td>
					<td>{{ enhancement.z_subject }}</td>
					<td>{{ enhancement.z_requester }}</td>
					<td class="open">{{ enhancement.z_date }}</td>
					<td class="closed">{{ enhancement.g_date }}</td>
					<td>
					{% if enhancement.g_labels %}
						{% for label in enhancement.g_labels %}
							{% if not forloop.last %}
								{{ label }},
							{% else %}
								{{ label }}
							{% endif %}
						{% endfor %}
					{% else %}
						None
					{% endif %}
					</td>
				</tr>
			{% endfor %}
			</tbody>
        </table>
    {% else %}
        <p>There are currently no Enhancements in need of attention.</p>
    {% endif %}
</div>
</div>
<br/>

<div class="row">
<div class="span12">
    <h3>Currently Tracking</h3>
    {% if tracking %}
		<table class="table span12 table-center">
			<thead>
				<tr>
					<th>Association</th>
					<th>Zendesk Subject</th>
					<th>Requester</th>
					<th>Last Zen Ticket Update</th>
					<th>Last Git Ticket Update</th>
					<th>Git Issue Labels</th>
				</tr>
			</thead>
			<tbody>
			{% for enhancement in tracking %}
				<tr>
					<td>
						<a class="open" href="{{ zen_url }}/tickets/
							{{ enhancement.z_id }}">Z{{ enhancement.z_id }}</a> 
						--&gt; <a class="open" href="{{ enhancement.g_url }}"
							>G{{enhancement.g_id }}</a>
					</td>
					<td>{{ enhancement.z_subject }}</td>
					<td>{{ enhancement.z_requester }}</td>
					<td class="open">{{ enhancement.z_date }}</td>
					<td class="open">{{ enhancement.g_date }}</td>
					<td>
					{% if enhancement.g_labels %}
						{% for label in enhancement.g_labels %}
							{% if not forloop.last %}
								{{ label }},
							{% else %}
								{{ label }}
							{% endif %}
						{% endfor %}
					{% else %}
						None
					{% endif %}
					</td>
				</tr>
			{% endfor %}
			</tbody>
		</table>
    {% else %}
        <p>There are currently no Enhancements being tracked.</p>
    {% endif %}
</div>
</div>
<br/>

{% if broken_enhancements %}
<div class="row">
<div class="span10 offset1">
	<h3>Requested Enhancements with Improper GitHub Associations</h3>
	<p>The listing in the GitHub Association field should be in the format
	"gh-###" where the "###" is the GitHub issue number of the associated
	issue.</p>

	<table class="table table-striped span10 offset1 table-center">
		<thead>
			<tr>
				<th>Zendesk Ticket</th>
				<th>Subject</th>
				<th>Requester</th>
				<th>Last Updated</th>
				<th>Association Field Data</th>
			</tr>
		</thead>
		<tbody>
		{% for enhancement in broken_enhancements %}
			<tr>
				<td>
					<a class="open" href="{{ zen_url }}/tickets/
						{{ enhancement.z_id }}">Z{{ enhancement.z_id }}</a>
				</td>
				<td>{{ enhancement.z_subject }}</td>
				<td>{{ enhancement.z_requester }}</td>
				<td>{{ enhancement.z_date }}</td>
				<td>{{ enhancement.broken_assoc }}</td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
</div>
</div>
<br/>
{% endif %}

<div class="row">
<div class="span8 offset2">		
    <h3>Requested Enhancements not Associated with GitHub</h3>
    {% if unassociated_enhancements %}
	<table class="table table-striped span8 offset2 table-center">
		<thead>
			<tr>
				<th>Zendesk Ticket</th>
				<th>Subject</th>
				<th>Requester</th>
				<th>Last Updated</th>
			</tr>
		</thead>
		<tbody>
		{% for enhancement in unassociated_enhancements %}
			<tr>
				<td>
					<a class="open" href="{{ zen_url }}/tickets/
					{{ enhancement.z_id }}">Z{{ enhancement.z_id }}</a>
				</td>
				<td>{{ enhancement.z_subject }}</td>
				<td>{{ enhancement.z_requester }}</td>
				<td>{{ enhancement.z_date }}</td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
    {% else %}
		<p>There are currently no requested Enhancements without GitHub
			associations.</p>
	{% endif %}
</div>
</div>
{% else %}
	<p>There was an Error connecting to either GitHub or Zendesk. Try adjusting
		your account settings.</p>
{% endif %}

{% endblock %}

{'fraction_non_alphanumeric': 0.19543805080352514, 'fraction_numerical': 0.0066355624675997925, 'mean_word_length': 2.6358839050131926, 'pattern_counts': {'":': 0, '<': 369, '<?xml version=': 0, '>': 369, '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': '5550618', 'n_tokens_mistral': 4583, 'n_tokens_neox': 3421, 'n_words': 846}