debian-mirror-gitlab/app/views/shared/issuable/_milestone_dropdown.html.haml
2023-01-12 18:35:48 +00:00

11 lines
494 B
Text

- name = local_assigns.fetch(:name, nil)
- project = @target_project || @project
- selected = local_assigns.fetch(:selected, nil)
.js-milestone-dropdown-root{ data: { can_admin_milestone: can?(current_user, :admin_milestone, project),
full_path: project.full_path,
input_name: name,
milestone_id: selected.try(:id),
milestone_title: selected.try(:title),
project_milestones_path: project_milestones_path(project),
workspace_type: Namespaces::ProjectNamespace.sti_name.downcase } }