<commit_before>{% extends 'root.twig' %}

{% block content %}
<div class="container">
	<div class="page-header">
		<img src="{{base}}/img/game/{{short}}.png" class="pull-right hidden-xs">
		<h1>{{ title }}</h1>
		<div class="clearfix"></div>
	</div>
{% if addons %}
	<div class="sort-bar">{% trans %}Sort{% endtrans %}
		<a href="{{filename}}?sort=date{% if sort == 'date' and not reverse %}&reverse=1{% endif %}">{% trans %}by date{% endtrans %}</a>{% if sort == 'date' %} {% if reverse%}▲{% else %}▼{% endif %}{% endif %} |
		<a href="{{filename}}?sort=title{% if sort == 'title' and not reverse %}&reverse=1{% endif %}">{% trans %}by name{% endtrans %}</a>{% if sort == 'title' %} {% if reverse%}▲{% else %}▼{% endif %}{% endif %} |
		<a href="{{filename}}?sort=rating{% if sort == 'rating' and not reverse %}&reverse=1{% endif %}">{% trans %}by rating{% endtrans %}</a>{% if sort == 'rating' %} {% if reverse%}▲{% else %}▼{% endif %}{% endif %}
		or <a href="{{base}}/publish/?for={{short}}">create a new addon</a> for this game.
	</div>
	<ul class="media-list addons">
{% for addon in addons %}
		<li class="media">
			<div class="pull-left">
				<a href="{{filename}}/{{addon.short}}">
					<img class="media-object" src="http://placehold.it/200x150">
				</a>
			</div>
			<div class="media-body">
				<h4 class="media-heading"><a href="{{filename}}/{{addon.short}}">{{ addon.title }}</a></h4>
				<p class="hidden-phone">
				{% if addon.description %}
					{{addon.description}}
				{% else %}
					<em>{% trans %}This addon has no description.{% endtrans %}</em>
				{% endif %}
				</p>
				<p class="hidden-phone">
					<a href="{{filename}}/{{addon.short}}" class="btn">{% trans %}Addon page{% endtrans %}</a>
					<a href="{{base}}/download/{{short}}/{{addon.short}}" class="btn btn-primary">{% trans %}Download{% endtrans %}</a>
					<!--<a href="#" class="btn btn-info">{% trans %}Edit addon{% endtrans %}</a>!-->
				</p>
			</div>
		</li>
{% endfor %}
	</ul>
{% else %}
</div>
<div class="jumbotron">
	<div class="container">
		<h1>No addons available yet</h1>
		<p>{% trans %}There are no addons available for this game yet.{% endtrans %}</p>
		<p><a href="{{base}}/publish" class="btn btn-info">Visit the publishing portal</a></p>
{% endif %}
	</div>
</div>
{% endblock %}<commit_msg>add translatable strings<commit_after>{% extends 'root.twig' %}

{% block content %}
<div class="container">
	<div class="page-header">
		<img src="{{base}}/img/game/{{short}}.png" class="pull-right hidden-xs">
		<h1>{{ title }}</h1>
		<div class="clearfix"></div>
	</div>
{% if addons %}
	<div class="sort-bar">{% trans %}Sort{% endtrans %}
		<a href="{{filename}}?sort=date{% if sort == 'date' and not reverse %}&reverse=1{% endif %}">{% trans %}by date{% endtrans %}</a>{% if sort == 'date' %} {% if reverse%}▲{% else %}▼{% endif %}{% endif %} |
		<a href="{{filename}}?sort=title{% if sort == 'title' and not reverse %}&reverse=1{% endif %}">{% trans %}by name{% endtrans %}</a>{% if sort == 'title' %} {% if reverse%}▲{% else %}▼{% endif %}{% endif %} |
		<a href="{{filename}}?sort=rating{% if sort == 'rating' and not reverse %}&reverse=1{% endif %}">{% trans %}by rating{% endtrans %}</a>{% if sort == 'rating' %} {% if reverse%}▲{% else %}▼{% endif %}{% endif %}
		or <a href="{{base}}/publish/?for={{short}}">create a new addon</a> for this game.
	</div>
	<ul class="media-list addons">
{% for addon in addons %}
		<li class="media">
			<div class="pull-left">
				<a href="{{filename}}/{{addon.short}}">
					<img class="media-object" src="http://placehold.it/200x150">
				</a>
			</div>
			<div class="media-body">
				<h4 class="media-heading"><a href="{{filename}}/{{addon.short}}">{{ addon.title }}</a></h4>
				<p class="hidden-phone">
				{% if addon.description %}
					{{addon.description}}
				{% else %}
					<em>{% trans %}This addon has no description.{% endtrans %}</em>
				{% endif %}
				</p>
				<p class="hidden-phone">
					<a href="{{filename}}/{{addon.short}}" class="btn">{% trans %}Addon page{% endtrans %}</a>
					<a href="{{base}}/download/{{short}}/{{addon.short}}" class="btn btn-primary">{% trans %}Download{% endtrans %}</a>
					<!--<a href="#" class="btn btn-info">{% trans %}Edit addon{% endtrans %}</a>!-->
				</p>
			</div>
		</li>
{% endfor %}
	</ul>
{% else %}
</div>
<div class="jumbotron">
	<div class="container">
		<h1>{% trans %}No addons available yet{% endtrans %}</h1>
		<p>{% trans %}There are no addons available for this game yet.{% endtrans %}</p>
		<p><a href="{{base}}/publish" class="btn btn-info">{% trans %}Visit the publishing portal{% endtrans %}</a></p>
{% endif %}
	</div>
</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.26900835296637393, 'fraction_numerical': 0.00642535874919683, 'mean_word_length': 4.137513751375137, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 121, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '334679', 'n_tokens_mistral': 1975, 'n_tokens_neox': 1633, 'n_words': 442}