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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
184f4ff0
Commit
184f4ff0
authored
May 07, 2021
by
Austin Regnery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move function before table
parent
559e1e58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
app/assets/javascripts/vue_shared/components/markdown/header.vue
...ets/javascripts/vue_shared/components/markdown/header.vue
+7
-7
app/views/shared/blob/_markdown_buttons.html.haml
app/views/shared/blob/_markdown_buttons.html.haml
+3
-4
No files found.
app/assets/javascripts/vue_shared/components/markdown/header.vue
View file @
184f4ff0
...
...
@@ -229,13 +229,6 @@ export default {
/>
</div>
<div
class=
"d-inline-block ml-md-2 ml-0"
>
<toolbar-button
:tag=
"mdCollapsibleSection"
:prepend=
"true"
tag-select=
"Click to expand"
:button-title=
"__('Add a collapsible section')"
icon=
"details-block"
/>
<toolbar-button
:prepend=
"true"
tag=
"- "
...
...
@@ -254,6 +247,13 @@ export default {
:button-title=
"__('Add a task list')"
icon=
"list-task"
/>
<toolbar-button
:tag=
"mdCollapsibleSection"
:prepend=
"true"
tag-select=
"Click to expand"
:button-title=
"__('Add a collapsible section')"
icon=
"details-block"
/>
<toolbar-button
:tag=
"mdTable"
:prepend=
"true"
...
...
app/views/shared/blob/_markdown_buttons.html.haml
View file @
184f4ff0
...
...
@@ -16,13 +16,12 @@
data:
{
"md-tag"
=>
"[{text}](url)"
,
"md-select"
=>
"url"
,
"md-shortcuts"
:
'["mod+k"]'
},
title:
sprintf
(
s_
(
"MarkdownEditor|Add a link (%{modifier_key}K)"
)
%
{
modifier_key:
modifier_key
})
})
=
markdown_toolbar_button
({
icon:
"details-block"
,
data:
{
"md-tag"
=>
"<details><summary>Click to expand</summary>
\n
{text}
\n
</details>"
,
"md-prepend"
=>
true
,
"md-select"
=>
"Click to expand"
},
title:
_
(
"Add a collapsible section"
)
})
=
markdown_toolbar_button
({
icon:
"list-bulleted"
,
data:
{
"md-tag"
=>
"- "
,
"md-prepend"
=>
true
},
title:
_
(
"Add a bullet list"
)
})
=
markdown_toolbar_button
({
icon:
"list-numbered"
,
data:
{
"md-tag"
=>
"1. "
,
"md-prepend"
=>
true
},
title:
_
(
"Add a numbered list"
)
})
=
markdown_toolbar_button
({
icon:
"list-task"
,
data:
{
"md-tag"
=>
"- [ ] "
,
"md-prepend"
=>
true
},
title:
_
(
"Add a task list"
)
})
=
markdown_toolbar_button
({
icon:
"details-block"
,
data:
{
"md-tag"
=>
"<details><summary>Click to expand</summary>
\n
{text}
\n
</details>"
,
"md-prepend"
=>
true
,
"md-select"
=>
"Click to expand"
},
title:
_
(
"Add a collapsible section"
)
})
=
markdown_toolbar_button
({
icon:
"table"
,
data:
{
"md-tag"
=>
"| header | header |
\n
| ------ | ------ |
\n
| cell | cell |
\n
| cell | cell |"
,
"md-prepend"
=>
true
},
title:
_
(
"Add a table"
)
})
-
if
show_fullscreen_button
%button
.toolbar-btn.toolbar-fullscreen-btn.js-zen-enter.has-tooltip
{
type:
"button"
,
tabindex:
-
1
,
"aria-label"
:
"Go full screen"
,
title:
_
(
"Go full screen"
),
data:
{
container:
"body"
}
}
...
...
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