{% extends 'generic/object.html' %}
{% load render_table from django_tables2 %}

{% block content %}
  <div class="row mb-3">
    <div class="col col-md-6">
      <div class="card">
        <h5 class="card-header">Kriten Cluster</h5>
        <div class="card-body">
          <table class="table table-hover attr-table">
            <tr>
              <th scope="row">Name</th>
              <td>{{ object.name }}</td>
            </tr>
            <tr>
                <th scope="row">git branch</th>
                <td>{{ object.branch }}</td>
              </tr>
            <tr>
              <th scope="row">git URL</th>
              <td>{{ object.giturl }}</td>
            </tr>
            <tr>
                <th scope="row">Container Image</th>
                <td>{{ object.image }}</td>
              </tr>
            <tr>
              <th scope="row">Number of Kriten Tasks</th>
              <td>{{ object.tasks.count }}</td>
            </tr>
          </table>
        </div>
      </div>
    </div>
    <div class="col col-md-6">
    </div>
  </div>
  <div class="row">
    <div class="col col-md-12">
      <div class="card">
        <h5 class="card-header">Kriten Tasks</h5>
        <div class="card-body table-responsive">
          {% render_table tasks_table %}
        </div>
      </div>
    </div>
  </div>
{% endblock content %}
