From 8828d7189173dfdf8c88082cf69d1eb74d89e9a7 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 28 Jul 2016 08:27:41 -0400 Subject: refactor settings panes, simplify admin page --- src/views/panes/admin/posts.ecr | 2 +- src/views/panes/admin/settings.ecr | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/views/panes/admin/settings.ecr (limited to 'src/views/panes/admin') diff --git a/src/views/panes/admin/posts.ecr b/src/views/panes/admin/posts.ecr index 5e6571d..5b8e669 100644 --- a/src/views/panes/admin/posts.ecr +++ b/src/views/panes/admin/posts.ecr @@ -33,7 +33,7 @@ :type => "divider", }] + %i{blog page project}.map { |id| # get post type - post_type = Guff::Views::AdminPageView::POST_TYPES[id] + post_type = Guff::POST_TYPES[id] { :id => post_type[:id], diff --git a/src/views/panes/admin/settings.ecr b/src/views/panes/admin/settings.ecr new file mode 100644 index 0000000..0824ce8 --- /dev/null +++ b/src/views/panes/admin/settings.ecr @@ -0,0 +1,23 @@ +
+
+
+
+
+ +
+ +
+
<%= + panes + %>
+
+
+
+
+
-- cgit v1.2.3