uzuuzu-cms 0.0.0 → 0.0.1
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/VERSION +1 -1
- data/lib/uzuuzu-cms/controller/admin/index.rb +18 -0
- data/lib/uzuuzu-cms/controller/blog/index.rb +18 -0
- data/lib/uzuuzu-cms/controller/ec/index.rb +18 -0
- data/lib/uzuuzu-cms/controller/initialize.rb +79 -20
- data/lib/uzuuzu-cms/controller/openid.rb +22 -33
- data/lib/uzuuzu-cms/controller/view/initialize/step1.rhtml +2 -2
- data/lib/uzuuzu-cms/controller/view/initialize/step2.rhtml +23 -0
- data/lib/uzuuzu-cms/controller/view/initialize/step3.rhtml +24 -0
- data/lib/uzuuzu-cms/controller/wiki/index.rb +18 -0
- data/lib/uzuuzu-cms/model/blog.rb +4 -4
- data/lib/uzuuzu-cms/model/contents.rb +4 -4
- data/lib/uzuuzu-cms/model/file.rb +1 -1
- data/lib/uzuuzu-cms/model/image.rb +1 -1
- data/lib/uzuuzu-cms/model/info.rb +48 -12
- data/lib/uzuuzu-cms/model/layout.rb +3 -3
- data/lib/uzuuzu-cms/model/movie.rb +1 -1
- data/lib/uzuuzu-cms/model/page.rb +82 -30
- data/lib/uzuuzu-cms/model/page_body.rb +11 -2
- data/lib/uzuuzu-cms/model/wiki.rb +5 -5
- data/lib/uzuuzu-cms/wrapper/controller.rb +16 -0
- data/lib/uzuuzu-cms/wrapper/environments.rb +15 -0
- data/lib/uzuuzu-cms/wrapper/lang/en.yaml +23 -0
- data/lib/uzuuzu-cms/wrapper/lang/ja.yaml +33 -0
- data/lib/uzuuzu-cms/wrapper/model.rb +24 -0
- data/lib/uzuuzu-cms.rb +3 -2
- data/template/fixture/uzu_uzu/contents.yaml +31 -0
- data/template/fixture/uzu_uzu/contents_page_body.yaml +13 -0
- data/template/fixture/uzu_uzu/css.yaml +11 -0
- data/template/fixture/uzu_uzu/css_info.yaml +5 -0
- data/template/fixture/uzu_uzu/info.yaml +13 -0
- data/template/fixture/uzu_uzu/info_javascript.yaml +5 -0
- data/template/fixture/uzu_uzu/javascript.yaml +5 -0
- data/template/fixture/uzu_uzu/layout.yaml +278 -0
- data/template/fixture/uzu_uzu/page.yaml +5 -0
- data/template/fixture/uzu_uzu/page_body.yaml +7 -0
- data/uzuuzu-cms.gemspec +21 -6
- metadata +22 -7
- data/lib/uzuuzu-cms/controller/admin.rb +0 -16
- data/lib/uzuuzu-cms/controller.rb +0 -16
- data/lib/uzuuzu-cms/fixture/layout.yaml +0 -110
- data/lib/uzuuzu-cms/model.rb +0 -24
@@ -1,8 +1,8 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
require 'uzuuzu/
|
3
|
-
require 'uzuuzu/
|
4
|
-
require 'uzuuzu/
|
5
|
-
require 'uzuuzu/
|
2
|
+
require 'uzuuzu-cms/model/css'
|
3
|
+
require 'uzuuzu-cms/model/javascript'
|
4
|
+
require 'uzuuzu-cms/model/layout'
|
5
|
+
require 'uzuuzu-cms/model/page_body'
|
6
6
|
|
7
7
|
module UzuUzu
|
8
8
|
class Css
|
@@ -60,23 +60,6 @@ module UzuUzu
|
|
60
60
|
has n, :javascripts, :through => Resource
|
61
61
|
has n, :childs, 'UzuUzu::Page', :child_key => :parent
|
62
62
|
|
63
|
-
#
|
64
|
-
#
|
65
|
-
#
|
66
|
-
def css_urls
|
67
|
-
self.csses.map do |css|
|
68
|
-
css.url
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
#
|
73
|
-
#
|
74
|
-
#
|
75
|
-
def javascript_urls
|
76
|
-
_javascript = []
|
77
|
-
|
78
|
-
end
|
79
|
-
|
80
63
|
def reverse_look_up(column=nil)
|
81
64
|
if column
|
82
65
|
key = self.send(column)
|
@@ -139,21 +122,90 @@ module UzuUzu
|
|
139
122
|
tree_map
|
140
123
|
end
|
141
124
|
|
142
|
-
def
|
125
|
+
def abs_layout
|
126
|
+
value = self.layout
|
127
|
+
value ||= self.parent.abs_layout unless self.parent.nil?
|
128
|
+
value ||= Info.uniq.layout
|
129
|
+
value
|
130
|
+
end
|
131
|
+
|
132
|
+
def abs_header
|
133
|
+
value = self.header
|
134
|
+
value ||= self.parent.abs_header unless self.parent.nil?
|
135
|
+
value ||= Info.uniq.header
|
136
|
+
value
|
137
|
+
end
|
138
|
+
|
139
|
+
def abs_footer
|
140
|
+
value = self.footer
|
141
|
+
value ||= self.parent.abs_footer unless self.parent.nil?
|
142
|
+
value ||= Info.uniq.footer
|
143
|
+
value
|
144
|
+
end
|
145
|
+
|
146
|
+
def abs_left
|
147
|
+
value = self.left
|
148
|
+
value ||= self.parent.abs_left unless self.parent.nil?
|
149
|
+
value ||= Info.uniq.left
|
150
|
+
value
|
151
|
+
end
|
152
|
+
|
153
|
+
def abs_right
|
154
|
+
value = self.right
|
155
|
+
value ||= self.parent.abs_right unless self.parent.nil?
|
156
|
+
value ||= Info.uniq.right
|
157
|
+
value
|
158
|
+
end
|
159
|
+
|
160
|
+
def abs_navigator
|
161
|
+
value = self.navigator
|
162
|
+
value ||= self.parent.abs_navigator unless self.parent.nil?
|
163
|
+
value ||= Info.uniq.navigator
|
164
|
+
value
|
165
|
+
end
|
166
|
+
|
167
|
+
def abs_use_navigator
|
168
|
+
value = self.use_navigator
|
169
|
+
value ||= self.parent.abs_use_navigator unless self.parent.nil?
|
170
|
+
value ||= Info.uniq.use_navigator
|
171
|
+
value
|
172
|
+
end
|
173
|
+
|
174
|
+
def abs_csses
|
175
|
+
value = []
|
176
|
+
self.csses.each do |css|
|
177
|
+
value << css
|
178
|
+
end
|
179
|
+
value += self.parent.abs_csses unless self.parent.nil?
|
180
|
+
value += Info.uniq.csses if self.parent.nil?
|
181
|
+
value
|
182
|
+
end
|
183
|
+
|
184
|
+
def abs_javascripts
|
185
|
+
value = []
|
186
|
+
self.javascripts.each do |js|
|
187
|
+
value << js
|
188
|
+
end
|
189
|
+
value += self.parent.abs_javascripts unless self.parent.nil?
|
190
|
+
value += Info.uniq.javascripts if self.parent.nil?
|
191
|
+
value
|
192
|
+
end
|
193
|
+
|
194
|
+
def render(instance=nil, contents=nil, options={})
|
143
195
|
locals = {
|
144
|
-
:@header => self.
|
145
|
-
:@footer => self.
|
146
|
-
:@left => self.
|
147
|
-
:@right => self.
|
148
|
-
:@css => self.
|
149
|
-
:@js => self.
|
196
|
+
:@header => self.abs_header.render(instance, options),
|
197
|
+
:@footer => self.abs_footer.render(instance, options),
|
198
|
+
:@left => self.abs_left.render(instance, options),
|
199
|
+
:@right => self.abs_right.render(instance, options),
|
200
|
+
:@css => self.abs_csses.map{|css|css.url},
|
201
|
+
:@js => self.abs_javascripts.map{|js|js.url}
|
150
202
|
}
|
151
|
-
locals[:@navigator] = self.
|
203
|
+
locals[:@navigator] = self.abs_navigator.render(instance, options) if self.abs_use_navigator
|
152
204
|
locals[:@contents] = contents
|
153
205
|
locals[:@contents] ||= yield if block_given?
|
154
206
|
locals[:@contents] ||= self.page_body.render(instance, options)
|
155
207
|
locals[:@contents] ||= ""
|
156
|
-
UzuUzu.render_engine(instance, self.
|
208
|
+
UzuUzu.render_engine(instance, self.abs_layout.body, self.abs_layout.format, options, locals)
|
157
209
|
end # render
|
158
210
|
end #Page
|
159
211
|
|
@@ -1,8 +1,17 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
require 'uzuuzu-cms/model/contents'
|
2
3
|
|
3
4
|
module UzuUzu
|
5
|
+
|
6
|
+
class ContentsPageBody
|
7
|
+
include DataMapper::Resource
|
8
|
+
|
9
|
+
belongs_to :page_body, :key => true
|
10
|
+
belongs_to :contents, 'UzuUzu::Contents', :key => true
|
11
|
+
end
|
12
|
+
|
4
13
|
class Contents
|
5
|
-
has n, :page_bodies, :through => Resource
|
14
|
+
has n, :page_bodies, :through => Resource, :via => :page_body
|
6
15
|
end
|
7
16
|
|
8
17
|
class PageBody
|
@@ -10,7 +19,7 @@ module UzuUzu
|
|
10
19
|
|
11
20
|
property :id, Serial
|
12
21
|
|
13
|
-
has n, :contents, 'UzuUzu::Contents', :through => Resource
|
22
|
+
has n, :contents, 'UzuUzu::Contents', :through => Resource, :via => :contents
|
14
23
|
|
15
24
|
def render(instance=nil, options={})
|
16
25
|
self.contents.map do |c|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
require 'uzuuzu/
|
4
|
-
require 'uzuuzu/
|
5
|
-
require 'uzuuzu/
|
6
|
-
require 'uzuuzu/
|
7
|
-
require 'uzuuzu/
|
3
|
+
require 'uzuuzu-cms/model/css'
|
4
|
+
require 'uzuuzu-cms/model/javascript'
|
5
|
+
require 'uzuuzu-cms/model/wiki_layout'
|
6
|
+
require 'uzuuzu-cms/model/wiki_attache'
|
7
|
+
require 'uzuuzu-cms/model/wiki_entry'
|
8
8
|
|
9
9
|
module UzuUzu
|
10
10
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
module UzuUzu
|
4
|
+
module Controller
|
5
|
+
autoload(:Admin, 'uzuuzu-cms/controller/admin')
|
6
|
+
autoload(:Contents, 'uzuuzu-cms/controller/contents')
|
7
|
+
autoload(:Crud, 'uzuuzu-cms/controller/crud')
|
8
|
+
autoload(:Index, 'uzuuzu-cms/controller/index')
|
9
|
+
autoload(:Initialize, 'uzuuzu-cms/controller/initialize')
|
10
|
+
autoload(:Oauth, 'uzuuzu-cms/controller/oauth')
|
11
|
+
autoload(:Openid, 'uzuuzu-cms/controller/openid')
|
12
|
+
autoload(:Page, 'uzuuzu-cms/controller/page')
|
13
|
+
autoload(:Plugin, 'uzuuzu-cms/controller/plugin')
|
14
|
+
autoload(:User, 'uzuuzu-cms/controller/user')
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
module UzuUzu
|
4
|
+
class Environments
|
5
|
+
alias :uzuuzu_org_load_localize :load_localize
|
6
|
+
def load_localize
|
7
|
+
uzuuzu_org_load_localize
|
8
|
+
if ::File.file?(__DIR__("lang/#{@lang}.yaml"))
|
9
|
+
::File.open(__DIR__("lang/#{@lang}.yaml"), :encoding => "UTF-8") do |f|
|
10
|
+
@localize.merge!(::YAML.load(f))
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
|
2
|
+
# common
|
3
|
+
create: Create
|
4
|
+
entry: Entry
|
5
|
+
update: Update
|
6
|
+
delete: Delete
|
7
|
+
|
8
|
+
login: Login
|
9
|
+
|
10
|
+
# common error
|
11
|
+
not_found: page is not found
|
12
|
+
server_error: server error
|
13
|
+
|
14
|
+
# openid
|
15
|
+
openid_messege: Choice!
|
16
|
+
openid_url: Other OpenId URL
|
17
|
+
|
18
|
+
# user entry
|
19
|
+
user_entry: Please Entry
|
20
|
+
user_entry_name: Display Name
|
21
|
+
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
# common
|
4
|
+
create: 作成
|
5
|
+
entry: 登録
|
6
|
+
update: 更新
|
7
|
+
delete: 削除
|
8
|
+
|
9
|
+
login: ログイン
|
10
|
+
|
11
|
+
# error
|
12
|
+
not_found: お探しのページが見つかりません。
|
13
|
+
server_error: エラーが発生しました。
|
14
|
+
|
15
|
+
# openid
|
16
|
+
openid_messege: ログイン方法を選択してください
|
17
|
+
openid_url: その他OpenId
|
18
|
+
|
19
|
+
# user entry
|
20
|
+
user_entry: ユーザー情報を登録してください
|
21
|
+
user_entry_name: 表示するユーザー名
|
22
|
+
user_entry_email: メールアドレス
|
23
|
+
user_entry_web: ホームページアドレス
|
24
|
+
|
25
|
+
# user entry error
|
26
|
+
user_name_empty: ユーザー名の入力は必須です。
|
27
|
+
|
28
|
+
# initialize
|
29
|
+
initialize_title: 初期設定
|
30
|
+
step1: 管理者を登録します。下記よりログインしてください。
|
31
|
+
step2: 管理者情報を入力してください。
|
32
|
+
step3: サイト情報を入力してください。
|
33
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
module UzuUzu
|
4
|
+
autoload(:BlogCategory, 'uzuuzu-cms/model/blog')
|
5
|
+
autoload(:BlogCategoryBlogEntry, 'uzuuzu-cms/model/blog')
|
6
|
+
autoload(:BlogComment, 'uzuuzu-cms/model/blog')
|
7
|
+
autoload(:BlogEntry, 'uzuuzu-cms/model/blog')
|
8
|
+
autoload(:Blog, 'uzuuzu-cms/model/blog')
|
9
|
+
autoload(:Contents, 'uzuuzu-cms/model/contents')
|
10
|
+
autoload(:Css, 'uzuuzu-cms/model/css')
|
11
|
+
autoload(:File, 'uzuuzu-cms/model/file')
|
12
|
+
autoload(:Image, 'uzuuzu-cms/model/image')
|
13
|
+
autoload(:Info, 'uzuuzu-cms/model/info')
|
14
|
+
autoload(:Layout, 'uzuuzu-cms/model/layout')
|
15
|
+
autoload(:Movie, 'uzuuzu-cms/model/movie')
|
16
|
+
autoload(:PageBody, 'uzuuzu-cms/model/page_body')
|
17
|
+
autoload(:Page, 'uzuuzu-cms/model/page')
|
18
|
+
autoload(:Javascript, 'uzuuzu-cms/model/javascript')
|
19
|
+
autoload(:User, 'uzuuzu-cms/model/user')
|
20
|
+
autoload(:WikiAttache, 'uzuuzu-cms/model/wiki')
|
21
|
+
autoload(:WikiEntry, 'uzuuzu-cms/model/wiki')
|
22
|
+
autoload(:WikiLayout, 'uzuuzu-cms/model/wiki')
|
23
|
+
autoload(:Wiki, 'uzuuzu-cms/model/wiki')
|
24
|
+
end
|
data/lib/uzuuzu-cms.rb
CHANGED
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
- :id: 1
|
3
|
+
:format: erb
|
4
|
+
:name: header
|
5
|
+
:body: |-
|
6
|
+
<div>header</div>
|
7
|
+
- :id: 2
|
8
|
+
:format: erb
|
9
|
+
:name: footer
|
10
|
+
:body: |-
|
11
|
+
<div>footer</div>
|
12
|
+
- :id: 3
|
13
|
+
:format: erb
|
14
|
+
:name: left
|
15
|
+
:body: |-
|
16
|
+
<div>left</div>
|
17
|
+
- :id: 4
|
18
|
+
:format: erb
|
19
|
+
:name: right
|
20
|
+
:body: |-
|
21
|
+
<div>right</div>
|
22
|
+
- :id: 5
|
23
|
+
:format: erb
|
24
|
+
:name: navigator
|
25
|
+
:body: |-
|
26
|
+
<div>navigator</div>
|
27
|
+
- :id: 6
|
28
|
+
:format: erb
|
29
|
+
:name: home
|
30
|
+
:body: |-
|
31
|
+
<div>home</div>
|
@@ -0,0 +1,278 @@
|
|
1
|
+
---
|
2
|
+
- :id: 1
|
3
|
+
:name: contents_only
|
4
|
+
:format: erb
|
5
|
+
:body: |-
|
6
|
+
<?xml version="1.0" ?>
|
7
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
8
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
9
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
10
|
+
<head>
|
11
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
12
|
+
<meta http-equiv="Content-Style-Type" content="text/css" />
|
13
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
14
|
+
<meta http-equiv="expires" content="-1" />
|
15
|
+
<link rel="apple-touch-icon" href="/favicon.png">
|
16
|
+
<% unless @meta.blank?
|
17
|
+
@meta.each do |meta|
|
18
|
+
%>
|
19
|
+
<meta name="<%= h key %>" content="<%= h value %>">
|
20
|
+
<% end
|
21
|
+
end
|
22
|
+
%>
|
23
|
+
<title><%= h "#{@title} - " unless @title.blank? %><%= h info.title if info %></title>
|
24
|
+
<%= css_for @css unless @css.blank? %>
|
25
|
+
<%= js_for @js unless @js.blank? %>
|
26
|
+
</head>
|
27
|
+
<body >
|
28
|
+
<div id="contents">
|
29
|
+
<%= @contents %>
|
30
|
+
</div>
|
31
|
+
</body>
|
32
|
+
</html>
|
33
|
+
- :id: 2
|
34
|
+
:name: noside
|
35
|
+
:format: erb
|
36
|
+
:body: |-
|
37
|
+
<?xml version="1.0" ?>
|
38
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
39
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
40
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
41
|
+
<head>
|
42
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
43
|
+
<meta http-equiv="Content-Style-Type" content="text/css" />
|
44
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
45
|
+
<meta http-equiv="expires" content="-1" />
|
46
|
+
<link rel="apple-touch-icon" href="/favicon.png">
|
47
|
+
<% unless @meta.blank?
|
48
|
+
@meta.each do |meta|
|
49
|
+
%>
|
50
|
+
<meta name="<%= h key %>" content="<%= h value %>">
|
51
|
+
<% end
|
52
|
+
end
|
53
|
+
%>
|
54
|
+
<title><%= h "#{@title} - " unless @title.blank? %><%= h info.title if info %></title>
|
55
|
+
<%= css_for @css unless @css.blank? %>
|
56
|
+
<%= js_for @js unless @js.blank? %>
|
57
|
+
</head>
|
58
|
+
<body >
|
59
|
+
<div id="contents">
|
60
|
+
<%= @contents %>
|
61
|
+
</div>
|
62
|
+
<div id="header">
|
63
|
+
<%= @header %>
|
64
|
+
</div>
|
65
|
+
<div id="footer">
|
66
|
+
<%= @footer %>
|
67
|
+
</div>
|
68
|
+
</body>
|
69
|
+
</html>
|
70
|
+
- :id: 3
|
71
|
+
:name: left
|
72
|
+
:format: erb
|
73
|
+
:body: |-
|
74
|
+
<?xml version="1.0" ?>
|
75
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
76
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
77
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
78
|
+
<head>
|
79
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
80
|
+
<meta http-equiv="Content-Style-Type" content="text/css" />
|
81
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
82
|
+
<meta http-equiv="expires" content="-1" />
|
83
|
+
<link rel="apple-touch-icon" href="/favicon.png">
|
84
|
+
<% unless @meta.blank?
|
85
|
+
@meta.each do |meta|
|
86
|
+
%>
|
87
|
+
<meta name="<%= h key %>" content="<%= h value %>">
|
88
|
+
<% end
|
89
|
+
end
|
90
|
+
%>
|
91
|
+
<title><%= h "#{@title} - " unless @title.blank? %><%= h info.title if info %></title>
|
92
|
+
<%= css_for @css unless @css.blank? %>
|
93
|
+
<%= js_for @js unless @js.blank? %>
|
94
|
+
</head>
|
95
|
+
<body >
|
96
|
+
<div id="contents">
|
97
|
+
<%= @contents %>
|
98
|
+
</div>
|
99
|
+
<div id="left">
|
100
|
+
<%= @left %>
|
101
|
+
</div>
|
102
|
+
<div id="header">
|
103
|
+
<%= @header %>
|
104
|
+
</div>
|
105
|
+
<div id="footer">
|
106
|
+
<%= @footer %>
|
107
|
+
</div>
|
108
|
+
</body>
|
109
|
+
</html>
|
110
|
+
- :id: 4
|
111
|
+
:name: right
|
112
|
+
:format: erb
|
113
|
+
:body: |-
|
114
|
+
<?xml version="1.0" ?>
|
115
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
116
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
117
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
118
|
+
<head>
|
119
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
120
|
+
<meta http-equiv="Content-Style-Type" content="text/css" />
|
121
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
122
|
+
<meta http-equiv="expires" content="-1" />
|
123
|
+
<link rel="apple-touch-icon" href="/favicon.png">
|
124
|
+
<% unless @meta.blank?
|
125
|
+
@meta.each do |meta|
|
126
|
+
%>
|
127
|
+
<meta name="<%= h key %>" content="<%= h value %>">
|
128
|
+
<% end
|
129
|
+
end
|
130
|
+
%>
|
131
|
+
<title><%= h "#{@title} - " unless @title.blank? %><%= h info.title if info %></title>
|
132
|
+
<%= css_for @css unless @css.blank? %>
|
133
|
+
<%= js_for @js unless @js.blank? %>
|
134
|
+
</head>
|
135
|
+
<body >
|
136
|
+
<div id="contents">
|
137
|
+
<%= @contents %>
|
138
|
+
</div>
|
139
|
+
<div id="right">
|
140
|
+
<%= @right %>
|
141
|
+
</div>
|
142
|
+
<div id="header">
|
143
|
+
<%= @header %>
|
144
|
+
</div>
|
145
|
+
<div id="footer">
|
146
|
+
<%= @footer %>
|
147
|
+
</div>
|
148
|
+
</body>
|
149
|
+
</html>
|
150
|
+
- :id: 5
|
151
|
+
:name: side
|
152
|
+
:format: erb
|
153
|
+
:body: |-
|
154
|
+
<?xml version="1.0" ?>
|
155
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
156
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
157
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
158
|
+
<head>
|
159
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
160
|
+
<meta http-equiv="Content-Style-Type" content="text/css" />
|
161
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
162
|
+
<meta http-equiv="expires" content="-1" />
|
163
|
+
<link rel="apple-touch-icon" href="/favicon.png">
|
164
|
+
<% unless @meta.blank?
|
165
|
+
@meta.each do |meta|
|
166
|
+
%>
|
167
|
+
<meta name="<%= h key %>" content="<%= h value %>">
|
168
|
+
<% end
|
169
|
+
end
|
170
|
+
%>
|
171
|
+
<title><%= h "#{@title} - " unless @title.blank? %><%= h info.title if info %></title>
|
172
|
+
<%= css_for @css unless @css.blank? %>
|
173
|
+
<%= js_for @js unless @js.blank? %>
|
174
|
+
</head>
|
175
|
+
<body >
|
176
|
+
<div id="contents">
|
177
|
+
<%= @contents %>
|
178
|
+
</div>
|
179
|
+
<div id="left">
|
180
|
+
<%= @left %>
|
181
|
+
</div>
|
182
|
+
<div id="right">
|
183
|
+
<%= @right %>
|
184
|
+
</div>
|
185
|
+
<div id="header">
|
186
|
+
<%= @header %>
|
187
|
+
</div>
|
188
|
+
<div id="footer">
|
189
|
+
<%= @footer %>
|
190
|
+
</div>
|
191
|
+
</body>
|
192
|
+
</html>
|
193
|
+
- :id: 6
|
194
|
+
:name: left2
|
195
|
+
:format: erb
|
196
|
+
:body: |-
|
197
|
+
<?xml version="1.0" ?>
|
198
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
199
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
200
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
201
|
+
<head>
|
202
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
203
|
+
<meta http-equiv="Content-Style-Type" content="text/css" />
|
204
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
205
|
+
<meta http-equiv="expires" content="-1" />
|
206
|
+
<link rel="apple-touch-icon" href="/favicon.png">
|
207
|
+
<% unless @meta.blank?
|
208
|
+
@meta.each do |meta|
|
209
|
+
%>
|
210
|
+
<meta name="<%= h key %>" content="<%= h value %>">
|
211
|
+
<% end
|
212
|
+
end
|
213
|
+
%>
|
214
|
+
<title><%= h "#{@title} - " unless @title.blank? %><%= h info.title if info %></title>
|
215
|
+
<%= css_for @css unless @css.blank? %>
|
216
|
+
<%= js_for @js unless @js.blank? %>
|
217
|
+
</head>
|
218
|
+
<body >
|
219
|
+
<div id="contents">
|
220
|
+
<%= @contents %>
|
221
|
+
</div>
|
222
|
+
<div id="left">
|
223
|
+
<%= @left %>
|
224
|
+
</div>
|
225
|
+
<div id="left2">
|
226
|
+
<%= @right %>
|
227
|
+
</div>
|
228
|
+
<div id="header">
|
229
|
+
<%= @header %>
|
230
|
+
</div>
|
231
|
+
<div id="footer">
|
232
|
+
<%= @footer %>
|
233
|
+
</div>
|
234
|
+
</body>
|
235
|
+
</html>
|
236
|
+
- :id: 7
|
237
|
+
:name: right2
|
238
|
+
:format: erb
|
239
|
+
:body: |-
|
240
|
+
<?xml version="1.0" ?>
|
241
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
242
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
243
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
244
|
+
<head>
|
245
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
246
|
+
<meta http-equiv="Content-Style-Type" content="text/css" />
|
247
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
248
|
+
<meta http-equiv="expires" content="-1" />
|
249
|
+
<link rel="apple-touch-icon" href="/favicon.png">
|
250
|
+
<% unless @meta.blank?
|
251
|
+
@meta.each do |meta|
|
252
|
+
%>
|
253
|
+
<meta name="<%= h key %>" content="<%= h value %>">
|
254
|
+
<% end
|
255
|
+
end
|
256
|
+
%>
|
257
|
+
<title><%= h "#{@title} - " unless @title.blank? %><%= h info.title if info %></title>
|
258
|
+
<%= css_for @css unless @css.blank? %>
|
259
|
+
<%= js_for @js unless @js.blank? %>
|
260
|
+
</head>
|
261
|
+
<body >
|
262
|
+
<div id="contents">
|
263
|
+
<%= @contents %>
|
264
|
+
</div>
|
265
|
+
<div id="right">
|
266
|
+
<%= @left %>
|
267
|
+
</div>
|
268
|
+
<div id="right2">
|
269
|
+
<%= @right %>
|
270
|
+
</div>
|
271
|
+
<div id="header">
|
272
|
+
<%= @header %>
|
273
|
+
</div>
|
274
|
+
<div id="footer">
|
275
|
+
<%= @footer %>
|
276
|
+
</div>
|
277
|
+
</body>
|
278
|
+
</html>
|