From 7f994c65451a90d55cfd8ca6f863d2f7e475e8fb Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 28 Jul 2016 00:30:33 -0400 Subject: mv admin-page to admin/page --- src/views/admin-page.ecr | 1111 ---------------------------------------------- src/views/admin/page.ecr | 1111 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 1111 insertions(+), 1111 deletions(-) delete mode 100644 src/views/admin-page.ecr create mode 100644 src/views/admin/page.ecr (limited to 'src/views') diff --git a/src/views/admin-page.ecr b/src/views/admin-page.ecr deleted file mode 100644 index c06b5f0..0000000 --- a/src/views/admin-page.ecr +++ /dev/null @@ -1,1111 +0,0 @@ - - - - - <%= h(TITLE) %> - - <%= - styles %w{ - assets/font-awesome-4.5.0/css/font-awesome.min.css - assets/bootstrap-3.3.6/css/bootstrap.min.css - assets/bootstrap-3.3.6/css/bootstrap-theme.min.css - assets/css/admin.css - } - %> - - - - - -
-
- - -
-
-
-
-
-
<%= - new_post_button - %>
-
-
- -
-

- TODO: home -

-
-
-
- -
-
-
-
-
<%= - new_post_button - %>
- -
-    -
- -
<%= - dropdown( - id: "posts-filter-type", - css: "posts-filter-menu", - - name: "Type", - text: "Filter posts by type.", - - icon: "", - default: "all", - - items: [{ - :id => "all", - :name => "All", - :text => "Show all types.", - }, { - :type => "divider", - }] + %i{blog page project}.map { |id| - name = POST_TYPES[id][:name] - - { - :id => POST_TYPES[id][:id], - :name => name, - :icon => POST_TYPES[id][:icon], - :text => "Show #{name}s.", - } - } - ) - %>
- -
<%= - dropdown( - id: "posts-filter-state", - css: "posts-filter-menu", - - name: "State", - text: "Filter by post state.", - - icon: "", - default: "default", - - items: [{ - :id => "default", - :name => "Default", - :text => "Show drafts and posted items.", - }, { - :type => "divider", - }].concat(states_menu_items), - ) - %>
- -
<%= - dropdown( - id: "posts-filter-site", - css: "posts-filter-menu", - - name: "Site", - text: "Filter by site.", - - icon: "", - default: "all", - - items: [{ - :id => "all", - :name => "All", - :text => "Show all sites.", - }, { - :type => "divider", - }].concat(sites_menu_items), - ) - %>
- -
<%= - dropdown( - id: "posts-filter-user", - css: "posts-filter-menu", - - name: "Author", - text: "Filter by author.", - - icon: "", - default: "all", - - items: [{ - :id => "all", - :name => "All", - :text => "Show all authors.", - }, { - :type => "divider", - }].concat(authors_menu_items), - ) - %>
- -
- - - -
- - -
-
- - - - - - - - - - - - - - - - - - -
 NameSiteURL / SlugAuthorCreatedPosted
-
-
- -
-
- - -
-
-
-
- -
-
-
-
- -
-
-
-
-
- -
- -
-
-
-
-
-
- -
-

- TODO: general settings -

-
-
-
- -
-
-
- -
- - - -
- - - Loading... - -
-
-
- -
-
-
-
- -
-

- TODO: themes -

-
-
-
- -
-
-
-
- -
-

- TODO: sites settings -

-
-
-
- -
-
-
-
- -
-

- TODO: backups -

-
-
-
- -
-
-
-
- -
-

- TODO: import -

-
-
-
-
-
-
-
-
-
-
-
-
- - <%= dialogs %> - - - - - - - - - - - <%= - scripts %w{ - assets/jquery-2.2.1.min.js - assets/luigi-template-0.4.1.min.js - assets/js/util.js - assets/bootstrap-3.3.6/js/bootstrap.min.js - assets/ckeditor-4.5.8-custom/ckeditor.js - assets/js/search-field.js - assets/js/dropdown.js - assets/js/admin/tabs/users.js - assets/js/admin/tabs/posts.js - assets/js/admin/tabs/files.js - assets/js/admin/dialogs/user-add.js - assets/js/admin/dialogs/user-edit.js - assets/js/admin/dialogs/post-edit.js - assets/js/admin/dialogs/blog-edit.js - assets/js/admin/dialogs/page-edit.js - assets/js/admin/dialogs/project-edit.js - } - %> - diff --git a/src/views/admin/page.ecr b/src/views/admin/page.ecr new file mode 100644 index 0000000..c06b5f0 --- /dev/null +++ b/src/views/admin/page.ecr @@ -0,0 +1,1111 @@ + + + + + <%= h(TITLE) %> + + <%= + styles %w{ + assets/font-awesome-4.5.0/css/font-awesome.min.css + assets/bootstrap-3.3.6/css/bootstrap.min.css + assets/bootstrap-3.3.6/css/bootstrap-theme.min.css + assets/css/admin.css + } + %> + + + + + +
+
+ + +
+
+
+
+
+
<%= + new_post_button + %>
+
+
+ +
+

+ TODO: home +

+
+
+
+ +
+
+
+
+
<%= + new_post_button + %>
+ +
+    +
+ +
<%= + dropdown( + id: "posts-filter-type", + css: "posts-filter-menu", + + name: "Type", + text: "Filter posts by type.", + + icon: "", + default: "all", + + items: [{ + :id => "all", + :name => "All", + :text => "Show all types.", + }, { + :type => "divider", + }] + %i{blog page project}.map { |id| + name = POST_TYPES[id][:name] + + { + :id => POST_TYPES[id][:id], + :name => name, + :icon => POST_TYPES[id][:icon], + :text => "Show #{name}s.", + } + } + ) + %>
+ +
<%= + dropdown( + id: "posts-filter-state", + css: "posts-filter-menu", + + name: "State", + text: "Filter by post state.", + + icon: "", + default: "default", + + items: [{ + :id => "default", + :name => "Default", + :text => "Show drafts and posted items.", + }, { + :type => "divider", + }].concat(states_menu_items), + ) + %>
+ +
<%= + dropdown( + id: "posts-filter-site", + css: "posts-filter-menu", + + name: "Site", + text: "Filter by site.", + + icon: "", + default: "all", + + items: [{ + :id => "all", + :name => "All", + :text => "Show all sites.", + }, { + :type => "divider", + }].concat(sites_menu_items), + ) + %>
+ +
<%= + dropdown( + id: "posts-filter-user", + css: "posts-filter-menu", + + name: "Author", + text: "Filter by author.", + + icon: "", + default: "all", + + items: [{ + :id => "all", + :name => "All", + :text => "Show all authors.", + }, { + :type => "divider", + }].concat(authors_menu_items), + ) + %>
+ +
+ + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + +
 NameSiteURL / SlugAuthorCreatedPosted
+
+
+ +
+
+ + +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+ +
+

+ TODO: general settings +

+
+
+
+ +
+
+
+ +
+ + + +
+ + + Loading... + +
+
+
+ +
+
+
+
+ +
+

+ TODO: themes +

+
+
+
+ +
+
+
+
+ +
+

+ TODO: sites settings +

+
+
+
+ +
+
+
+
+ +
+

+ TODO: backups +

+
+
+
+ +
+
+
+
+ +
+

+ TODO: import +

+
+
+
+
+
+
+
+
+
+
+
+
+ + <%= dialogs %> + + + + + + + + + + + <%= + scripts %w{ + assets/jquery-2.2.1.min.js + assets/luigi-template-0.4.1.min.js + assets/js/util.js + assets/bootstrap-3.3.6/js/bootstrap.min.js + assets/ckeditor-4.5.8-custom/ckeditor.js + assets/js/search-field.js + assets/js/dropdown.js + assets/js/admin/tabs/users.js + assets/js/admin/tabs/posts.js + assets/js/admin/tabs/files.js + assets/js/admin/dialogs/user-add.js + assets/js/admin/dialogs/user-edit.js + assets/js/admin/dialogs/post-edit.js + assets/js/admin/dialogs/blog-edit.js + assets/js/admin/dialogs/page-edit.js + assets/js/admin/dialogs/project-edit.js + } + %> + -- cgit v1.2.3