Skip to content

Commit

Permalink
fix sign out
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Sep 2, 2023
1 parent 1d91f65 commit 87b7310
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
</style>
</head>
<body
class="<%= current_user&.background_color.present? || current_user&.background_image.attached? ? '' : 'bg-dark text-light' %>"
style="<%= 'background-image: url(' + url_for(current_user.background_image) + ');' if current_user&.background_image.attached? %>
<%= 'background-color:' + current_user.background_color + ';' if current_user&.background_color.present? %>">
class="<%= (current_user&.background_color.present? || (current_user&.background_image&.attached?)) ? '' : 'bg-dark text-light' %>"
style="<%= 'background-image: url(' + url_for(current_user.background_image) + ');' if current_user&.background_image&.attached? %>
<%= 'background-color:' + current_user.background_color + ';' if current_user&.background_color.present? %>"
<nav class="navbar navbar-expand-lg navbar-dark bg-dark shadow-sm px-3">
<div class="d-flex align-items-center">
<% if user_signed_in? %>
Expand Down

0 comments on commit 87b7310

Please sign in to comment.