{% extends "base.html" %}

{% block title %}
{{ _("Mod Names") }}
{% endblock %}

{% block content %}
	<div class="list-group">
		<div class="list-group-item">
			<div class="row text-muted">
				<div class="col-sm">
					{{ _("Name") }}
				</div>

				<div class="col-sm-1 text-center">
					{{ _("Packages") }}
				</div>
			</div>
		</div>

		{% for pair in modnames %}
			{% set meta = pair[0] %}
			{% set count = pair[1] %}
			<a class="list-group-item list-group-item-action"
					href="{{ url_for('modnames.view', name=meta.name) }}">
				<div class="row">
					<div class="col-sm">
						{{ meta.name }}
					</div>

					<div class="col-sm-1 text-center">
						{{ count }}
					</div>
				</div>
			</a>
		{% else %}
			<li><i>{{ _("No mod names found.") }}</i></li>
		{% endfor %}
	</div>
{% endblock %}
