Merge remote-tracking branch 'upstream/pull/5184'

This commit is contained in:
Tom Hughes 2024-09-11 17:06:15 +01:00
commit c6e12b541b
6 changed files with 7 additions and 7 deletions

View file

@ -25,7 +25,7 @@ class UserBlocksController < ApplicationController
@show_user_name = true
@show_creator_name = true
render :partial => "blocks" if turbo_frame_request_id == "pagination"
render :partial => "page" if turbo_frame_request_id == "pagination"
end
def show
@ -127,7 +127,7 @@ class UserBlocksController < ApplicationController
@show_user_name = false
@show_creator_name = true
render :partial => "blocks" if turbo_frame_request_id == "pagination"
render :partial => "page" if turbo_frame_request_id == "pagination"
end
##
@ -142,7 +142,7 @@ class UserBlocksController < ApplicationController
@show_user_name = true
@show_creator_name = false
render :partial => "blocks" if turbo_frame_request_id == "pagination"
render :partial => "page" if turbo_frame_request_id == "pagination"
end
private

View file

@ -7,7 +7,7 @@
<% end %>
<% unless @user_blocks.empty? %>
<%= render :partial => "blocks" %>
<%= render :partial => "page" %>
<% else %>
<p><%= t ".empty", :name => @user.display_name %></p>
<% end %>

View file

@ -7,7 +7,7 @@
<% end %>
<% unless @user_blocks.empty? %>
<%= render :partial => "blocks" %>
<%= render :partial => "page" %>
<% else %>
<p><%= t ".empty", :name => @user.display_name %></p>
<% end %>

View file

@ -7,7 +7,7 @@
<% end %>
<% unless @user_blocks.empty? %>
<%= render :partial => "blocks" %>
<%= render :partial => "page" %>
<% else %>
<p><%= t ".empty" %></p>
<% end %>