forked from lancejpollard/authlogic-connect-example
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29201c5
commit 1aac543
Showing
5 changed files
with
55 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
%h2= "Hi #{@profile[:name]}!" | ||
%p= "You have connected to your #{current_user.connected_services.join(" and ")} #{'account'.send(current_user.connected_services.length > 1 ? 'pluralize' : 'singularize')}." | ||
- message = "You have connected to your" | ||
- message << " #{current_user.authenticated_with.collect(&:titleize).join(" and ")}" | ||
- message << " #{'account'.send(current_user.authenticated_with.length > 1 ? 'pluralize' : 'singularize')}." | ||
%p= message | ||
%img.profile{:src => @profile[:photo]} | ||
%p | ||
%a{:href => @profile[:link]}= "Your on #{@profile[:title]}!" | ||
|
||
%p | ||
= link_to "Edit", edit_user_path(@user) | ||
= link_to "Logout", logout_path | ||
%a{:href => @profile[:link]}= "Your on #{@profile[:title]}!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters