{% extends "base.html" %}

{% block pagebanner %}
  <div class="header">
      <h2>Change Logs for {{ hostname }}</h2>
  </div>
  <br/>
{% endblock %}

{% block sidebar %}
{% include "navbar.tmpl" %}
{% include "logout.tmpl" %}
{% endblock %}

{% block content %}

{% if host.get_logs %}
<ul>
{% for log in host.get_logs %}
<li><a href="{{ log.id }}/">{{ log.date }}</li>
{% endfor %}
</ul>
{% else %}
There are no logs for this host<br>
{% endif %}

{% endblock %}
