{% extends "djohno/base.html" %}

{% block content %}
<h1>Versions</h1>

<p><strong>Python version:</strong> {{ sys }}</p>

<table class="table table-striped table-hover">
  <thead>
    <tr>
      <th>App</th>
      <th>Installed Version</th>
      <th>PyPI Version</th>
    </tr>
  </thead>
  <tbody>
{% for app, version in versions.items %}
  <tr class="version">
    <td class="{{ version.status }}">{{ app }}</td>
    <td>{{ version.installed }}</td>
    <td>
      {% if version.latest %}
        {{ version.latest }}
      {% else %}
        <em>Unknown</em>
      {% endif %}
  </td>
  </tr>
{% endfor %}
  </tbody>
</table>

<table class="table table-striped table-hover">
<thead>
  <tr>
    <th>Python Path</th>
  </tr>
</thead>
<tbody>
  {% for p in path %}
    {% if p %}
    <tr>
      <td>{{ p }}</td>
    </tr>
    {% endif %}
  {% endfor %}
</tbody>
</table>

{% endblock %}
