From d2f0823c983c6f77bb5474fb6546e16a8acd245b Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 3 Apr 2016 13:34:41 -0400 Subject: update post, pag,e and project edit dialogs --- src/guff/views/ecrs/test/auth.ecr | 415 ++++++++++++++++++++++---------------- src/guff/views/html/test/auth.cr | 64 ++++++ 2 files changed, 302 insertions(+), 177 deletions(-) (limited to 'src') diff --git a/src/guff/views/ecrs/test/auth.ecr b/src/guff/views/ecrs/test/auth.ecr index 10b9518..228c0a5 100644 --- a/src/guff/views/ecrs/test/auth.ecr +++ b/src/guff/views/ecrs/test/auth.ecr @@ -26,18 +26,9 @@
- +
<%= + get_new_post_button + %>
@@ -53,18 +44,9 @@
diff --git a/src/guff/views/html/test/auth.cr b/src/guff/views/html/test/auth.cr index 60bafb3..59e151f 100644 --- a/src/guff/views/html/test/auth.cr +++ b/src/guff/views/html/test/auth.cr @@ -38,6 +38,66 @@ class Guff::TestAuthHTMLView ", + + new_post_button: " + + + New Post + + + + + + + + ", }) def self.run(models, context : HTTP::Server::Context) @@ -82,5 +142,9 @@ class Guff::TestAuthHTMLView }.join end + def get_new_post_button + TEMPLATES[:new_post_button].run + end + ECR.def_to_s("./src/guff/views/ecrs/test/auth.ecr") end -- cgit v1.2.3