debian-mirror-gitlab/app/views/layouts/_init_auto_complete.html.haml

12 lines
358 B
Text
Raw Normal View History

2018-10-15 14:42:47 +05:30
- object = @target_project || @project || @group
2022-03-02 08:16:31 +05:30
- noteable_type = @noteable_type || @noteable&.class
2018-10-15 14:42:47 +05:30
- datasources = autocomplete_data_sources(object, noteable_type)
- if object
2021-02-22 17:27:13 +05:30
= javascript_tag do
2019-10-12 21:52:04 +05:30
:plain
gl = window.gl || {};
gl.GfmAutoComplete = gl.GfmAutoComplete || {};
gl.GfmAutoComplete.dataSources = #{datasources.to_json};