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

{% load i18n %}
{% load choices %}
{% load thumbs %}

{% block about_active %}active{% endblock %}

{% block content %}
	<p class="pills">
		{% trans 'Media types' %}:
		<a href="{% url 'media' %}" class="{% if not active_type_slug %}active{% endif %}">
			{% trans 'all' %}</a>
		{% for text, slug in media_types %}
			<a href="{% url 'media' slug %}" class="{% if slug == active_type_slug %}active{% endif %}">
				{{ text }}</a>
		{% endfor %}
	</p>
	<hr>
	<div class="media-coverage row">
	{% for item in media %}
		<div class="col-sm-4">
			<div class="media-item">
				<span class="media-type {% choice_name item.TYPE item.type %} small">
					<a href="{% url 'media' item.type_slug %}">
						{% choice_text item.TYPE item.type %}</a>
				</span>
				<span class="media-date small">{{ item.date }}</span>
				<hr>
				{% with link=item.link|default:'#' %}
					<a href="{{ link }}" class="media-logo">
						<img class="img-responsive"
						     alt="{{ item.name }}"
						     src="{% get_thumb item.logo w=180 h=120 %}">
					</a>
					<hr>
					<h4 class="media-title">
						<a href="{{ link }}">{{ item.title }}</a>
					</h4>
					<p class="media-perex">
						<a href="{{ link }}">{{ item.perex|truncatewords:20 }}</a>
					</p>
				{% endwith %}
			</div>
		</div>
	{% endfor %}
	</div>
{% endblock %}<commit_msg>Add target and rel attributes to external links on media page<commit_after>{% extends 'base.html' %}

{% load i18n %}
{% load choices %}
{% load thumbs %}

{% block about_active %}active{% endblock %}

{% block content %}
	<p class="pills">
		{% trans 'Media types' %}:
		<a href="{% url 'media' %}" class="{% if not active_type_slug %}active{% endif %}">
			{% trans 'all' %}</a>
		{% for text, slug in media_types %}
			<a href="{% url 'media' slug %}" class="{% if slug == active_type_slug %}active{% endif %}">
				{{ text }}</a>
		{% endfor %}
	</p>
	<hr>
	<div class="media-coverage row">
	{% for item in media %}
		<div class="col-sm-4">
			<div class="media-item">
				<span class="media-type {% choice_name item.TYPE item.type %} small">
					<a href="{% url 'media' item.type_slug %}">
						{% choice_text item.TYPE item.type %}</a>
				</span>
				<span class="media-date small">{{ item.date }}</span>
				<hr>
				{% with link=item.link|default:'#' %}
					<a href="{{ link }}" target="_blank" rel="noopener noreferrer" class="media-logo">
						<img class="img-responsive"
						     alt="{{ item.name }}"
						     src="{% get_thumb item.logo w=180 h=120 %}">
					</a>
					<hr>
					<h4 class="media-title">
						<a href="{{ link }}" target="_blank" rel="noopener noreferrer">
							{{ item.title }}</a>
					</h4>
					<p class="media-perex">
						<a href="{{ link }}" target="_blank" rel="noopener noreferrer">
							{{ item.perex|truncatewords:20 }}</a>
					</p>
				{% endwith %}
			</div>
		</div>
	{% endfor %}
	</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.2276755282890252, 'fraction_numerical': 0.008861622358554875, 'mean_word_length': 2.9662162162162162, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, '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': '6323173', 'n_tokens_mistral': 1371, 'n_tokens_neox': 1037, 'n_words': 271}