summaryrefslogtreecommitdiff
path: root/themes/okadmin/templates/index.liquid
blob: 95c64dd14e60c080eda057e41747c83b27645544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{% include 'partials/head' %}

<section class="index main">
  {% for pair in resources %}
  {% assign name = pair[0] %}
  {% assign resource = pair[1] %}
  {% assign spec = resource.spec %}

    <section class="resource-category {{name}}">
      <header>
        <h2>{{name | capitalize}}</h2>
      </header>
      <ul class="resource-list">
      {% for data in resource.data %}
        <li><a href="{{resource.type}}/{{data.id}}/">{{data.id}}</a></li>
      {% endfor %}
      </ul>
      <footer>
        <a class="add-new" href="{{resource.type}}/new/">+</a>
      </footer>
    </section>

  {% endfor %}
</section>

{% include 'partials/tail' %}