Workflows index

This commit is contained in:
2026-03-22 22:50:37 +02:00
parent 72af5a0610
commit 1c1d11cbe6
16 changed files with 179 additions and 18 deletions
@@ -0,0 +1,29 @@
# frozen_string_literal: true
module ProjectAdmin
class TabsViewModel
include Rails.application.routes.url_helpers
def initialize(project, id:, frame:)
@project = project
@id = id
@frame = frame
end
def render_in(view_context)
view_context.render(
partial: 'project_admin/tabs',
locals: { project: @project, links:, id: @id, frame: @frame }
)
end
private
def links
{
'Data' => edit_project_path(@project),
'Workflows' => project_workflows_path(@project)
}
end
end
end