From 2a2908654a89df09daaab7f9e1e88e07ace69e61 Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Sat, 27 Feb 2016 14:52:03 -0800 Subject: [PATCH] Link to login when proposing a change and not logged in --- app/views/badges/show.haml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/badges/show.haml b/app/views/badges/show.haml index 35e795b..14f734f 100644 --- a/app/views/badges/show.haml +++ b/app/views/badges/show.haml @@ -18,8 +18,10 @@ - if @badge.user == current_user %a{href: url(:badges, :edit, id: @badge.id)} Edit the badge! - else - %a{href: url(:changes, :new, id: @badge.id)} Propose a change! - + - if logged_in? + %a{href: url(:changes, :new, id: @badge.id)} Propose a change! + - else + %a{href: '/auth/github'} Sign in and propose a change! %h3 Embed %p Embed this badge in your site: %pre