{% extends "master.html" %}
{% block title %}{{username}}{% endblock %}
{%block tag %}users{% endblock %}
{% block content %}
<h2>{{ username }}</h2>
{% if total_page %}
<table>
<tr>
<td>
{% if page > 1%}
<a href="{{ url_for('view_user', username=username) }}?page={{page - 1}}">
< Previous
</a>
{% else %}
< Previous
{% endif %}
</td>
<td>{{ page }} / {{ total_page }}</td>
<td>
{% if page < total_page %}
<a href="{{ url_for('view_user', username=username) }}?page={{page + 1}}">
Next >
</a>
{% else %}
Next >
{% endif %}
</td>
</tr>
</table>
{% endif %}
<section class="fork_list">
<h3>Forked repos</h3>
<ul>
{% for repo in repos %}
<li>
<a href="{{ url_for('view_fork_repo', username=username, repo=repo)}}">
{{ repo.split('.git')[0] }}
</a>
<span class="commit_date">
{{ repos_obj[loop.index - 1] | lastcommit_date}}
</span>
</li>
{% endfor %}
</ul>
</section>
{% endblock %}