Skip to content

Commit 7b6c036

Browse files
committed
DRYing up the layout call and trying to get password support in place.
1 parent 5a1c0de commit 7b6c036

File tree

5 files changed

+29
-6
lines changed

5 files changed

+29
-6
lines changed

CHANGELOG

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
==== 0.2 6/14/2008
2+
3+
* Added the start of password requiring, but it appears more investigation is needed on the rails side of plugin handling
4+
5+
* Fixed the sitemap_plugin layout footer url to point to our real domain
6+
7+
* Add delete support to widgets and static links in the plugin admin area
8+
9+
* Add Matt Polito's patch for dynamic copyright years
10+
11+
* Fix the custom_finder to work with Rails 2.1
12+
13+
==== 0.1 3/23/2008
14+
15+
Released the first version!

lib/sitemap_plugin_controller.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class SitemapPluginController < ActionController::Base
2+
layout 'sitemap_plugin'
3+
before_filter :check_sitemap_auth
4+
5+
protected
6+
7+
def check_sitemap_auth
8+
9+
end
10+
11+
end

lib/sitemap_settings_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
class SitemapSettingsController < ActionController::Base
2-
layout "sitemap_plugin"
1+
class SitemapSettingsController < SitemapPluginController
32

43
def index
54
@settings = SitemapSetting.find(:first) || SitemapSetting.create()

lib/sitemap_static_links_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
class SitemapStaticLinksController < ActionController::Base
2-
layout "sitemap_plugin"
1+
class SitemapStaticLinksController < SitemapPluginController
32
before_filter :find_static_link, :only => [:edit, :update, :destroy]
43

54
def index

lib/sitemap_widgets_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
class SitemapWidgetsController < ActionController::Base
2-
layout "sitemap_plugin"
1+
class SitemapWidgetsController < SitemapPluginController
32
before_filter :find_widget, :only => [:edit, :update, :destroy]
43

54
def index

0 commit comments

Comments
 (0)