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

{% block content %}

	<h1>{{ league_name }}</h1>

	<div class="col-md-9">
		<table id="standings_table" class="table table-striped table-bordered">
			<thead>
				<tr>
					<th>Name</th>
					<th>Points</th>
					{% for scoring_condition in scoring_conditions %}
						<div><th>{{ scoring_condition }}</th></div>
					{% endfor %}
				</tr>
			</thead>
			<tbody>
				{% for user_score in standings %}
					<tr>
						<td>{{ user_score.0.first_name }} {{ user_score.0.last_name }}</td>
						<td>{{ user_score.1.0 }}</td>
						{% if user_score.1.1.exact_guess != -1 %}
							<td>{{ user_score.1.1.exact_guess }}</td>
						{% endif %}
						{% if user_score.1.1.goal_difference != -1 %}
							<td>{{ user_score.1.1.goal_difference }}</td>
						{% endif %}
						{% if user_score.1.1.outcome != -1 %}
							<td>{{ user_score.1.1.outcome }}</td>
						{% endif %}
						{% if user_score.1.1.number_of_goals != -1 %}
							<td>{{ user_score.1.1.number_of_goals }}</td>
						{% endif %}
						{% if user_score.1.1.home_goals != -1 %}
							<td>{{ user_score.1.1.home_goals }}</td>
						{% endif %}
						{% if user_score.1.1.away_goals != -1 %}
							<td>{{ user_score.1.1.away_goals }}</td>
						{% endif %}
					</tr>
				{% endfor %}
			</tbody>
		</table>
	</div>
	
	<div class="col-md-3">
		{% if matches_view %}
			{% load staticfiles %}
			{% for match_view in matches_view %}
				<div>
					<img src="{% static "flags/{{ match_view.0.home_team }}.png" %}"/>
					{{ match_view.0.get_home_team_display }}
					{% if match_view.1 %}
		            	<a href="/leagues/{{ league_id }}/tip/{{ match_view.0.id }}/">{{ match_view.1.home_score_tip }} - {{ match_view.1.away_score_tip }}</a>
		            {% else %}
		            	<a href="/leagues/{{ league_id }}/tip/{{ match_view.0.id }}/">Tip</a>
		            {% endif %}
		            <img src="{% static "flags/{{ match_view.0.away_team }}.png" %}"/>
				 	{{ match_view.0.get_away_team_display }}
				 </div>
			{% endfor %}
		{% else %}
		    <p>No upcoming matches.</p>
		{% endif %}
	</div>
	
	<script>
		$(document).ready(function() {
			$("#standings_table").tablesorter({sortList: [[1,1], [2,1]]}); 
		} );
	</script>
{% endblock %}<commit_msg>Amend adding flags<commit_after>{% extends "base.html" %}

{% block content %}

	<h1>{{ league_name }}</h1>

	<div class="col-md-9">
		<table id="standings_table" class="table table-striped table-bordered">
			<thead>
				<tr>
					<th>Name</th>
					<th>Points</th>
					{% for scoring_condition in scoring_conditions %}
						<div><th>{{ scoring_condition }}</th></div>
					{% endfor %}
				</tr>
			</thead>
			<tbody>
				{% for user_score in standings %}
					<tr>
						<td>{{ user_score.0.first_name }} {{ user_score.0.last_name }}</td>
						<td>{{ user_score.1.0 }}</td>
						{% if user_score.1.1.exact_guess != -1 %}
							<td>{{ user_score.1.1.exact_guess }}</td>
						{% endif %}
						{% if user_score.1.1.goal_difference != -1 %}
							<td>{{ user_score.1.1.goal_difference }}</td>
						{% endif %}
						{% if user_score.1.1.outcome != -1 %}
							<td>{{ user_score.1.1.outcome }}</td>
						{% endif %}
						{% if user_score.1.1.number_of_goals != -1 %}
							<td>{{ user_score.1.1.number_of_goals }}</td>
						{% endif %}
						{% if user_score.1.1.home_goals != -1 %}
							<td>{{ user_score.1.1.home_goals }}</td>
						{% endif %}
						{% if user_score.1.1.away_goals != -1 %}
							<td>{{ user_score.1.1.away_goals }}</td>
						{% endif %}
					</tr>
				{% endfor %}
			</tbody>
		</table>
	</div>
	
	<div class="col-md-3">
		{% if matches_view %}
			{% load staticfiles %}
			{% for match_view in matches_view %}
				<div>
					{% with 'flags/'|add:match_view.0.home_team|add:'.png' as home_team %}
		        		<img src="{% static home_team %}" alt="{{ match_view.0.home_team }}">
		        	{% endwith %}
					{{ match_view.0.get_home_team_display }}
					{% if match_view.1 %}
		            	<a href="/leagues/{{ league_id }}/tip/{{ match_view.0.id }}/">{{ match_view.1.home_score_tip }} - {{ match_view.1.away_score_tip }}</a>
		            {% else %}
		            	<a href="/leagues/{{ league_id }}/tip/{{ match_view.0.id }}/">Tip</a>
		            {% endif %}
		            {% with 'flags/'|add:match_view.0.away_team|add:'.png' as away_team %}
		        		<img src="{% static away_team %}" alt="{{ match_view.0.away_team }}">
		        	{% endwith %}
				 	{{ match_view.0.get_away_team_display }}
				 </div>
			{% endfor %}
		{% else %}
		    <p>No upcoming matches.</p>
		{% endif %}
	</div>
	
	<script>
		$(document).ready(function() {
			$("#standings_table").tablesorter({sortList: [[1,1], [2,1]]}); 
		} );
	</script>
{% endblock %}
{'fraction_non_alphanumeric': 0.21903355138214814, 'fraction_numerical': 0.02194555813462756, 'mean_word_length': 2.321653819201121, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '519321', 'n_tokens_mistral': 2376, 'n_tokens_neox': 1765, 'n_words': 306}