<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>{{ title_text }}</title>
    <style>
      table {
        border-collapse: collapse;
        max-width: 100%;
      }
      th,
      td {
        border: 1px solid black;
        border-collapse: collapse;
        text-align: center;
        padding: 5px;
      }
    </style>
  </head>
  <body>
    <table style="text-align: center">
      <tr>
        <th>位置</th>
        <th>干员</th>
        <th>信赖值</th>
      </tr>
      {% for assistant in assistants_before %}
      <tr>
        <td>{{ assistant[0] }}</td>

        {% if assistant|length > 2 %}
        <td>{{assistant[1]}}</td>
        <td>{{assistant[2]}}</td>
        {% else %}
        <td colspan="2">None</td>
        {% endif %}
      </tr>
      {% endfor %} {% if assistants_after|length > 0 %}
      <tr>
        <th colspan="3">切换后干员</th>
      </tr>
      {% for assistant in assistants_after %}
      <tr>
        <td>{{assistant[0]}}</td>
        <td>{{assistant[1]}}</td>
        <td>{{assistant[2]}}</td>
      </tr>
      {% endfor %} {% endif %}

      <tr>
        <th colspan="2">设置信赖值阈值</th>
        <th>{{limit}}</th>
      </tr>
    </table>
  </body>
</html>
