Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

415 B
Raw Blame
# frozen_string_literal: true

class Dashboard::ProjectInfoComponent < ViewComponent::Base
  def initialize(project:, user:)
    @project = project
    @user = user
  end

  def should_render?
    true
  end

  private

  attr_reader :project, :user

  def custom_fields
    @custom_fields ||= project.ticket_attribute_definitions.active.ordered
  end

  def current_organisation
    project.organisation
  end
end