Retrospring/app/views/static/index.html.haml

21 lines
583 B
Plaintext

- if user_signed_in?
.container
%h1 Timeline
= render 'layouts/messages'
- current_user.timeline.each do |answer|
= render 'shared/answerbox', a: answer
= render "shared/links"
- 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?
= link_to 'Sign in', new_user_session_path
= render "shared/links"