Announcement preivew
This commit is contained in:
1 parent
f6307abfbf
commit
453cb21066
15 files changed
+122
-44
No files matched your search
@@ -19,7 +19,7 @@ class PagesController < ApplicationController
|
||||
if @item && @item.is_published
|
||||
case @item._type
|
||||
when 'Page'
|
||||
render_page(params[:id])
|
||||
render_page(params)
|
||||
when 'Link'
|
||||
redirect_to "http://#{@item[:url]}"
|
||||
end
|
||||
@@ -40,7 +40,9 @@ class PagesController < ApplicationController
|
||||
end
|
||||
|
||||
def show_from_link
|
||||
redirect_to "/#{@item.full_name}?id=#{params[:id]}"
|
||||
# debugger
|
||||
# a=1
|
||||
redirect_to "/#{@item.full_name}?id=#{params[:id]}&preview=#{params[:preview]}"
|
||||
end
|
||||
|
||||
def load_orbit_bar
|
||||
|
||||
Reference in new issue
Block a user