aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-04-02 23:18:22 -0400
committerPaul Duncan <pabs@pablotron.org>2016-04-02 23:18:22 -0400
commitd8bc1820893d343359a5a8d973cac1db761cffde (patch)
treec208b81f45021af61fefca2c7017b804fefc782c
parent6ff8fd4e02cb962c9e2d1e90691324c67f58c4e8 (diff)
downloadold-guff-d8bc1820893d343359a5a8d973cac1db761cffde.tar.bz2
old-guff-d8bc1820893d343359a5a8d973cac1db761cffde.zip
simplify tabs
-rw-r--r--src/guff/models/tab.cr30
-rw-r--r--src/guff/views/ecrs/test/auth.ecr24
2 files changed, 31 insertions, 23 deletions
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 @@
</div><!-- panel -->
</div><!-- #tab-home -->
- <div id='tab-pane-blog' class='tab-pane' role='tabpanel'>
+ <div id='tab-pane-posts' class='tab-pane' role='tabpanel'>
<div class='panel panel-default'>
<div class='panel-body'>
<p>
- TODO: blog
+ TODO: posts
</p>
</div><!-- panel-body -->
</div><!-- panel -->
@@ -52,26 +52,6 @@
</div><!-- panel -->
</div><!-- #tab-pane-files -->
- <div id='tab-pane-pages' class='tab-pane' role='tabpanel'>
- <div class='panel panel-default'>
- <div class='panel-body'>
- <p>
- TODO: pages
- </p>
- </div><!-- panel-body -->
- </div><!-- panel -->
- </div><!-- #tab-pane-pages -->
-
- <div id='tab-pane-projects' class='tab-pane' role='tabpanel'>
- <div class='panel panel-default'>
- <div class='panel-body'>
- <p>
- TODO: projects
- </p>
- </div><!-- panel-body -->
- </div><!-- panel -->
- </div><!-- #tab-pane-projects -->
-
<div id='tab-pane-users' class='tab-pane' role='tabpanel'>
<div class='panel panel-default'>
<div class='panel-heading'>