{% extends "base.html" %}
{% load i18n %}
{% load display_functions %}
{% block content %}
<h2>{% trans 'page_title_points' %}</h2>

{% if page.object_list.count > 0 %}

	{% include "oppia/includes/page_navigator.html" %}
    
	<div class="tableheader">
		<div class='tablecell'>{% trans 'table_header_points_date' %}</a></div>
		<div class='tablecell'>{% trans 'table_header_points' %}</div>
		<div class='tabletitle'>{% trans 'table_header_points_description' %}</div>
		<div style='clear:both'></div>
	</div>
	{% for p in page.object_list %}
		<div class="tablelist">
			<div class='tablecell'>{{ p.date|date:"d M Y H:i" }}</a></div>
			<div class='tablecell'>{{ p.points }}</div>
			<div class='tabletitle'>{{ p.description }}</div>
			<div style='clear:both'></div>
		</div>
	{% endfor %}
	
	{% include "oppia/includes/page_navigator.html" %}
	
{% else %}
	<p>You don't have any points yet</p>
{% endif %}
{% endblock %}