Blob Blame Raw
{% extends "master.html" %}

{% block title %}Home{% endblock %}
{%block tag %}home{% endblock %}


{% block content %}

<h2>Projects</h2>

{% if total_page and total_page > 1 %}
<table>
    <tr>
        <td>
        {% if page > 1%}
            <a href="{{ url_for('index') }}?page={{page - 1}}">
                &lt; Previous
            </a>
        {% else %}
            &lt; Previous
        {% endif %}
        </td>
        <td>{{ page }} / {{ total_page }}</td>
        <td>
            {% if page < total_page %}
            <a href="{{ url_for('index') }}?page={{page + 1}}">
                Next &gt;
            </a>
            {% else %}
            Next >
            {% endif %}
        </td>
    </tr>
</table>
{% endif %}

<section class="repo_list">
  <ul>
    {% for repo in repos %}
    <li>
      <a href="{{ url_for('view_repo', repo=repo.name)}}">
        {{ repo.name }}
      </a>
    </li>
    {% endfor %}
  </ul>
</section>

{% endblock %}