Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Markech
refinerycms-news
Commits
297dde99
Commit
297dde99
authored
May 31, 2012
by
Uģis Ozols
Browse files
Use :body and :side_body instead of deprecated :body_content_left and :body_content_right.
parent
cae3b3c5
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/views/refinery/news/items/archive.html.erb
View file @
297dde99
<%
content_for
:title
,
"
#{
t
(
'.news_item_archive_for'
,
:date
=>
l
(
@archive_date
,
:format
=>
'%B %Y'
))
}
"
%>
<%
content_for
:body
_content_left
do
%>
<%
content_for
:body
do
%>
<h1>
<%=
t
(
'.news_item_archive_for'
,
:date
=>
l
(
@archive_date
,
:format
=>
'%B %Y'
))
%>
</h1>
<%
if
@items
.
any?
%>
<section
id=
"news_items"
>
...
...
app/views/refinery/news/items/index.html.erb
View file @
297dde99
<%
content_for
:body
_content_left
do
%>
<%
content_for
:body
do
%>
<%=
raw
@page
.
content_for
(
Refinery
::
Pages
.
default_parts
.
first
.
to_sym
)
unless
params
[
:page
]
%>
<%
if
@items
.
any?
%>
...
...
app/views/refinery/news/items/show.html.erb
View file @
297dde99
<%
content_for
:body_content_title
,
@item
.
title
%>
<%
content_for
:body
_content_left
do
%>
<%
content_for
:body
do
%>
<article
class=
"news_item"
>
<p>
<small>
<%=
t
(
'.published'
)
%>
<%=
l
(
@item
.
publish_date
,
:format
=>
:long
)
%>
</small>
...
...
@@ -15,6 +15,6 @@
</p>
</article>
<%
end
%>
<%
content_for
:
body_content_right
,
render
(
:partial
=>
'recent_posts'
)
%>
<%
content_for
:
side_body
,
render
(
:partial
=>
'recent_posts'
)
%>
<%=
render
"/refinery/content_page"
%>
app/views/refinery/news/shared/_body_content_right.html.erb
View file @
297dde99
<%
content_for
:
body_content_right
do
%>
<%
content_for
:
side_body
do
%>
<%=
yield
(
:body_content_right_prepend
)
%>
<%=
news_item_archive_widget
%>
<%=
yield
(
:body_content_right_append
)
%>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment