summaryrefslogtreecommitdiff
path: root/themes/okadmin/templates/index.liquid
diff options
context:
space:
mode:
Diffstat (limited to 'themes/okadmin/templates/index.liquid')
-rw-r--r--themes/okadmin/templates/index.liquid26
1 files changed, 26 insertions, 0 deletions
diff --git a/themes/okadmin/templates/index.liquid b/themes/okadmin/templates/index.liquid
new file mode 100644
index 0000000..95c64dd
--- /dev/null
+++ b/themes/okadmin/templates/index.liquid
@@ -0,0 +1,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' %}