Source

hydra / apps / all_docs / templates / view / index.html

Full commit
{% extends "base" %}
{% block title %}
  {{ doc._id }}
{% endblock %}
{% block head %}
  {{ super() }}
  <style>
    th.centred{
      text-align: center;
    }
  </style>
{% endblock %}
{% block body %}
  <div class="container">
    <hr />
    <header id="overview" class="jumbotron subhead">
      <h3 style="text-align: center">Results for view {{ req.path[-1] }}</h3>
    </header>
    <section id="results">
      <hr />
      <table class="table table-striped table-bordered table-condensed">
        <thead>
        <tr>
          <th class="centred">id</th>
          <th class="centred">key</th>
          <th class="centred">value</th>
        </tr>
        </thead>
        <tbody>
        {% for row in doc.rows %}
          <tr>
            <td>{{ row.id }}</td>
            <td>{{ row.key }}</td>
            <td>{{ row.value }}</td>
          </tr>
        {% endfor %}
        </tbody>
      </table>
    </section>
  </div>
{% endblock %}