<commit_before>{! admin/util/dates !}

{% if id === false %}
<p class="selector">
<form method="GET" action="/admin/versions">
<input type="hidden" name="id" value="{{ id }}" />
{"Type"}: <select name="type" onchange="this.form.submit ()">
{% foreach classes %}
	<option value="{{ loop_value }}" {% if type == $data->loop_value %}selected{% end %}>{{ loop_value }}</option>
{% end %}
</select>
</form>
</p>
{% end %}

<p style="float: left">
{! navigation/pager?style=results&url=[url]&total=[total]&count=[count]&limit=[limit] !}
</p>

{% if total > $data->limit %}
<div style="float: right">
{! navigation/pager?style=numbers&url=[url]&total=[total]&count=[count]&limit=[limit] !}
</div>
{% end %}

{% if id === false %}
	<p>
	<table width="100%">
		<tr>
			<th width="30%">{"ID"}</th>
			<th width="30%">{"Last changed"}</th>
			<th width="25%">{"Author"}</th>
			<th width="15%">&nbsp;</th>
		</tr>
	{% foreach history %}
		<tr>
			<td>{{ loop_value->pkey }}</td>
			<td>{{ loop_value->ts|I18n::date_time }}</td>
			<td>{{ loop_value->user|admin_filter_user_name }}</td>
			<td><a href="/admin/versions?type={{ type }}&id={{ loop_value->pkey }}">{"Show versions"}</a></td>
		</tr>
	{% end %}
	</table>
	</p>
{% else %}
	<p>
	<table>
		<tr>
			<th>{"Changed on"}</th>
			<th>{"Author"}</th>
			<th>&nbsp;</th>
		</tr>
	{% foreach history %}
		<tr>
			<td>{{ loop_value->ts|I18n::date_time }}</td>
			<td>{{ loop_value->user|admin_filter_user_name }}</td>
		{% if loop_index == 0 %}
			{% if deleted %}
				<td><a href="/admin/compare?id={{ loop_value->id }}">{"View current"}</a></td>
			{% else %}
				<td><strong>{"Current version"}</strong></td>
			{% end %}
		{% else %}
			<td><a href="/admin/compare?id={{ loop_value->id }}">{"Compare to current"}</a></td>
		{% end %}
		</tr>
	{% end %}
	</table>
	</p>
{% end %}
<commit_msg>Fixed a formatting issue on the versions pager<commit_after>{! admin/util/dates !}

{% if id === false %}
<p class="selector">
<form method="GET" action="/admin/versions">
<input type="hidden" name="id" value="{{ id }}" />
{"Type"}: <select name="type" onchange="this.form.submit ()">
{% foreach classes %}
	<option value="{{ loop_value }}" {% if type == $data->loop_value %}selected{% end %}>{{ loop_value }}</option>
{% end %}
</select>
</form>
</p>
{% end %}

<p style="float: left">
{! navigation/pager?style=results&url=[url]&total=[total]&count=[count]&limit=[limit] !}
</p>

{% if total > $data->limit %}
<div style="float: right">
{! navigation/pager?style=numbers&url=[url]&total=[total]&count=[count]&limit=[limit] !}
</div>
{% end %}

{% if id === false %}
	<p style="clear: both">
	<table width="100%">
		<tr>
			<th width="30%">{"ID"}</th>
			<th width="30%">{"Last changed"}</th>
			<th width="25%">{"Author"}</th>
			<th width="15%">&nbsp;</th>
		</tr>
	{% foreach history %}
		<tr>
			<td>{{ loop_value->pkey }}</td>
			<td>{{ loop_value->ts|I18n::date_time }}</td>
			<td>{{ loop_value->user|admin_filter_user_name }}</td>
			<td><a href="/admin/versions?type={{ type }}&id={{ loop_value->pkey }}">{"Show versions"}</a></td>
		</tr>
	{% end %}
	</table>
	</p>
{% else %}
	<p style="clear: both">
	<table>
		<tr>
			<th>{"Changed on"}</th>
			<th>{"Author"}</th>
			<th>&nbsp;</th>
		</tr>
	{% foreach history %}
		<tr>
			<td>{{ loop_value->ts|I18n::date_time }}</td>
			<td>{{ loop_value->user|admin_filter_user_name }}</td>
		{% if loop_index == 0 %}
			{% if deleted %}
				<td><a href="/admin/compare?id={{ loop_value->id }}">{"View current"}</a></td>
			{% else %}
				<td><strong>{"Current version"}</strong></td>
			{% end %}
		{% else %}
			<td><a href="/admin/compare?id={{ loop_value->id }}">{"Compare to current"}</a></td>
		{% end %}
		</tr>
	{% end %}
	</table>
	</p>
{% end %}

{'fraction_non_alphanumeric': 0.28533262089233236, 'fraction_numerical': 0.008549292011755277, 'mean_word_length': 4.318181818181818, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 163, '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': '6862457', 'n_tokens_mistral': 1666, 'n_tokens_neox': 1456, 'n_words': 281}