{% extends "base.html" %}

{% block title %}migration {% if success %}complete{% else %}failed{% endif %} - irc.now{% endblock %}

{% block content %}
<div class="content">
  {% if success %}
  <h1>migration complete</h1>
  <div class="card">
    <p>{{ message }}</p>
    {% if !networks.is_empty() %}
    <ul>
      {% for net in networks %}
      <li>{{ net.name }} ({{ net.addr }}) -- {{ net.channel_count }} channels</li>
      {% endfor %}
    </ul>
    {% endif %}
    <a href="/bouncers" class="btn-fill">view bouncers</a>
  </div>
  {% else %}
  <h1>migration failed</h1>
  <div class="card">
    <p>{{ message }}</p>
    <a href="/migrate" class="btn-fill">try again</a>
  </div>
  {% endif %}
</div>
{% endblock %}
