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 ++++++++++++ src/views/panes/settings/backups.ecr | 16 ++++++++ src/views/panes/settings/general.ecr | 16 ++++++++ src/views/panes/settings/import.ecr | 16 ++++++++ src/views/panes/settings/sites.ecr | 16 ++++++++ src/views/panes/settings/themes.ecr | 16 ++++++++ src/views/panes/settings/users.ecr | 73 ++++++++++++++++++++++++++++++++++++ 8 files changed, 177 insertions(+), 1 deletion(-) create mode 100644 src/views/panes/admin/settings.ecr create mode 100644 src/views/panes/settings/backups.ecr create mode 100644 src/views/panes/settings/general.ecr create mode 100644 src/views/panes/settings/import.ecr create mode 100644 src/views/panes/settings/sites.ecr create mode 100644 src/views/panes/settings/themes.ecr create mode 100644 src/views/panes/settings/users.ecr (limited to 'src/views/panes') 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 + %>
+
+
+
+
+
diff --git a/src/views/panes/settings/backups.ecr b/src/views/panes/settings/backups.ecr new file mode 100644 index 0000000..a9f4fc9 --- /dev/null +++ b/src/views/panes/settings/backups.ecr @@ -0,0 +1,16 @@ +
+
+
+
+ +
+

+ TODO: backups +

+
+
+
diff --git a/src/views/panes/settings/general.ecr b/src/views/panes/settings/general.ecr new file mode 100644 index 0000000..65fba81 --- /dev/null +++ b/src/views/panes/settings/general.ecr @@ -0,0 +1,16 @@ +
+
+
+
+ +
+

+ TODO: general settings +

+
+
+
diff --git a/src/views/panes/settings/import.ecr b/src/views/panes/settings/import.ecr new file mode 100644 index 0000000..fe8e94f --- /dev/null +++ b/src/views/panes/settings/import.ecr @@ -0,0 +1,16 @@ +
+
+
+
+ +
+

+ TODO: import +

+
+
+
diff --git a/src/views/panes/settings/sites.ecr b/src/views/panes/settings/sites.ecr new file mode 100644 index 0000000..774a023 --- /dev/null +++ b/src/views/panes/settings/sites.ecr @@ -0,0 +1,16 @@ +
+
+
+
+ +
+

+ TODO: sites settings +

+
+
+
diff --git a/src/views/panes/settings/themes.ecr b/src/views/panes/settings/themes.ecr new file mode 100644 index 0000000..a88f24e --- /dev/null +++ b/src/views/panes/settings/themes.ecr @@ -0,0 +1,16 @@ +
+
+
+
+ +
+

+ TODO: themes +

+
+
+
diff --git a/src/views/panes/settings/users.ecr b/src/views/panes/settings/users.ecr new file mode 100644 index 0000000..87ca397 --- /dev/null +++ b/src/views/panes/settings/users.ecr @@ -0,0 +1,73 @@ +
+
+
+ +
+ + + +
+ + + Loading... + +
+
+
-- cgit v1.2.3