aboutsummaryrefslogtreecommitdiff
path: root/src/guff/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff/models')
-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