Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
489e8992
Commit
489e8992
authored
Aug 12, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link to slash commands documentation from form hints
parent
f48e8986
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
app/views/projects/notes/_form.html.haml
app/views/projects/notes/_form.html.haml
+1
-1
app/views/projects/notes/_hints.html.haml
app/views/projects/notes/_hints.html.haml
+9
-2
app/views/shared/issuable/_form.html.haml
app/views/shared/issuable/_form.html.haml
+1
-1
No files found.
app/views/projects/notes/_form.html.haml
View file @
489e8992
...
...
@@ -15,7 +15,7 @@
classes:
'note-textarea js-note-text'
,
placeholder:
"Write a comment or drag your files here..."
,
supports_slash_commands:
true
=
render
'projects/notes/hints'
=
render
'projects/notes/hints'
,
supports_slash_commands:
true
.error-alert
.note-form-actions.clearfix
...
...
app/views/projects/notes/_hints.html.haml
View file @
489e8992
-
supports_slash_commands
=
local_assigns
.
fetch
(
:supports_slash_commands
,
false
)
.comment-toolbar.clearfix
.toolbar-text
Styling with
=
link_to
'Markdown'
,
help_page_path
(
'markdown/markdown'
),
target:
'_blank'
,
tabindex:
-
1
is supported
-
if
supports_slash_commands
and
=
link_to
'slash commands'
,
help_page_path
(
'workflow/slash_commands'
),
target:
'_blank'
,
tabindex:
-
1
are
-
else
is
supported
%button
.toolbar-button.markdown-selector
{
type:
'button'
,
tabindex:
'-1'
}
=
icon
(
'file-image-o'
,
class:
'toolbar-button-icon'
)
Attach a file
\ No newline at end of file
Attach a file
app/views/shared/issuable/_form.html.haml
View file @
489e8992
...
...
@@ -32,7 +32,7 @@
classes:
'note-textarea'
,
placeholder:
"Write a comment or drag your files here..."
,
supports_slash_commands:
!
issuable
.
persisted?
=
render
'projects/notes/hints'
=
render
'projects/notes/hints'
,
supports_slash_commands:
!
issuable
.
persisted?
.clearfix
.error-alert
...
...
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