@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
</div>
<% end -%>
<% elsif params[:bbox] %>
- <p class="mx-3"><%= t(params[:max_id] ? ".no_more_area" : ".empty_area") %></p>
+ <p class="mx-3"><%= params[:max_id] ? t(".no_more_area") : t(".empty_area") %></p>
<% elsif params[:display_name] %>
- <p class="mx-3"><%= t(params[:max_id] ? ".no_more_user" : ".empty_user") %></p>
+ <p class="mx-3"><%= params[:max_id] ? t(".no_more_user") : t(".empty_user") %></p>
<% else %>
- <p class="mx-3"><%= t(params[:max_id] ? ".no_more" : ".empty") %></p>
+ <p class="mx-3"><%= params[:max_id] ? t(".no_more") : t(".empty") %></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", :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"