From d8bc1820893d343359a5a8d973cac1db761cffde Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 2 Apr 2016 23:18:22 -0400 Subject: simplify tabs --- src/guff/models/tab.cr | 30 +++++++++++++++++++++++++++++- src/guff/views/ecrs/test/auth.ecr | 24 ++---------------------- 2 files changed, 31 insertions(+), 23 deletions(-) (limited to 'src/guff') diff --git a/src/guff/models/tab.cr b/src/guff/models/tab.cr index 3fe5133..20dc478 100644 --- a/src/guff/models/tab.cr +++ b/src/guff/models/tab.cr @@ -2,7 +2,7 @@ class Guff::TabModel < Guff::Model SQL = TemplateCache.new({ } of Symbol => String) - TABS = [{ + OLD_TABS = [{ "id": "home", "css": "active", "icon": "fa-home", @@ -40,6 +40,34 @@ 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 posts, 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.", + }] + def initialize(models : Models) super(models, SQL) end diff --git a/src/guff/views/ecrs/test/auth.ecr b/src/guff/views/ecrs/test/auth.ecr index e377962..ca91e99 100644 --- a/src/guff/views/ecrs/test/auth.ecr +++ b/src/guff/views/ecrs/test/auth.ecr @@ -32,11 +32,11 @@ -
+

- TODO: blog + TODO: posts

@@ -52,26 +52,6 @@
-
-
-
-

- TODO: pages -

-
-
-
- -
-
-
-

- TODO: projects -

-
-
-
-
-- cgit v1.2.3