Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hunchr committed Nov 5, 2024
1 parent a1fd5f5 commit fba1ebe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/helpers/hotsheet/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
module Hotsheet
module ApplicationHelper
include Pagy::Frontend

def hotsheet_model_path(model)
"#{root_path}#{model.table_name}"
end
end
end
2 changes: 2 additions & 0 deletions app/views/hotsheet/pages/_editable_attribute.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<%# locals: (attribute:, record:) %>

<%= turbo_frame_tag "#{dom_id record}-#{attribute}" do %>
<div data-controller="editable-attribute"
data-editable-attribute-broadcast-url-value="<%= broadcast_edit_intent_path %>"
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/hotsheet/_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<nav>
<ul>
<% Hotsheet.models.each do |model| %>
<%= link_to model.model_name.human, "#{root_path}#{model.table_name}" %>
<%= link_to model.model_name.human, hotsheet_model_path(model) %>
<% end %>
</ul>
</nav>
Expand Down
File renamed without changes.

0 comments on commit fba1ebe

Please sign in to comment.