trusty-layouts-extension 1.0.1 → 1.0.2
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/MIT-LICENSE +4 -2
- data/layouts_extension.rb +1 -1
- data/lib/nested_layouts/tags/core.rb +1 -1
- data/trusty-layouts-extension.gemspec +1 -1
- metadata +1 -1
data/MIT-LICENSE
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Layouts Extension
|
|
2
2
|
|
|
3
|
-
Is a collaboration of many parties that
|
|
3
|
+
Is a collaboration of many parties that solved some common shortcomings with standard Radiant layouts. It has been branched to work with the TrustyCMS
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
https://github.com/pgharts/trusty-share-layouts-extension
|
|
6
6
|
|
|
7
7
|
## Nested Layouts
|
|
8
8
|
|
|
@@ -48,6 +48,8 @@ SOFTWARE.
|
|
|
48
48
|
|
|
49
49
|
Copyright (c) 2010 Radiant - Jim Gay, William Ross
|
|
50
50
|
|
|
51
|
+
TrustyCms is released under the MIT license. The Radiant portions of the codebase are copyright (c) John W. Long and Sean Cribbs; anything after the fork is copyright (c) Pittsburgh Cultural Trust. A copy of the MIT license can be found in the LICENSE file.
|
|
52
|
+
|
|
51
53
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
52
54
|
of this software and associated documentation files (the "Software"), to deal
|
|
53
55
|
in the Software without restriction, including without limitation the rights
|
data/layouts_extension.rb
CHANGED
|
@@ -6,7 +6,7 @@ class LayoutsExtension < TrustyCms::Extension
|
|
|
6
6
|
def activate
|
|
7
7
|
# Shared Layouts
|
|
8
8
|
RailsPage
|
|
9
|
-
|
|
9
|
+
ApplicationController.send :include, ShareLayouts::Controllers::ActionController
|
|
10
10
|
ActionView::Base.send :include, ShareLayouts::Helpers::ActionView
|
|
11
11
|
|
|
12
12
|
# Nested Layouts
|
|
@@ -38,7 +38,7 @@ module NestedLayouts
|
|
|
38
38
|
# Save contents of inside_layout for later insertion
|
|
39
39
|
tag.globals.nested_layouts_content_stack << tag.expand
|
|
40
40
|
|
|
41
|
-
# Set the page layout that
|
|
41
|
+
# Set the page layout that Trusty should use for rendering, which is different than the actual
|
|
42
42
|
# page's layout when layouts are nested. The final/highest +inside_layout+ tag will set or
|
|
43
43
|
# overwrite this value for the last time.
|
|
44
44
|
tag.globals.page.layout = layout
|
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
require "trusty-layouts-extension"
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = %q{trusty-layouts-extension}
|
|
6
|
-
s.version = "1.0.
|
|
6
|
+
s.version = "1.0.2"
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.authors = ["Eric Sipple", "Michael Klett", "Jim Gay", "William Ross", "Tony Issakov", "Dirk Kelly"]
|