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
c611b6f6
Commit
c611b6f6
authored
Jul 01, 2015
by
Darby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment box/Placeholder text redo
parent
62886771
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
+11
-7
gitlab_markdown_helper.rb
app/helpers/gitlab_markdown_helper.rb
+1
-1
_zen.html.haml
app/views/projects/_zen.html.haml
+1
-1
_edit_form.html.haml
app/views/projects/notes/_edit_form.html.haml
+2
-2
_form.html.haml
app/views/projects/notes/_form.html.haml
+7
-2
gitlab_markdown_helper_spec.rb
spec/helpers/gitlab_markdown_helper_spec.rb
+0
-1
No files found.
app/helpers/gitlab_markdown_helper.rb
View file @
c611b6f6
...
...
@@ -118,7 +118,7 @@ module GitlabMarkdownHelper
# Returns a random markdown tip for use as a textarea placeholder
def
random_markdown_tip
"
Tip:
#{
MARKDOWN_TIPS
.
sample
}
"
"
#{
MARKDOWN_TIPS
.
sample
}
"
end
private
...
...
app/views/projects/_zen.html.haml
View file @
c611b6f6
...
...
@@ -2,7 +2,7 @@
%input
#zen-toggle-comment
.zen-toggle-comment
{
tabindex:
'-1'
,
type:
'checkbox'
}
.zen-backdrop
-
classes
<<
' js-gfm-input markdown-area'
=
f
.
text_area
attr
,
class:
classes
,
placeholder:
random_markdown_tip
=
f
.
text_area
attr
,
class:
classes
,
placeholder:
''
=
link_to
nil
,
class:
'zen-enter-link'
,
tabindex:
'-1'
do
%i
.fa.fa-expand
Edit in fullscreen
...
...
app/views/projects/notes/_edit_form.html.haml
View file @
c611b6f6
...
...
@@ -5,8 +5,8 @@
=
render
'projects/zen'
,
f:
f
,
attr: :note
,
classes:
'note_text js-note-text js-task-list-field'
.comment-hints.clearfix
.pull-left
Comments are parsed with
#{
link_to
'GitLab Flavored Markdown
'
,
help_page_path
(
'markdown'
,
'markdown'
),{
target:
'_blank'
,
tabindex:
-
1
}
}
.pull-right
Attach files by dragging
&
dropping or
#{
link_to
'selecting them'
,
'#'
,
class:
'markdown-selector'
,
tabindex:
-
1
}
.
.pull-left
#{
link_to
'Markdown tip:
'
,
help_page_path
(
'markdown'
,
'markdown'
),{
target:
'_blank'
,
tabindex:
-
1
}
}
.pull-right
#{
link_to
'Attach a file'
,
'#'
,
class:
'markdown-selector'
,
tabindex:
-
1
}
.note-form-actions
.buttons
...
...
app/views/projects/notes/_form.html.haml
View file @
c611b6f6
...
...
@@ -12,8 +12,13 @@
classes:
'note_text js-note-text'
.comment-hints.clearfix
.pull-left
Comments are parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_page_path
(
"markdown"
,
"markdown"
),{
target:
'_blank'
,
tabindex:
-
1
}
}
.pull-right
Attach files by dragging
&
dropping or
#{
link_to
"selecting them"
,
'#'
,
class:
'markdown-selector'
,
tabindex:
-
1
}
.
.pull-left
=
link_to
"Markdown tip:"
,
help_page_path
(
"markdown"
,
"markdown"
),{
target:
'_blank'
,
tabindex:
-
1
}
=
random_markdown_tip
.pull-right
=
link_to
'#'
,
class:
'markdown-selector'
,
tabindex:
-
1
do
Attach a file
=
icon
(
'paperclip'
)
.error-alert
.note-form-actions
...
...
spec/helpers/gitlab_markdown_helper_spec.rb
View file @
c611b6f6
...
...
@@ -137,7 +137,6 @@ 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
'Tip: 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