% title "Edit Website Settings: #{@user.name}" %> <% def can_edit? (@user.is?(current_user) && confirmed?) || (mod? && current_user.role >= @user.role && current_user.confirmed?) end %> <%= link_to @user.name, @user %> → Edit Website Settings
| Header moves with scrolling (Experimental - do not report bugs) | <%= f.check_box :header_scroll, disabled: !can_edit? %> |
| Show exact UTC times | <%= f.check_box :utc_time, disabled: !can_edit? %> |
| Dark theme* | <%= f.check_box :dark, disabled: !can_edit? %> |
<%= f.submit "Save changes", class: "btn blue left", disabled: !can_edit? %>
<% if !@user.is?(current_user) && !current_user.confirmed? %> You must confirm your own email before you can edit other user's website settings. <% elsif !@user.confirmed? && @user.is?(current_user) %> You need to confirm your email before you can edit your website settings. <% end %> <% end %>