14 lines
929 B
Text
14 lines
929 B
Text
- project = @target_project || @project
|
|
- noteable_type = @noteable.class if @noteable.present?
|
|
|
|
- if project
|
|
:javascript
|
|
gl.GfmAutoComplete = gl.GfmAutoComplete || {};
|
|
gl.GfmAutoComplete.dataSources = {
|
|
members: "#{members_namespace_project_autocomplete_sources_path(project.namespace, project, type: noteable_type, type_id: params[:id])}",
|
|
issues: "#{issues_namespace_project_autocomplete_sources_path(project.namespace, project)}",
|
|
mergeRequests: "#{merge_requests_namespace_project_autocomplete_sources_path(project.namespace, project)}",
|
|
labels: "#{labels_namespace_project_autocomplete_sources_path(project.namespace, project)}",
|
|
milestones: "#{milestones_namespace_project_autocomplete_sources_path(project.namespace, project)}",
|
|
commands: "#{commands_namespace_project_autocomplete_sources_path(project.namespace, project, type: noteable_type, type_id: params[:id])}"
|
|
};
|