2014-11-02 09:16:56 -08:00
|
|
|
- if user_signed_in?
|
|
|
|
.container
|
2014-11-30 06:39:13 -08:00
|
|
|
%h1 Timeline
|
2014-11-02 09:16:56 -08:00
|
|
|
= render 'layouts/messages'
|
|
|
|
|
2014-11-30 06:39:13 -08:00
|
|
|
- current_user.timeline.each do |answer|
|
|
|
|
= render 'shared/answerbox', a: answer
|
2014-11-17 04:19:59 -08:00
|
|
|
= render "shared/links"
|
2014-11-02 09:16:56 -08:00
|
|
|
- else
|
|
|
|
.jumbotron
|
|
|
|
.container
|
|
|
|
= render 'layouts/messages'
|
|
|
|
%h1 Hi!
|
|
|
|
%p Ask questions, give answers and learn more about your friends.
|
|
|
|
%p
|
|
|
|
%a.btn.btn-primary.btn-lg{href: url_for(new_user_registration_path)}
|
|
|
|
Register now
|
|
|
|
%small
|
|
|
|
Already a member?
|
2014-11-17 04:19:59 -08:00
|
|
|
= link_to 'Sign in', new_user_session_path
|
|
|
|
= render "shared/links"
|