aboutsummaryrefslogtreecommitdiff
path: root/src/guff/models/tab.cr
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-04-02 23:14:45 -0400
committerPaul Duncan <pabs@pablotron.org>2016-04-02 23:14:45 -0400
commit6ff8fd4e02cb962c9e2d1e90691324c67f58c4e8 (patch)
tree6f6987b854913ff0727cf7964118619b04ceb1bc /src/guff/models/tab.cr
parent6d67ff3ad553cd48fd1a30da0ab287cf8a1b6bc0 (diff)
downloadold-guff-6ff8fd4e02cb962c9e2d1e90691324c67f58c4e8.tar.bz2
old-guff-6ff8fd4e02cb962c9e2d1e90691324c67f58c4e8.zip
add test auth panel tabs
Diffstat (limited to 'src/guff/models/tab.cr')
-rw-r--r--src/guff/models/tab.cr50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/guff/models/tab.cr b/src/guff/models/tab.cr
new file mode 100644
index 0000000..3fe5133
--- /dev/null
+++ b/src/guff/models/tab.cr
@@ -0,0 +1,50 @@
+class Guff::TabModel < Guff::Model
+ SQL = TemplateCache.new({
+ } of Symbol => String)
+
+ TABS = [{
+ "id": "home",
+ "css": "active",
+ "icon": "fa-home",
+ "name": "Home",
+ "text": "View home tab.",
+ }, {
+ "id": "blog",
+ "icon": "fa-bullhorn",
+ "name": "Blog",
+ "text": "Add, view, and edit blog posts.",
+ }, {
+ "id": "files",
+ "icon": "fa-files-o",
+ "name": "Files",
+ "text": "Add, view, and edit files.",
+ }, {
+ "id": "pages",
+ "icon": "fa-bookmark-o",
+ "name": "Pages",
+ "text": "Add, view, and edit pages.",
+ }, {
+ "id": "projects",
+ "icon": "fa-cubes",
+ "name": "Projects",
+ "text": "Add, view, and edit projects.",
+ }, {
+ "id": "users",
+ "icon": "fa-users",
+ "name": "Users",
+ "text": "Add, view, and edit users and permissions.",
+ }, {
+ "id": "settings",
+ "icon": "fa-cog",
+ "name": "Settings",
+ "text": "Configure site settings.",
+ }]
+
+ def initialize(models : Models)
+ super(models, SQL)
+ end
+
+ def get_tabs
+ TABS
+ end
+end