Commit 950e2986 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Change wording of MR comment box

parent 027a4bd2
- supports_slash_commands = local_assigns.fetch(:supports_slash_commands, false) - supports_slash_commands = local_assigns.fetch(:supports_slash_commands, false)
.comment-toolbar.clearfix .comment-toolbar.clearfix
.toolbar-text .toolbar-text
Styling with
= link_to 'Markdown', help_page_path('user/markdown'), target: '_blank', tabindex: -1 = link_to 'Markdown', help_page_path('user/markdown'), target: '_blank', tabindex: -1
- if supports_slash_commands - if supports_slash_commands
and and
......
...@@ -21,7 +21,7 @@ describe 'projects/notes/_form' do ...@@ -21,7 +21,7 @@ describe 'projects/notes/_form' do
let(:note) { build(:"note_on_#{noteable}", project: project) } let(:note) { build(:"note_on_#{noteable}", project: project) }
it 'says that only markdown is supported, not slash commands' do it 'says that only markdown is supported, not slash commands' do
expect(rendered).to have_content('Styling with Markdown and slash commands are supported') expect(rendered).to have_content('Markdown and slash commands are supported')
end end
end end
end end
...@@ -30,7 +30,7 @@ describe 'projects/notes/_form' do ...@@ -30,7 +30,7 @@ describe 'projects/notes/_form' do
let(:note) { build(:note_on_commit, project: project) } let(:note) { build(:note_on_commit, project: project) }
it 'says that only markdown is supported, not slash commands' do it 'says that only markdown is supported, not slash commands' do
expect(rendered).to have_content('Styling with Markdown is supported') expect(rendered).to have_content('Markdown is supported')
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment