forge-cli 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -3
- data/lib/forge-cli.rb +3 -0
- data/lib/forge-cli/application_creator.rb +33 -0
- data/lib/forge-cli/custom_file_copier.rb +27 -0
- data/lib/forge-cli/forge_addon_requirer.rb +14 -0
- data/lib/forge-cli/logo.txt +11 -0
- data/lib/forge-cli/module_installer.rb +31 -5
- data/lib/forge-cli/modules/banners/forge_routes.rb +3 -0
- data/lib/forge-cli/modules/banners/manifest.yml +8 -0
- data/lib/forge-cli/modules/banners/post_hooks.rb +12 -0
- data/lib/forge-cli/modules/banners/routes.rb +15 -0
- data/lib/forge-cli/modules/base/forge_routes.rb +5 -0
- data/lib/forge-cli/modules/base/manifest.yml +7 -12
- data/lib/forge-cli/modules/base/post_hooks.rb +10 -29
- data/lib/forge-cli/modules/dispatches/forge_routes.rb +6 -0
- data/lib/forge-cli/modules/dispatches/manifest.yml +25 -0
- data/lib/forge-cli/modules/dispatches/post_hooks.rb +13 -0
- data/lib/forge-cli/modules/dispatches/routes.rb +4 -0
- data/lib/forge-cli/modules/ecommerce/forge_routes.rb +33 -0
- data/lib/forge-cli/modules/ecommerce/manifest.yml +49 -1
- data/lib/forge-cli/modules/ecommerce/post_hooks.rb +33 -0
- data/lib/forge-cli/modules/ecommerce/routes.rb +43 -0
- data/lib/forge-cli/modules/events/forge_routes.rb +1 -0
- data/lib/forge-cli/modules/events/manifest.yml +12 -0
- data/lib/forge-cli/modules/events/post_hooks.rb +16 -0
- data/lib/forge-cli/modules/events/routes.rb +4 -0
- data/lib/forge-cli/modules/galleries/forge_routes.rb +3 -0
- data/lib/forge-cli/modules/galleries/manifest.yml +9 -0
- data/lib/forge-cli/modules/galleries/post_hooks.rb +11 -0
- data/lib/forge-cli/modules/posts/forge_routes.rb +6 -0
- data/lib/forge-cli/modules/posts/post_hooks.rb +30 -0
- data/lib/forge-cli/modules/posts/routes.rb +15 -0
- data/lib/forge-cli/modules/subscribers/forge_routes.rb +4 -0
- data/lib/forge-cli/modules/subscribers/manifest.yml +14 -0
- data/lib/forge-cli/modules/subscribers/post_hooks.rb +12 -0
- data/lib/forge-cli/modules/subscribers/routes.rb +1 -0
- data/lib/forge-cli/modules/videos/forge_routes.rb +4 -0
- data/lib/forge-cli/modules/videos/manifest.yml +9 -0
- data/lib/forge-cli/modules/videos/post_hooks.rb +14 -0
- data/lib/forge-cli/modules/videos/routes.rb +15 -0
- data/lib/forge-cli/output.rb +10 -0
- data/lib/forge-cli/post_hooks.rb +24 -11
- data/lib/forge-cli/version.rb +1 -1
- data/lib/forge/Gemfile +2 -2
- data/lib/forge/app/controllers/application_controller.rb +2 -2
- data/lib/forge/app/controllers/events_controller.rb +2 -2
- data/lib/forge/app/controllers/hosted_payment_controller.rb +1 -1
- data/lib/forge/app/controllers/integrated_payment_controller.rb +1 -1
- data/lib/forge/app/controllers/orders_controller.rb +1 -1
- data/lib/forge/app/form_builders/forge_form_builder.rb +2 -2
- data/lib/forge/app/helpers/form_helper.rb +2 -2
- data/lib/forge/app/models/event.rb +4 -0
- data/lib/forge/app/models/order.rb +3 -3
- data/lib/forge/app/models/order_transaction.rb +1 -1
- data/lib/forge/app/models/post.rb +5 -0
- data/lib/forge/app/models/video.rb +24 -19
- data/lib/forge/app/views/forge/dispatches/show.html.haml +2 -2
- data/lib/forge/app/views/forge/help_topics/show.html.haml +4 -4
- data/lib/forge/app/views/forge/settings/show.html.haml +2 -2
- data/lib/forge/app/views/forge/shared/_seo_fields.html.haml +1 -1
- data/lib/forge/app/views/forge/shared/menu_items/_subscribers.html.haml +8 -0
- data/lib/forge/app/views/hosted_payment/_paypal.html.haml +3 -3
- data/lib/forge/app/views/hosted_payment/billing.html.haml +2 -2
- data/lib/forge/app/views/integrated_payment/_credit_card_form.html.haml +3 -3
- data/lib/forge/app/views/integrated_payment/billing.html.haml +3 -3
- data/lib/forge/app/views/layouts/application.html.haml +1 -1
- data/lib/forge/app/views/layouts/forge.html.haml +1 -1
- data/lib/forge/app/views/orders/paid.html.haml +3 -3
- data/lib/forge/config/initializers/ecommerce.rb +2 -2
- data/lib/forge/config/initializers/forge.rb +33 -0
- data/lib/forge/config/routes.rb +2 -4
- data/lib/forge/db/migrate/20130404140735_create_base_forge.rb +187 -0
- data/lib/forge/db/migrate/20130405172025_create_post_categories.rb +1 -1
- data/lib/forge/db/migrate/20130405172026_create_addresses.rb +28 -0
- data/lib/forge/db/migrate/20130405172027_create_countries.rb +20 -0
- data/lib/forge/db/migrate/20130405172028_create_orders.rb +22 -0
- data/lib/forge/db/migrate/20130405172029_create_order_transactions.rb +22 -0
- data/lib/forge/db/migrate/20130405172030_create_products.rb +34 -0
- data/lib/forge/db/migrate/20130405172031_create_product_categories.rb +20 -0
- data/lib/forge/db/migrate/20130405172032_create_product_images.rb +20 -0
- data/lib/forge/db/migrate/20130405172033_create_provinces.rb +19 -0
- data/lib/forge/db/migrate/20130405172034_create_sales.rb +18 -0
- data/lib/forge/db/migrate/20130405172035_create_tax_rates.rb +19 -0
- data/lib/forge/db/migrate/20130405172036_create_banners.rb +20 -0
- data/lib/forge/db/migrate/20130405172037_create_videos.rb +33 -0
- data/lib/forge/db/migrate/20130405172038_create_events.rb +18 -0
- data/lib/forge/db/migrate/20130405172039_create_dispatches.rb +98 -0
- data/lib/forge/db/migrate/20130405172040_create_subscribers copy.rb +32 -0
- data/lib/forge/db/migrate/20130405172041_create_galleries.rb +29 -0
- data/lib/forge/lib/assets/stylesheets/forge/dispatches.css.scss +10 -1
- data/lib/forge/lib/forge.rb +12 -4
- data/lib/forge/{config/initializers → lib/forge}/can_be_foreign.rb +0 -0
- data/lib/forge/{config/initializers → lib/forge}/can_have_comments.rb +0 -0
- data/lib/forge/{config/initializers → lib/forge}/can_use_asset.rb +0 -0
- data/lib/forge/lib/forge/config/ecommerce.rb +55 -0
- data/lib/forge/lib/forge/config/events.rb +29 -0
- data/lib/forge/lib/forge/config/videos.rb +20 -0
- data/lib/forge/{config/initializers → lib/forge}/reorderable.rb +0 -0
- data/lib/forge/{config/initializers/forge/controllers → lib/forge/shared_controller_methods}/ecommerce.rb +1 -3
- data/lib/forge/{config/initializers/forge/controllers → lib/forge/shared_controller_methods}/posts.rb +0 -2
- data/lib/forge/lib/generators/forge/i18n_migrations/i18n_migrations_generator.rb +3 -3
- data/lib/forge/lib/tasks/forge.rake +1 -1
- data/lib/forge/spec/integration/shopping_spec.rb +9 -9
- data/lib/forge/spec/models/order_spec.rb +5 -5
- metadata +169 -120
- data/forge-cli.rdoc +0 -5
- data/lib/forge/app/controllers/product_images_controller.rb +0 -2
- data/lib/forge/config/ferret_server.yml +0 -24
- data/lib/forge/db/migrate/20130404140735_create_assets.rb +0 -24
- data/lib/forge/db/migrate/20130404141259_create_comments.rb +0 -40
- data/lib/forge/db/migrate/20130404142157_create_help_topics.rb +0 -18
- data/lib/forge/db/migrate/20130404143601_create_settings.rb +0 -18
- data/lib/forge/db/migrate/20130404145209_create_roles.rb +0 -22
- data/lib/forge/db/migrate/20130404145329_create_taggings.rb +0 -25
- data/lib/forge/db/migrate/20130404151730_create_users.rb +0 -30
- data/lib/forge/db/migrate/20130405172022_create_pages.rb +0 -35
- data/lib/forge/lib/active_form.rb +0 -12
- data/lib/forge/lib/forge/settings.rb +0 -4
@@ -1,2 +1,50 @@
|
|
1
1
|
files:
|
2
|
-
- '
|
2
|
+
- 'app/controllers/products_controller.rb'
|
3
|
+
- 'app/controllers/integrated_payment_controller.rb'
|
4
|
+
- 'app/controllers/orders_controller.rb'
|
5
|
+
- 'app/controllers/hosted_payment_controller.rb'
|
6
|
+
- 'app/controllers/countries_controller.rb'
|
7
|
+
- 'app/controllers/forge/countries_controller.rb'
|
8
|
+
- 'app/controllers/forge/orders_controller.rb'
|
9
|
+
- 'app/controllers/forge/product_categories_controller.rb'
|
10
|
+
- 'app/controllers/forge/products_controller.rb'
|
11
|
+
- 'app/controllers/forge/sales_controller.rb'
|
12
|
+
- 'app/controllers/forge/tax_rates_controller.rb'
|
13
|
+
- 'app/models/address.rb'
|
14
|
+
- 'app/models/country.rb'
|
15
|
+
- 'app/models/order.rb'
|
16
|
+
- 'app/models/order_transaction.rb'
|
17
|
+
- 'app/models/product.rb'
|
18
|
+
- 'app/models/product_category.rb'
|
19
|
+
- 'app/models/product_image.rb'
|
20
|
+
- 'app/models/province.rb'
|
21
|
+
- 'app/models/sale.rb'
|
22
|
+
- 'app/models/tax_rate.rb'
|
23
|
+
- 'app/helpers/orders_helper.rb'
|
24
|
+
- 'app/mailers/receipt_mailer.rb'
|
25
|
+
- 'app/views/hosted_payment'
|
26
|
+
- 'app/views/integrated_payment'
|
27
|
+
- 'app/views/orders'
|
28
|
+
- 'app/views/products'
|
29
|
+
- 'app/views/receipt_mailer'
|
30
|
+
- 'app/views/forge/countries'
|
31
|
+
- 'app/views/forge/orders'
|
32
|
+
- 'app/views/forge/product_categories'
|
33
|
+
- 'app/views/forge/products'
|
34
|
+
- 'app/views/forge/sales'
|
35
|
+
- 'app/views/forge/tax_rates'
|
36
|
+
- 'config/initializers/forge/controllers/ecommerce.rb'
|
37
|
+
- 'lib/models/order'
|
38
|
+
- 'lib/forge/config/ecommerce.rb'
|
39
|
+
|
40
|
+
migrations:
|
41
|
+
- create_addresses
|
42
|
+
- create_countries
|
43
|
+
- create_orders
|
44
|
+
- create_order_transactions
|
45
|
+
- create_products
|
46
|
+
- create_product_categories
|
47
|
+
- create_product_images
|
48
|
+
- create_provinces
|
49
|
+
- create_sales
|
50
|
+
- create_tax_rates
|
@@ -0,0 +1,33 @@
|
|
1
|
+
class ForgeCLI::EcommercePostHooks < ForgeCLI::PostHooks
|
2
|
+
def run!
|
3
|
+
STDOUT.puts "Adding Routes..."
|
4
|
+
ri = ForgeCLI::RouteInstaller.new(@app, module_path)
|
5
|
+
ri.install_routes
|
6
|
+
ri.install_routes(:forge)
|
7
|
+
|
8
|
+
STDOUT.puts "Adding eCommerce controller methods..."
|
9
|
+
content = app_controller_content.gsub(
|
10
|
+
'class ApplicationController < ActionController::Base',
|
11
|
+
"class ApplicationController < ActionController::Base\n include Forge::Controllers::ECommerce\n"
|
12
|
+
)
|
13
|
+
File.open(app_controller_path, 'w') do |f|
|
14
|
+
f.puts content
|
15
|
+
end
|
16
|
+
|
17
|
+
STDOUT.puts "Adding config requires..."
|
18
|
+
require_addon(:ecommerce)
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
def module_path
|
23
|
+
File.dirname(__FILE__)
|
24
|
+
end
|
25
|
+
|
26
|
+
def app_controller_path
|
27
|
+
File.join(@app, 'app', 'controllers', 'application_controller.rb')
|
28
|
+
end
|
29
|
+
|
30
|
+
def app_controller_content
|
31
|
+
@app_controller_content ||= File.read(app_controller_path)
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# SHOPPING & E-ECOMMERCE - FRONT END
|
2
|
+
# ==================================
|
3
|
+
|
4
|
+
# Order routes
|
5
|
+
# ------------
|
6
|
+
# new & create: not used, orders are created automatically when user commences shopping.
|
7
|
+
# edit & update: refers to the contents of the order (the line items)
|
8
|
+
# checkout: let's the user view their order, make any changes as needed before paying
|
9
|
+
|
10
|
+
# Line item routes
|
11
|
+
# ----------------
|
12
|
+
# These belong to orders and are handled as additions or removals from orders, as such, they don't
|
13
|
+
# really need all of the standard views and actions.
|
14
|
+
|
15
|
+
resources :products, :only => [:index, :show] do
|
16
|
+
collection do
|
17
|
+
get :preview
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
resources :addresses, :except => [:index, :show, :destroy]
|
22
|
+
|
23
|
+
resources :orders, :only => [:update] do
|
24
|
+
member do
|
25
|
+
delete 'remove_from_cart'
|
26
|
+
get 'paid'
|
27
|
+
end
|
28
|
+
collection do
|
29
|
+
post 'add_to_cart'
|
30
|
+
get 'cancel', 'get_cart'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
match 'orders/checkout' => 'orders#checkout_get', :via => :get
|
35
|
+
match 'orders/checkout' => 'orders#checkout_post', :via => :post
|
36
|
+
|
37
|
+
get "integrated_payment/billing"
|
38
|
+
post "integrated_payment/pay"
|
39
|
+
get "hosted_payment/billing"
|
40
|
+
post "hosted_payment/notify"
|
41
|
+
|
42
|
+
# END SHOPPING & E-ECOMMERCE - FRONT END
|
43
|
+
# ======================================
|
@@ -0,0 +1 @@
|
|
1
|
+
resources :events, :except => [:show]
|
@@ -0,0 +1,12 @@
|
|
1
|
+
files:
|
2
|
+
- app/controllers/events_controller.rb
|
3
|
+
- app/views/events
|
4
|
+
- app/controllers/forge/events_controller.rb
|
5
|
+
- app/views/forge/events
|
6
|
+
- app/models/event.rb
|
7
|
+
- app/views/forge/shared/menu_items/_events.html.haml
|
8
|
+
- app/helpers/events_helper.rb
|
9
|
+
- lib/forge/config/events.rb
|
10
|
+
|
11
|
+
migrations:
|
12
|
+
- create_events
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class ForgeCLI::EventPostHooks < ForgeCLI::PostHooks
|
2
|
+
def run!
|
3
|
+
STDOUT.puts "Adding routes..."
|
4
|
+
ri = ForgeCLI::RouteInstaller.new(@app, module_path)
|
5
|
+
ri.install_routes
|
6
|
+
ri.install_routes(:forge)
|
7
|
+
|
8
|
+
STDOUT.puts "Adding config requires..."
|
9
|
+
require_addon(:events)
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
def module_path
|
14
|
+
File.dirname(__FILE__)
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class ForgeCLI::PostPostHooks < ForgeCLI::PostHooks
|
2
|
+
def run!
|
3
|
+
STDOUT.puts "Adding Routes..."
|
4
|
+
ri = ForgeCLI::RouteInstaller.new(@app, module_path)
|
5
|
+
ri.install_routes
|
6
|
+
ri.install_routes(:forge)
|
7
|
+
|
8
|
+
STDOUT.puts "Adding Posts controller methods..."
|
9
|
+
content = app_controller_content.gsub(
|
10
|
+
'class ApplicationController < ActionController::Base',
|
11
|
+
"class ApplicationController < ActionController::Base\n include Forge::Controllers::Posts\n"
|
12
|
+
)
|
13
|
+
File.open(app_controller_path, 'w') do |f|
|
14
|
+
f.puts content
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
def module_path
|
20
|
+
File.dirname(__FILE__)
|
21
|
+
end
|
22
|
+
|
23
|
+
def app_controller_path
|
24
|
+
File.join(@app, 'app', 'controllers', 'application_controller.rb')
|
25
|
+
end
|
26
|
+
|
27
|
+
def app_controller_content
|
28
|
+
@app_controller_content ||= File.read(app_controller_path)
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
##############
|
2
|
+
### POSTS ####
|
3
|
+
##############
|
4
|
+
resources :posts, :only => [:index, :show] do
|
5
|
+
collection do
|
6
|
+
get :preview, :feed
|
7
|
+
end
|
8
|
+
member do
|
9
|
+
get :category
|
10
|
+
end
|
11
|
+
end
|
12
|
+
match 'posts/:month/:year', :controller => 'posts', :action => 'index'
|
13
|
+
##############
|
14
|
+
# END POSTS ##
|
15
|
+
##############
|
@@ -0,0 +1,14 @@
|
|
1
|
+
files:
|
2
|
+
- 'app/controllers/subscribers_controller.rb'
|
3
|
+
- 'app/views/subscribers'
|
4
|
+
- 'app/models/subscriber.rb'
|
5
|
+
- 'app/models/subscriber_group.rb'
|
6
|
+
- 'app/models/subscriber_group_member.rb'
|
7
|
+
- 'app/controllers/forge/subscribers_controller.rb'
|
8
|
+
- 'app/controllers/forge/subscriber_groups_controller.rb'
|
9
|
+
- 'app/views/forge/subscribers'
|
10
|
+
- 'app/views/forge/subscriber_groups'
|
11
|
+
- 'app/views/forge/shared/menu_items/_subscribers.html.haml'
|
12
|
+
|
13
|
+
migrations:
|
14
|
+
- create_subscribers
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class ForgeCLI::SubscriberPostHooks < ForgeCLI::PostHooks
|
2
|
+
def run!
|
3
|
+
STDOUT.puts "Adding routes..."
|
4
|
+
ri = ForgeCLI::RouteInstaller.new(@app, module_path)
|
5
|
+
ri.install_routes
|
6
|
+
ri.install_routes(:forge)
|
7
|
+
end
|
8
|
+
|
9
|
+
def module_path
|
10
|
+
File.dirname(__FILE__)
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
resources :subscribers, :only => [:index, :create, :destroy]
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class ForgeCLI::VideoPostHooks < ForgeCLI::PostHooks
|
2
|
+
def run!
|
3
|
+
STDOUT.puts "Adding routes..."
|
4
|
+
ri = ForgeCLI::RouteInstaller.new(@app, module_path)
|
5
|
+
ri.install_routes(:forge)
|
6
|
+
|
7
|
+
STDOUT.puts "Adding config requires..."
|
8
|
+
require_addon(:videos)
|
9
|
+
end
|
10
|
+
|
11
|
+
def module_path
|
12
|
+
File.dirname(__FILE__)
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
##############
|
2
|
+
### POSTS ####
|
3
|
+
##############
|
4
|
+
resources :posts, :only => [:index, :show] do
|
5
|
+
collection do
|
6
|
+
get :preview, :feed
|
7
|
+
end
|
8
|
+
member do
|
9
|
+
get :category
|
10
|
+
end
|
11
|
+
end
|
12
|
+
match 'posts/:month/:year', :controller => 'posts', :action => 'index'
|
13
|
+
##############
|
14
|
+
# END POSTS ##
|
15
|
+
##############
|
data/lib/forge-cli/post_hooks.rb
CHANGED
@@ -1,13 +1,26 @@
|
|
1
|
-
class ForgeCLI
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
def module_path
|
9
|
-
raise NotImplementedError, "Set this to return File.dirname(__FILE__) in your subclass"
|
10
|
-
end
|
11
|
-
end
|
1
|
+
class ForgeCLI::PostHooks
|
2
|
+
def self.run!(app)
|
3
|
+
new(app).run!
|
4
|
+
end
|
5
|
+
|
6
|
+
def initialize(app)
|
7
|
+
@app = app
|
12
8
|
end
|
9
|
+
|
10
|
+
def run!
|
11
|
+
raise NotImplementedError
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
def module_path
|
16
|
+
raise NotImplementedError, "Set this to return File.dirname(__FILE__) in your subclass"
|
17
|
+
end
|
18
|
+
|
19
|
+
def require_addon(addon)
|
20
|
+
addon_requirer.require_addon(addon)
|
21
|
+
end
|
22
|
+
|
23
|
+
def addon_requirer
|
24
|
+
@addon_requirer ||= ForgeCLI::ForgeAddonRequirer.new(@app)
|
25
|
+
end
|
13
26
|
end
|
data/lib/forge-cli/version.rb
CHANGED
data/lib/forge/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source :rubygems
|
2
2
|
|
3
3
|
# Most dependencies come from this gem
|
4
|
-
gem 'forge-rad', '~> 3.2.
|
4
|
+
gem 'forge-rad', '~> 3.2.13', :require => 'forge-rad'
|
5
5
|
|
6
6
|
# Extra Plugins
|
7
7
|
gem 'exception_notification', :require => 'exception_notifier'
|
@@ -15,7 +15,7 @@ group :development, :test do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
group :test do
|
18
|
-
gem 'capybara'
|
18
|
+
gem 'capybara', '~> 2.0.0'
|
19
19
|
gem 'rspec-rails', '>= 2.0.1'
|
20
20
|
gem 'shoulda'
|
21
21
|
gem 'shoulda-matchers'
|
@@ -3,11 +3,11 @@ class ApplicationController < ActionController::Base
|
|
3
3
|
helper :all
|
4
4
|
layout :layout_by_resource
|
5
5
|
before_filter :app_init
|
6
|
-
before_filter :prepare_for_mobile if Forge
|
6
|
+
before_filter :prepare_for_mobile if Forge.config.mobile_layout
|
7
7
|
|
8
8
|
def app_init
|
9
9
|
# application-wide init stuff here
|
10
|
-
@mobile_menu_items = Page.find_for_menu if Forge
|
10
|
+
@mobile_menu_items = Page.find_for_menu if Forge.config.mobile_layout
|
11
11
|
end
|
12
12
|
|
13
13
|
private
|
@@ -1,14 +1,14 @@
|
|
1
1
|
class EventsController < ApplicationController
|
2
2
|
caches_page :index, :show
|
3
3
|
|
4
|
-
if Forge
|
4
|
+
if Forge.config.events.display == :calendar
|
5
5
|
helper LaterDude::CalendarHelper
|
6
6
|
end
|
7
7
|
|
8
8
|
def index
|
9
9
|
@page_title = 'Listing Events'
|
10
10
|
|
11
|
-
if Forge
|
11
|
+
if Forge.config.events.display == :calendar
|
12
12
|
now = Time.now
|
13
13
|
|
14
14
|
@year = (params[:year] || now.year).to_i
|