lib/generators/avo/templates/resource_tools/partial.tt in avo-2.53.0 vs lib/generators/avo/templates/resource_tools/partial.tt in avo-3.0.0.beta1
- old
+ new
@@ -1,14 +1,14 @@
<div class="flex flex-col">
<%%= render Avo::PanelComponent.new(name: "<%= human_name %>") do |c| %>
- <%% c.with_tools do %>
+ <%% c.tools do %>
<%%= a_link('/avo', icon: 'heroicons/solid/academic-cap', color: :primary, style: :primary) do %>
Dummy link
<%% end %>
<%% end %>
- <%% c.with_body do %>
+ <%% c.body do %>
<div class="flex flex-col p-4 min-h-24">
<div class="space-y-4">
<h3>🪧 This partial is waiting to be updated</h3>
<p>
@@ -21,12 +21,12 @@
<%%
# In this partial you have access to the following variables:
# tool
# @resource
- # @resource.model
+ # @resource.record
# params
- # Avo::App.context
+ # Avo::Current.context
# current_user
%>
</div>
</div>
<%% end %>