diff options
-rw-r--r-- | data/assets/js/admin/dialogs/post-edit.js | 3 | ||||
-rw-r--r-- | src/guff/views/dialogs/admin/blog-edit.cr | 6 | ||||
-rw-r--r-- | src/guff/views/dialogs/admin/page-edit.cr | 2 | ||||
-rw-r--r-- | src/guff/views/dialogs/admin/project-edit.cr | 10 | ||||
-rw-r--r-- | src/views/dialogs/admin/blog-edit.ecr | 2 | ||||
-rw-r--r-- | src/views/dialogs/admin/page-edit.ecr | 2 | ||||
-rw-r--r-- | 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,11 +15,17 @@ 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", :icon => "fa-calendar-o", 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 @@ %></ul><!-- nav --> <div class='tab-content'> + <br/> + <div id='blog-edit-pane-content' class='tab-pane active' diff --git a/src/views/dialogs/admin/page-edit.ecr b/src/views/dialogs/admin/page-edit.ecr index da1d3c2..51819ba 100644 --- a/src/views/dialogs/admin/page-edit.ecr +++ b/src/views/dialogs/admin/page-edit.ecr @@ -39,6 +39,8 @@ %></ul><!-- nav --> <div class='tab-content'> + <br/> + <div id='page-edit-pane-content' class='tab-pane active' diff --git a/src/views/dialogs/admin/project-edit.ecr b/src/views/dialogs/admin/project-edit.ecr index 1ca6e99..7f668f3 100644 --- a/src/views/dialogs/admin/project-edit.ecr +++ b/src/views/dialogs/admin/project-edit.ecr @@ -39,6 +39,8 @@ %></ul><!-- nav --> <div class='tab-content'> + <br/> + <div id='project-edit-pane-content' class='tab-pane active' @@ -186,78 +188,6 @@ </div><!-- row --> <div class='row'> - <div class='col-md-3'> - <ul class='nav nav-pills nav-stacked' role='tablist'><%= - repo_tabs - %></ul><!-- nav --> - </div><!-- col-md-3 --> - - <div class='col-md-9'> - <div class='tab-content'> - <div - id='project-edit-repo-pane-releases' - class='tab-pane active' - role='tabpanel' - > - <div class='panel panel-default'> - <div class='panel-heading hidden'> - <b> - Releases - </b> - - <a - href='#' - id='project-edit-releases-reload' - class='btn btn-default btn-xs pull-right' - title='Reload list of releases.' - > - <i class='fa fa-fw fa-refresh'></i> - </a> - </div><!-- panel-heading --> - - <div - id='project-edit-releases' - class='list-group' - style='height: 200px;' - > - </div><!-- list-group --> - </div><!-- panel --> - </div><!-- tab-pane --> - - <div - id='project-edit-repo-pane-update-log' - class='tab-pane' - role='tabpanel' - > - <div class='panel panel-default'> - <div class='panel-heading hidden'> - <b> - Update Log - </b> - - <a - href='#' - id='project-edit-update-log-reload' - class='btn btn-default btn-xs pull-right' - title='Refresh update log.' - > - <i class='fa fa-fw fa-refresh'></i> - </a> - </div><!-- panel-heading --> - - <div - id='project-edit-update-log' - class='list-group' - style='height: 200px;' - > - </div><!-- list-group --> - </div><!-- panel --> - </div><!-- tab-pane --> - </div><!-- tab-content --> - </div><!-- col-md-9 --> - </div><!-- row --> - - <div class='row'> <div class='col-md-6'> <div class='form-group'> <label for='project-edit-tag-prefix'> @@ -315,6 +245,66 @@ </div><!-- tab-pane --> <div + id='project-edit-pane-releases' + class='tab-pane' + role='tabpanel' + > + <div class='panel panel-default'> + <div class='panel-heading hidden'> + <b> + Releases + </b> + + <a + href='#' + id='project-edit-releases-reload' + class='btn btn-default btn-xs pull-right' + title='Reload list of releases.' + > + <i class='fa fa-fw fa-refresh'></i> + </a> + </div><!-- panel-heading --> + + <div + id='project-edit-releases' + class='list-group' + style='height: 50vh;' + > + </div><!-- list-group --> + </div><!-- panel --> + </div><!-- tab-pane --> + + <div + id='project-edit-pane-update-log' + class='tab-pane' + role='tabpanel' + > + <div class='panel panel-default'> + <div class='panel-heading hidden'> + <b> + Update Log + </b> + + <a + href='#' + id='project-edit-update-log-reload' + class='btn btn-default btn-xs pull-right' + title='Refresh update log.' + > + <i class='fa fa-fw fa-refresh'></i> + </a> + </div><!-- panel-heading --> + + <div + id='project-edit-update-log' + class='list-group' + style='height: 50vh;' + > + </div><!-- list-group --> + </div><!-- panel --> + </div><!-- tab-pane --> + + <div id='project-edit-pane-dates' class='tab-pane' role='tabpanel' |