diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-04-03 03:29:32 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-04-03 03:29:32 -0400 |
commit | 50ac423f6e3be7566c1106647158e81b6eaae44a (patch) | |
tree | 5aeddba59f956528ef4e4715940441a1619394c0 /src/guff/views/html/test | |
parent | fda56e40b460ab06b6abee98ae1bc7d5f5847c9f (diff) | |
download | old-guff-50ac423f6e3be7566c1106647158e81b6eaae44a.tar.bz2 old-guff-50ac423f6e3be7566c1106647158e81b6eaae44a.zip |
remove tinymce
Diffstat (limited to 'src/guff/views/html/test')
-rw-r--r-- | src/guff/views/html/test/auth.cr | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/guff/views/html/test/auth.cr b/src/guff/views/html/test/auth.cr index 0e3d02f..386b6b4 100644 --- a/src/guff/views/html/test/auth.cr +++ b/src/guff/views/html/test/auth.cr @@ -4,9 +4,12 @@ require "../page" class Guff::TestAuthHTMLView TITLE = "Guff Auth Test" FEATURES = %w{bootstrap font-awesome guff/util} + # /guff-stuff/tinymce-4.3.7/tinymce.min.js SCRIPTS = %w{ + /guff-stuff/ckeditor-4.5.8/ckeditor.js /guff-stuff/js/search-field.js /guff-stuff/test/tab-users.js + /guff-stuff/test/tab-posts.js } TEMPLATES = TemplateCache.new({ @@ -23,10 +26,10 @@ class Guff::TestAuthHTMLView tab: " <li role='presentation' class='%{css}'> <a - id='tab-%{id}' - href='#tab-pane-%{id}' + id='%{prefix}-tab-%{id}' + href='#%{prefix}-tab-pane-%{id}' title='%{text}' - aria-controls='tab-pane-%{id}' + aria-controls='%{prefix}-tab-pane-%{id}' role='tab' data-toggle='tab' > @@ -68,12 +71,13 @@ class Guff::TestAuthHTMLView }.join end - def get_tabs - @models.tab.get_tabs.map { |row| + def get_tabs(id : Symbol, prefix : String) + @models.tab.get_tabs(id).map { |row| TEMPLATES[:tab].run(row.merge({ - "css": row["css"]? || "", - "name": h(row["name"]), - "text": h(row["text"]), + "prefix": prefix, + "css": row["css"]? || "", + "name": h(row["name"]), + "text": h(row["text"]), })) }.join end |