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
d111268f
Commit
d111268f
authored
Sep 20, 2021
by
Michael Le
Committed by
Vitaly Slobodin
Nov 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use figure instead of article element
parent
80d12040
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
app/assets/javascripts/snippets/components/snippet_blob_view.vue
...ets/javascripts/snippets/components/snippet_blob_view.vue
+2
-2
app/views/shared/snippets/_embed.html.haml
app/views/shared/snippets/_embed.html.haml
+3
-1
No files found.
app/assets/javascripts/snippets/components/snippet_blob_view.vue
View file @
d111268f
...
...
@@ -90,7 +90,7 @@ export default {
};
</
script
>
<
template
>
<
articl
e
class=
"file-holder snippet-file-content"
>
<
figur
e
class=
"file-holder snippet-file-content"
>
<blob-header
:blob=
"blob"
:active-viewer-type=
"viewer.type"
...
...
@@ -105,5 +105,5 @@ export default {
@[$
options.BLOB_RENDER_EVENT_LOAD]=
"forceQuery"
@[$
options.BLOB_RENDER_EVENT_SHOW_SOURCE]=
"switchViewer"
/>
</
articl
e>
</
figur
e>
</
template
>
app/views/shared/snippets/_embed.html.haml
View file @
d111268f
.gitlab-embed-snippets
figcaption
=
blob
.
name
.js-file-title.file-title-flex-parent
.file-header-content
=
external_snippet_icon
(
'doc-text'
)
...
...
@@ -17,5 +19,5 @@
=
embedded_raw_snippet_button
(
@snippet
,
blob
)
=
embedded_snippet_download_button
(
@snippet
,
blob
)
%
articl
e
.file-holder.snippet-file-content
%
figur
e
.file-holder.snippet-file-content
=
render
'projects/blob/viewer'
,
viewer:
blob
.
simple_viewer
,
load_async:
false
,
external_embed:
true
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