diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 19:55:34 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 19:55:34 -0400 |
| commit | 32f87fcb58466e0e311349f96751c18e2a2cd7ea (patch) | |
| tree | 9b8c5e37821e147048e5d1ddbe5435af47716949 /themes/okadmin/templates/index.liquid | |
| parent | 51296eb133599d98dd05d04399898c42b1662ab5 (diff) | |
Administrate!
Diffstat (limited to 'themes/okadmin/templates/index.liquid')
| -rw-r--r-- | themes/okadmin/templates/index.liquid | 26 |
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' %} |
