Skip to content

Commit

Permalink
hide login prompt on profile if logged in but looking at different pr…
Browse files Browse the repository at this point in the history
…ofile
  • Loading branch information
RyanTG committed Nov 28, 2024
1 parent 41ef2eb commit 2432053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/users/profile.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
%label{:for => "user_flag", :class => 'mb_8 font14 darkgrey block'} Select a country or U.S. state flag to go with your username:
=select_tag :user_flag, options_for_select(Country.list.map { |k,v| [v,k] }), { include_blank: true, :class => 'user_flag_select', :id => 'user_flag'}
= submit_tag 'Save', :class => "save_button", :id => "save_user_flag_#{@user.id}"
- else
- elsif !current_user
%div.font14{:style => 'padding: 0 15px;'}
=link_to "LOGIN to Update Email / Update Password / Delete Account", new_user_session_path
.column.w_560.mt_5
Expand Down

0 comments on commit 2432053

Please sign in to comment.