diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-04-02 02:06:31 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-04-02 02:06:31 -0400 |
commit | 6ceae6b02d89bfebbb3bec13ce9525014cbdd2a7 (patch) | |
tree | 3aa1292d70e199a7919c5ea522758e6d8ea0f5b6 /src/guff/views/html/test | |
parent | 23ba337de24e88c6aaf6ceb37507997f5c5f4920 (diff) | |
download | old-guff-6ceae6b02d89bfebbb3bec13ce9525014cbdd2a7.tar.bz2 old-guff-6ceae6b02d89bfebbb3bec13ce9525014cbdd2a7.zip |
add search-field and searching to users panel
Diffstat (limited to 'src/guff/views/html/test')
-rw-r--r-- | src/guff/views/html/test/auth.cr | 6 |
1 files changed, 5 insertions, 1 deletions
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 |