From 5b116449be1c5d0342ce197cbc2eab2c5d16b5aa Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 29 Jul 2016 15:19:58 -0400 Subject: move project releases to tab, misc editor cleanups --- data/assets/js/admin/dialogs/post-edit.js | 3 + src/guff/views/dialogs/admin/blog-edit.cr | 6 +- src/guff/views/dialogs/admin/page-edit.cr | 2 +- src/guff/views/dialogs/admin/project-edit.cr | 10 +- src/views/dialogs/admin/blog-edit.ecr | 2 + src/views/dialogs/admin/page-edit.ecr | 2 + src/views/dialogs/admin/project-edit.ecr | 134 +++++++++++++-------------- 7 files changed, 81 insertions(+), 78 deletions(-) diff --git a/data/assets/js/admin/dialogs/post-edit.js b/data/assets/js/admin/dialogs/post-edit.js index 01baba1..3b20c7a 100644 --- a/data/assets/js/admin/dialogs/post-edit.js +++ b/data/assets/js/admin/dialogs/post-edit.js @@ -60,6 +60,9 @@ jQuery(function($) { me.find('.modal-body').addClass('hidden'); me.find('.modal-body.loading-text').removeClass('hidden'); + // show content tab + me.find(p + 'tab-content').click(); + send(id + '/get', { post_id: me.data('post_id') }).always(function() { diff --git a/src/guff/views/dialogs/admin/blog-edit.cr b/src/guff/views/dialogs/admin/blog-edit.cr index ed5d11d..99953e2 100644 --- a/src/guff/views/dialogs/admin/blog-edit.cr +++ b/src/guff/views/dialogs/admin/blog-edit.cr @@ -10,19 +10,19 @@ class Guff::Views::Dialogs::Admin::BlogEdit < Guff::Views::Dialogs::Admin::PostE }, { :id => "category", :css => "", - :icon => "fa-list-ul", + :icon => "fa-share-alt", :name => "Category", :text => "View category tab.", }, { :id => "dates", - :css => "", + :css => "hidden", :icon => "fa-calendar-o", :name => "Dates", :text => "View dates tab.", }, { :id => "media", :css => "", - :icon => "fa-video-camera", + :icon => "fa-image", :name => "Media", :text => "View media tab.", }] diff --git a/src/guff/views/dialogs/admin/page-edit.cr b/src/guff/views/dialogs/admin/page-edit.cr index 10ad2b8..59fe5b1 100644 --- a/src/guff/views/dialogs/admin/page-edit.cr +++ b/src/guff/views/dialogs/admin/page-edit.cr @@ -15,7 +15,7 @@ class Guff::Views::Dialogs::Admin::PageEdit < Guff::Views::Dialogs::Admin::PostE :text => "View theme tab.", }, { :id => "dates", - :css => "", + :css => "hidden", :icon => "fa-calendar-o", :name => "Dates", :text => "View dates tab.", diff --git a/src/guff/views/dialogs/admin/project-edit.cr b/src/guff/views/dialogs/admin/project-edit.cr index 521fbbb..a518f9a 100644 --- a/src/guff/views/dialogs/admin/project-edit.cr +++ b/src/guff/views/dialogs/admin/project-edit.cr @@ -15,10 +15,16 @@ class Guff::Views::Dialogs::Admin::ProjectEdit < Guff::Views::Dialogs::Admin::Po :text => "View repository tab.", }, { :id => "releases", - :css => "hidden", - :icon => "fa-code-fork", + :css => "", + :icon => "fa-code", :name => "Releases", :text => "View releases tab.", + }, { + :id => "update-log", + :css => "hidden", + :icon => "fa-list-ul", + :name => "Update Log", + :text => "View update log tab.", }, { :id => "dates", :css => "hidden", diff --git a/src/views/dialogs/admin/blog-edit.ecr b/src/views/dialogs/admin/blog-edit.ecr index 53c0073..4b0f885 100644 --- a/src/views/dialogs/admin/blog-edit.ecr +++ b/src/views/dialogs/admin/blog-edit.ecr @@ -25,6 +25,8 @@ %>
+
+
+
+
+
+
-
-
- -
- -
-
-
-
- - -
-
-
-
- -
-
- - -
-
-
-
-
-
-
-
@@ -314,6 +244,66 @@
+
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+