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
360ee25d
Commit
360ee25d
authored
Jul 09, 2015
by
Darby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the issues
parent
c611b6f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
gitlab_markdown_helper.rb
app/helpers/gitlab_markdown_helper.rb
+1
-1
_edit_form.html.haml
app/views/projects/notes/_edit_form.html.haml
+1
-1
_form.html.haml
app/views/projects/notes/_form.html.haml
+2
-1
gitlab_markdown_helper_spec.rb
spec/helpers/gitlab_markdown_helper_spec.rb
+1
-0
No files found.
app/helpers/gitlab_markdown_helper.rb
View file @
360ee25d
...
...
@@ -118,7 +118,7 @@ module GitlabMarkdownHelper
# Returns a random markdown tip for use as a textarea placeholder
def
random_markdown_tip
"
#{
MARKDOWN_TIPS
.
sample
}
"
MARKDOWN_TIPS
.
sample
end
private
...
...
app/views/projects/notes/_edit_form.html.haml
View file @
360ee25d
...
...
@@ -5,7 +5,7 @@
=
render
'projects/zen'
,
f:
f
,
attr: :note
,
classes:
'note_text js-note-text js-task-list-field'
.comment-hints.clearfix
.pull-left
#{
link_to
'Markdown
tip:
'
,
help_page_path
(
'markdown'
,
'markdown'
),{
target:
'_blank'
,
tabindex:
-
1
}
}
.pull-left
#{
link_to
'Markdown '
,
help_page_path
(
'markdown'
,
'markdown'
),{
target:
'_blank'
,
tabindex:
-
1
}
}
.pull-right
#{
link_to
'Attach a file'
,
'#'
,
class:
'markdown-selector'
,
tabindex:
-
1
}
.note-form-actions
...
...
app/views/projects/notes/_form.html.haml
View file @
360ee25d
...
...
@@ -13,7 +13,8 @@
.comment-hints.clearfix
.pull-left
=
link_to
"Markdown tip:"
,
help_page_path
(
"markdown"
,
"markdown"
),{
target:
'_blank'
,
tabindex:
-
1
}
=
link_to
"Markdown "
,
help_page_path
(
"markdown"
,
"markdown"
),{
target:
'_blank'
,
tabindex:
-
1
}
tip:
=
random_markdown_tip
.pull-right
=
link_to
'#'
,
class:
'markdown-selector'
,
tabindex:
-
1
do
...
...
spec/helpers/gitlab_markdown_helper_spec.rb
View file @
360ee25d
...
...
@@ -137,6 +137,7 @@ describe GitlabMarkdownHelper do
describe
'random_markdown_tip'
do
it
'returns a random Markdown tip'
do
stub_const
(
"
#{
described_class
}
::MARKDOWN_TIPS"
,
[
'Random tip'
])
expect
(
random_markdown_tip
).
to
eq
'Random tip'
end
end
end
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