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
da7c5f42
Commit
da7c5f42
authored
Jan 02, 2017
by
Martin Markech
Browse files
fix read more show page
parent
bcb86fd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/refinery/news/items_controller.rb
View file @
da7c5f42
...
...
@@ -26,15 +26,15 @@ module Refinery
protected
def
find_latest_news_items
@items
=
Refinery
::
News
::
Item
.
latest
.
translat
ed
@items
=
Refinery
::
News
::
Item
.
latest
.
with_
translat
ions
end
def
find_published_news_items
@items
=
Refinery
::
News
::
Item
.
published
.
translat
ed
.
page
(
params
[
:page
])
@items
=
Refinery
::
News
::
Item
.
published
.
with_
translat
ions
.
page
(
params
[
:page
])
end
def
find_news_item
@item
=
Refinery
::
News
::
Item
.
published
.
translat
ed
.
find
(
params
[
:id
])
@item
=
Refinery
::
News
::
Item
.
published
.
with_
translat
ions
.
find
(
params
[
:id
])
end
def
find_page
...
...
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