From 6ceae6b02d89bfebbb3bec13ce9525014cbdd2a7 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 2 Apr 2016 02:06:31 -0400 Subject: add search-field and searching to users panel --- src/guff/views/html/test/auth.cr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/guff/views/html') diff --git a/src/guff/views/html/test/auth.cr b/src/guff/views/html/test/auth.cr index 1baa7de..528b652 100644 --- a/src/guff/views/html/test/auth.cr +++ b/src/guff/views/html/test/auth.cr @@ -4,6 +4,10 @@ require "../page" class Guff::TestAuthHTMLView TITLE = "Guff Auth Test" FEATURES = %w{bootstrap font-awesome guff/util} + SCRIPTS = %w{ + /guff-stuff/js/search-field.js + /guff-stuff/test/auth.js + } TEMPLATES = TemplateCache.new({ role: " @@ -27,7 +31,7 @@ class Guff::TestAuthHTMLView def run(context) page = PageHTMLView.new(TITLE, self.to_s) page.add_features(FEATURES) - page.scripts << "/guff-stuff/test/auth.js" + page.scripts.concat(SCRIPTS) context.response.content_type = page.content_type context.response.puts page end -- cgit v1.2.3