BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
59069c45
Commit
59069c45
authored
Jun 19, 2017
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "slash command" vs "quick action" conflicts
This was renamed in 9.4,
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11811
parent
cf41cf1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
24 deletions
+5
-24
_zen.html.haml
app/views/projects/_zen.html.haml
+2
-10
_form.html.haml
app/views/shared/notes/_form.html.haml
+3
-14
No files found.
app/views/projects/_zen.html.haml
View file @
59069c45
-
@gfm_form
=
true
-
@gfm_form
=
true
-
current_text
||=
nil
-
current_text
||=
nil
<
<<<<<<
HEAD
-
supports_slash_commands
=
local_assigns
.
fetch
(
:supports_slash_commands
,
false
)
.zen-backdrop
-
classes
<<
' js-gfm-input js-autosize markdown-area'
-
if
defined?
(
f
)
&&
f
=
f
.
text_area
attr
,
class:
classes
,
placeholder:
placeholder
,
data:
{
supports_slash_commands:
supports_slash_commands
}
==
=====
-
supports_autocomplete
=
local_assigns
.
fetch
(
:supports_autocomplete
,
true
)
-
supports_autocomplete
=
local_assigns
.
fetch
(
:supports_autocomplete
,
true
)
-
supports_
quick_actions
=
local_assigns
.
fetch
(
:supports_quick_action
s
,
false
)
-
supports_
slash_commands
=
local_assigns
.
fetch
(
:supports_slash_command
s
,
false
)
.zen-backdrop
.zen-backdrop
-
classes
<<
' js-gfm-input js-autosize markdown-area'
-
classes
<<
' js-gfm-input js-autosize markdown-area'
-
if
defined?
(
f
)
&&
f
-
if
defined?
(
f
)
&&
f
=
f
.
text_area
attr
,
=
f
.
text_area
attr
,
class:
classes
,
class:
classes
,
placeholder:
placeholder
,
placeholder:
placeholder
,
data:
{
supports_
quick_actions:
supports_quick_action
s
,
data:
{
supports_
slash_commands:
supports_slash_command
s
,
supports_autocomplete:
supports_autocomplete
}
supports_autocomplete:
supports_autocomplete
}
>
>>>>>> be2ea8f... Merge branch '33594-disable-autocomplete-on-snippet-comments' into 'master'
-
else
-
else
=
text_area_tag
attr
,
current_text
,
class:
classes
,
placeholder:
placeholder
=
text_area_tag
attr
,
current_text
,
class:
classes
,
placeholder:
placeholder
%a
.zen-control.zen-control-leave.js-zen-leave
{
href:
"#"
}
%a
.zen-control.zen-control-leave.js-zen-leave
{
href:
"#"
}
...
...
app/views/shared/notes/_form.html.haml
View file @
59069c45
<
<<<<<<
HEAD
-
supports_autocomplete
=
local_assigns
.
fetch
(
:supports_autocomplete
,
true
)
-
supports_slash_commands
=
note_supports_slash_commands?
(
@note
)
-
supports_slash_commands
=
note_supports_slash_commands?
(
@note
)
-
if
supports_slash_commands
-
if
supports_slash_commands
-
preview_url
=
preview_markdown_path
(
@project
,
slash_commands_target_type:
@note
.
noteable_type
,
slash_commands_target_id:
@note
.
noteable_id
)
-
preview_url
=
preview_markdown_path
(
@project
,
slash_commands_target_type:
@note
.
noteable_type
,
slash_commands_target_id:
@note
.
noteable_id
)
==
=====
-
supports_autocomplete
=
local_assigns
.
fetch
(
:supports_autocomplete
,
true
)
-
supports_quick_actions
=
note_supports_quick_actions?
(
@note
)
-
if
supports_quick_actions
-
preview_url
=
preview_markdown_path
(
@project
,
quick_actions_target_type:
@note
.
noteable_type
,
quick_actions_target_id:
@note
.
noteable_id
)
>
>>>>>> be2ea8f... Merge branch '33594-disable-autocomplete-on-snippet-comments' into 'master'
-
else
-
else
-
preview_url
=
preview_markdown_path
(
@project
)
-
preview_url
=
preview_markdown_path
(
@project
)
...
@@ -34,14 +28,9 @@
...
@@ -34,14 +28,9 @@
attr: :note
,
attr: :note
,
classes:
'note-textarea js-note-text'
,
classes:
'note-textarea js-note-text'
,
placeholder:
"Write a comment or drag your files here..."
,
placeholder:
"Write a comment or drag your files here..."
,
<<<<<<<
HEAD
supports_slash_commands:
supports_slash_commands
,
supports_slash_commands: supports_slash_commands
=
render
'shared/notes/hints'
,
supports_slash_commands:
supports_slash_commands
==
=====
supports_quick_actions: supports_quick_actions,
supports_autocomplete:
supports_autocomplete
supports_autocomplete:
supports_autocomplete
=
render
'shared/notes/hints'
,
supports_quick_actions:
supports_quick_actions
=
render
'shared/notes/hints'
,
supports_slash_commands:
supports_slash_commands
>>>>>>> be2ea8f... Merge branch '33594-disable-autocomplete-on-snippet-comments' into 'master'
.error-alert
.error-alert
.note-form-actions.clearfix
.note-form-actions.clearfix
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment