Rename _blocks partial template to _page

This commit is contained in:
Anton Khorev 2024-09-11 13:38:02 +03:00
parent 1a5fb52c28
commit de344eea83
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 %>