radiant-archive_tabs-extension 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -17,7 +17,7 @@ It's a monkey patch so use at your own risk.
17
17
  Add the gem to your Gemfile :
18
18
 
19
19
  ```
20
- gem "radiant-filter_toolbars-extension", "~> 1.0.4"
20
+ gem "radiant-filter_toolbars-extension", "~> 1.0.5"
21
21
  ```
22
22
 
23
23
  Update your bundle :
@@ -26,13 +26,6 @@ Update your bundle :
26
26
  $ bundle install
27
27
  ```
28
28
 
29
- Ensure Archive Tabs loads last :
30
-
31
- ```
32
- config.extensions = [ :all, :archive_tabs ]
33
- ```
34
-
35
-
36
29
  ## To Do
37
30
 
38
31
  - Add a search filter
@@ -1,6 +1,4 @@
1
- require 'radiant-archive_tabs-extension/application_helper'
2
- require 'radiant-archive_tabs-extension/admin/node_helper'
3
- require 'radiant-archive_tabs-extension/admin/pages_controller'
1
+ require 'radiant-archive_tabs-extension'
4
2
 
5
3
  class ArchiveTabsExtension < Radiant::Extension
6
4
  version RadiantArchiveTabsExtension::VERSION
@@ -8,9 +6,9 @@ class ArchiveTabsExtension < Radiant::Extension
8
6
  url RadiantArchiveTabsExtension::URL
9
7
 
10
8
  def activate
11
- ApplicationHelper.send :include, RadiantArchiveTabsExtension::ApplicationHelper
12
- Admin::NodeHelper.send :include, RadiantArchiveTabsExtension::Admin::NodeHelper
13
- Admin::PagesController.send :include, RadiantArchiveTabsExtension::Admin::PagesController
9
+ ApplicationHelper.send :include, ArchiveTabs::ApplicationHelper
10
+ Admin::NodeHelper.send :include, ArchiveTabs::Admin::NodeHelper
11
+ Admin::PagesController.send :include, ArchiveTabs::Admin::PagesController
14
12
 
15
13
  admin.page.edit.add :main, 'redirect_cancel', :after => 'form_bottom'
16
14
 
@@ -1,4 +1,4 @@
1
- module RadiantArchiveTabsExtension
1
+ module ArchiveTabs
2
2
  module Admin
3
3
  module NodeHelper
4
4
  def self.included(base)
@@ -1,4 +1,4 @@
1
- module RadiantArchiveTabsExtension
1
+ module ArchiveTabs
2
2
  module Admin
3
3
  module PagesController
4
4
  def self.included(base)
@@ -17,10 +17,11 @@ module RadiantArchiveTabsExtension
17
17
 
18
18
  def load_models_with_archive
19
19
  if params[:page_id]
20
+ acts_as_tree_options
21
+
20
22
  self.model = Page.find(params[:page_id])
21
23
 
22
24
  if archive_page?(self.model)
23
- acts_as_tree_options
24
25
  self.class.paginate_models :per_page => Radiant.config['admin.pagination.per_page']
25
26
  end
26
27
  end
@@ -1,4 +1,4 @@
1
- module RadiantArchiveTabsExtension
1
+ module ArchiveTabs
2
2
  module ApplicationHelper
3
3
  def self.included(base)
4
4
  base.class_eval do
@@ -1,5 +1,5 @@
1
1
  module RadiantArchiveTabsExtension
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  SUMMARY = "Archive tabs extension for Radiant CMS"
4
4
  DESCRIPTION = "Display Archive pages in their own paginated tab."
5
5
  URL = "https://github.com/jsntv200/radiant-archive_tabs-extension"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-archive_tabs-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Taylor
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-19 00:00:00 +10:00
18
+ date: 2011-09-01 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -33,9 +33,9 @@ files:
33
33
  - app/views/admin/pages/archive_index.html.haml
34
34
  - archive_tabs_extension.rb
35
35
  - config/locales/en.yml
36
- - lib/radiant-archive_tabs-extension/admin/node_helper.rb
37
- - lib/radiant-archive_tabs-extension/admin/pages_controller.rb
38
- - lib/radiant-archive_tabs-extension/application_helper.rb
36
+ - lib/archive_tabs/admin/node_helper.rb
37
+ - lib/archive_tabs/admin/pages_controller.rb
38
+ - lib/archive_tabs/application_helper.rb
39
39
  - lib/radiant-archive_tabs-extension.rb
40
40
  - lib/tasks/archive_tabs_extension_tasks.rake
41
41
  - radiant-archive_tabs-extension.gemspec