From f7b868318bbe6ddb0b1005af5bb88955f0cbe95f Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 10 Mar 2016 09:44:39 -0500 Subject: reorganize test-blog as three lists --- src/guff/views/ecrs/test-blog.ecr | 265 ++++++++++++++++++++------------------ 1 file changed, 138 insertions(+), 127 deletions(-) diff --git a/src/guff/views/ecrs/test-blog.ecr b/src/guff/views/ecrs/test-blog.ecr index f28966a..c5e2d9b 100644 --- a/src/guff/views/ecrs/test-blog.ecr +++ b/src/guff/views/ecrs/test-blog.ecr @@ -1,137 +1,148 @@

<%= h(TITLE) %>

-<% - POST_SETS.each do |set| -%> -

<%= - h(set[:name] as String) - %>

- - - - - - - - - - - - - <% posts(set[:id] as String).rows.each do |post| %> - - - - - - - - - - <% (set[:actions] as Array(Hash(Symbol, String))).each do |a| %> - - <% end %> - - <% end %> -
IDCreated AtNameBodyActions
<%= - h(post.row["post_id"].to_s) - %><%= - h(post.row["created_at"].to_s) - %><%= - h(post.row["name"].to_s) - %><%= - post.row["body"].to_s - %> -
- - - - - -
-
-<% end %> + + + <% POST_SETS.each do |set| %> + + <% end %> + + + + <% POST_SETS.each do |set| %> + + <% end %> + +

<%= + h(set[:name] as String) + %>

+ + + + + + + + + + + + <% posts(set[:id] as String).rows.each do |post| %> + + + + + + + + + + <% (set[:actions] as Array(Hash(Symbol, String))).each do |a| %> + + <% end %> + + <% end %> +
IDCreated AtNameBodyActions
<%= + h(post.row["post_id"].to_s) + %><%= + h(post.row["created_at"].to_s) + %><%= + h(post.row["name"].to_s) + %><%= + post.row["body"].to_s + %> +
+ + + + + +
+
+
-
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- - +
+ Add Post +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ + +
-- cgit v1.2.3