Skip to content

Commit

Permalink
app notice + fix users controller
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Aug 11, 2023
1 parent 208adc6 commit 2513933
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def tracks
# @collection = @user.tracks.page(params[:page]).per(2)
if current_user
@collection = User.track_preloaded_by_user(current_user&.id)
where(user_id: @user.id )
.where(user_id: @user.id )
.order("id desc")
.page(params[:page]).per(2)
else
Expand Down
3 changes: 0 additions & 3 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
<body class="dark:bg-gray-900 dark:text-white font-sans antialiased" data-controller="track-detector">
<%= render "shared/user_menu" %>
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>

<%= yield %>

<div id="cart-counter" data-turbo-permanent>
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_flash.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</svg>
</div>
<div class="ml-3 w-0 flex-1 pt-0.5">
<p class="text-sm font-medium text-gray-900">Successfully saved!</p>
<p class="text-sm font-medium text-gray-900 hidden">Successfully saved!</p>
<p class="mt-1 text-sm text-gray-500"><%= message %></p>
</div>
<div class="ml-4 flex flex-shrink-0">
Expand Down

0 comments on commit 2513933

Please sign in to comment.