From 50ac423f6e3be7566c1106647158e81b6eaae44a Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 3 Apr 2016 03:29:32 -0400 Subject: remove tinymce --- src/guff/models/tab.cr | 82 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 53 insertions(+), 29 deletions(-) (limited to 'src/guff/models/tab.cr') diff --git a/src/guff/models/tab.cr b/src/guff/models/tab.cr index 8d6428b..3649cdd 100644 --- a/src/guff/models/tab.cr +++ b/src/guff/models/tab.cr @@ -40,39 +40,63 @@ class Guff::TabModel < Guff::Model "text": "Configure site settings.", }] - TABS = [{ - "id": "home", - "css": "active", - "icon": "fa-home", - "name": "Home", - "text": "View home tab.", - }, { - "id": "posts", - "icon": "fa-cubes", - "name": "Posts", - "text": "Manage blog, pages, and projects.", - }, { - "id": "files", - "icon": "fa-files-o", - "name": "Files", - "text": "Manage files.", - }, { - "id": "users", - "icon": "fa-users", - "name": "Users", - "text": "Manage users and permissions.", - }, { - "id": "settings", - "icon": "fa-cog", - "name": "Settings", - "text": "Configure site settings.", - }] + TABS = { + admin: [{ + "id": "home", + "css": "active", + "icon": "fa-home", + "name": "Home", + "text": "View home tab.", + }, { + "id": "posts", + "icon": "fa-cubes", + "name": "Posts", + "text": "Manage blog, pages, and projects.", + }, { + "id": "files", + "icon": "fa-files-o", + "name": "Files", + "text": "Manage files.", + }, { + "id": "users", + "icon": "fa-users", + "name": "Users", + "text": "Manage users and permissions.", + }, { + "id": "settings", + "icon": "fa-cog", + "name": "Settings", + "text": "Configure site settings.", + }], + + post_new: [{ + "id": "type", + "icon": "", + "name": "Choose Post Type", + "text": "", + }, { + "id": "blog", + "icon": "", + "name": "Create Blog Post", + "text": "", + }, { + "id": "page", + "icon": "", + "name": "Create Page", + "text": "", + }, { + "id": "project", + "icon": "", + "name": "Create Project", + "text": "", + }], + } def initialize(models : Models) super(models, SQL) end - def get_tabs - TABS + def get_tabs(id : Symbol) + TABS[id] end end -- cgit v1.2.3