From f3e5ce3e2bbf16673d9ca2f989b79b48193c0be9 Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 2 Nov 2014 18:16:56 +0100 Subject: [PATCH] added jumbotron for not signed in users --- app/views/static/index.html.haml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/app/views/static/index.html.haml b/app/views/static/index.html.haml index 96e7563f..fad4400a 100644 --- a/app/views/static/index.html.haml +++ b/app/views/static/index.html.haml @@ -1,5 +1,18 @@ -.container - %h1 Static#index - = render 'layouts/messages' - - %p Find me in app/views/static/index.html.haml \ No newline at end of file +- if user_signed_in? + .container + %h1 Static#index + = render 'layouts/messages' + + %p Find me in app/views/static/index.html.haml +- 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 \ No newline at end of file