X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=knot%2Fhtml.ct;h=a80c21d450d15db9f533d28bbf0c26b5e8702066;hb=HEAD;hp=40fbe44c88be7bad8d379559aed257b6a633caad;hpb=c66ad87d24f507de21f784591e8d5f361ea3c55f;p=~andy%2Fct
diff --git a/knot/html.ct b/knot/html.ct
index 40fbe44..a80c21d 100644
--- a/knot/html.ct
+++ b/knot/html.ct
@@ -9,7 +9,7 @@
<% } %>
<% } %>
-<% void print_index(tile_t **tiles) { %>
+<% void print_index(row_t *rows) { %>
@@ -17,24 +17,22 @@
-
- <% for (int row = 1; row < 10; row++) { %>
-
- <% for (int col = 1; col < 30; col++) { %>
-
- <% print_img(tiles[row][col].bot); %>
- <% print_img(tiles[row][col].top); %>
- |
+
+ <% for (int row = 0; rows[row].ncols >= 0; row++) { %>
+
+ <% for (int col = 0; col < rows[row].ncols; col++) { %>
+
+ <% print_img(rows[row].cols[col].bot); %>
+ <% print_img(rows[row].cols[col].top); %>
+ |
+ <% } %>
+
<% } %>
-
- <% } %>