From bff93d5b6a46e6c996e43dc4d669a4514da87cc6 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 28 Jul 2016 02:10:45 -0400 Subject: refactor dialog and pane templates --- src/views/admin/dialogs/blog-edit.ecr | 166 --------- src/views/admin/dialogs/page-edit.ecr | 175 --------- src/views/admin/dialogs/project-edit.ecr | 179 ---------- src/views/admin/dialogs/user-add.ecr | 164 --------- src/views/admin/dialogs/user-edit.ecr | 178 ---------- src/views/admin/page.ecr | 588 ------------------------------- 6 files changed, 1450 deletions(-) delete mode 100644 src/views/admin/dialogs/blog-edit.ecr delete mode 100644 src/views/admin/dialogs/page-edit.ecr delete mode 100644 src/views/admin/dialogs/project-edit.ecr delete mode 100644 src/views/admin/dialogs/user-add.ecr delete mode 100644 src/views/admin/dialogs/user-edit.ecr delete mode 100644 src/views/admin/page.ecr (limited to 'src/views/admin') diff --git a/src/views/admin/dialogs/blog-edit.ecr b/src/views/admin/dialogs/blog-edit.ecr deleted file mode 100644 index bbe946f..0000000 --- a/src/views/admin/dialogs/blog-edit.ecr +++ /dev/null @@ -1,166 +0,0 @@ - diff --git a/src/views/admin/dialogs/page-edit.ecr b/src/views/admin/dialogs/page-edit.ecr deleted file mode 100644 index c0b30e8..0000000 --- a/src/views/admin/dialogs/page-edit.ecr +++ /dev/null @@ -1,175 +0,0 @@ - diff --git a/src/views/admin/dialogs/project-edit.ecr b/src/views/admin/dialogs/project-edit.ecr deleted file mode 100644 index 59c89d4..0000000 --- a/src/views/admin/dialogs/project-edit.ecr +++ /dev/null @@ -1,179 +0,0 @@ - diff --git a/src/views/admin/dialogs/user-add.ecr b/src/views/admin/dialogs/user-add.ecr deleted file mode 100644 index 198ab69..0000000 --- a/src/views/admin/dialogs/user-add.ecr +++ /dev/null @@ -1,164 +0,0 @@ - diff --git a/src/views/admin/dialogs/user-edit.ecr b/src/views/admin/dialogs/user-edit.ecr deleted file mode 100644 index e0e39c2..0000000 --- a/src/views/admin/dialogs/user-edit.ecr +++ /dev/null @@ -1,178 +0,0 @@ - diff --git a/src/views/admin/page.ecr b/src/views/admin/page.ecr deleted file mode 100644 index c9c8a24..0000000 --- a/src/views/admin/page.ecr +++ /dev/null @@ -1,588 +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), - ) - %>
- -
- - - -
- - -
-
- - - - - - - - - - - - - - - - - - -
 NameSiteSlugAuthorCreatedPosted
-
-
- -
-
- - -
-
-
-
- -
-
-
-
- -
-
-
-
-
- -
- -
-
-
-
-
-
- -
-

- 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