aboutsummaryrefslogtreecommitdiff
path: root/src/guff/models/tab.cr
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-04-03 03:29:32 -0400
committerPaul Duncan <pabs@pablotron.org>2016-04-03 03:29:32 -0400
commit50ac423f6e3be7566c1106647158e81b6eaae44a (patch)
tree5aeddba59f956528ef4e4715940441a1619394c0 /src/guff/models/tab.cr
parentfda56e40b460ab06b6abee98ae1bc7d5f5847c9f (diff)
downloadold-guff-50ac423f6e3be7566c1106647158e81b6eaae44a.tar.bz2
old-guff-50ac423f6e3be7566c1106647158e81b6eaae44a.zip
remove tinymce
Diffstat (limited to 'src/guff/models/tab.cr')
-rw-r--r--src/guff/models/tab.cr82
1 files changed, 53 insertions, 29 deletions
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