@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
@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
##
@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
<% end %>
<% unless @user_blocks.empty? %>
-<%= render :partial => "blocks" %>
+<%= render :partial => "page" %>
<% else %>
<p><%= t ".empty", :name => @user.display_name %></p>
<% end %>
<% end %>
<% unless @user_blocks.empty? %>
-<%= render :partial => "blocks" %>
+<%= render :partial => "page" %>
<% else %>
<p><%= t ".empty", :name => @user.display_name %></p>
<% end %>
<% end %>
<% unless @user_blocks.empty? %>
-<%= render :partial => "blocks" %>
+<%= render :partial => "page" %>
<% else %>
<p><%= t ".empty" %></p>
<% end %>
not_revoked: "(not revoked)"
show: "Show"
edit: "Edit"
- blocks:
+ page:
display_name: "Blocked User"
creator_name: "Creator"
reason: "Reason for block"