|
1 | 1 | - if current_user.blank? |
2 | 2 | section.user-logged-out |
3 | | - h1= link_to 'Login to view your account', user_github_omniauth_authorize_path, method: :post |
| 3 | + .subpage-content-wrapper |
| 4 | + section.subpage-content-header |
| 5 | + h1.subpage-primary-title You must be logged in to see this content |
| 6 | + h2.subpage-secondary-title.user-email Please log in |
4 | 7 |
|
5 | | -- if current_user && current_user == @user |
| 8 | + section.user-settings.content-section style="text-align: center" |
| 9 | + = link_to user_github_omniauth_authorize_path(origin: edit_user_url(@user)), class: 'button', method: :post |
| 10 | + | Log in |
| 11 | + |
| 12 | +- elsif current_user != @user |
| 13 | + section.user-logged-out |
| 14 | + .subpage-content-wrapper |
| 15 | + section.subpage-content-header |
| 16 | + h1.subpage-primary-title You may only view your own user account |
| 17 | + h2.subpage-secondary-title.user-email |
| 18 | + |
| 19 | + section.user-settings.content-section style="text-align: center" |
| 20 | + = link_to user_path(current_user), class: 'button' |
| 21 | + | View my user account |
| 22 | + |
| 23 | +- elsif current_user && current_user == @user |
6 | 24 | .subpage-content-wrapper |
7 | 25 | section.subpage-content-header |
8 | 26 | h1.subpage-primary-title= @user.github |
|
61 | 79 | = f.check_box :favorite_languages, { multiple: true }, language, nil |
62 | 80 | = f.label language, for: "user_favorite_languages_#{language.downcase}" |
63 | 81 | p= button_tag "Save Favorite Languages", class: "button full-width-action" |
| 82 | +- else |
| 83 | + p If you see this something went really wrong. Please open an issue with reproduction steps |
0 commit comments