2014-08-01 11:47:25 +02:00
|
|
|
class StaticController < ApplicationController
|
|
|
|
def index
|
2014-12-08 14:14:13 +01:00
|
|
|
if user_signed_in?
|
|
|
|
@timeline = current_user.timeline.paginate(page: params[:page])
|
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
|
|
|
format.js
|
|
|
|
end
|
2015-08-28 16:36:49 +02:00
|
|
|
else
|
|
|
|
return render 'static/front'
|
2014-12-08 14:14:13 +01:00
|
|
|
end
|
2014-08-01 11:47:25 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def about
|
2014-11-30 16:41:28 +01:00
|
|
|
@admins = User.where(admin: true).order(:id)
|
2014-08-01 11:47:25 +02:00
|
|
|
end
|
2015-01-07 21:30:52 +01:00
|
|
|
|
|
|
|
def faq
|
|
|
|
|
|
|
|
end
|
2015-01-16 22:36:39 +01:00
|
|
|
|
|
|
|
def privacy_policy
|
|
|
|
|
|
|
|
end
|
2015-01-16 23:16:28 +01:00
|
|
|
|
|
|
|
def terms
|
|
|
|
|
|
|
|
end
|
2014-08-01 11:47:25 +02:00
|
|
|
end
|