Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Link to login when proposing a change and not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Becker committed Feb 27, 2016
1 parent aa8e262 commit 2a29086
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/badges/show.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a29086

Please sign in to comment.