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
3993359b
Commit
3993359b
authored
Oct 08, 2020
by
Martin Wortschack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace fa icon with GitLab SVG in repo preview
parent
e275fdd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
app/assets/javascripts/repository/components/preview/index.vue
...ssets/javascripts/repository/components/preview/index.vue
+3
-2
changelogs/unreleased/mw-replace-fa-icon-in-repo-preview.yml
changelogs/unreleased/mw-replace-fa-icon-in-repo-preview.yml
+5
-0
spec/frontend/repository/components/preview/__snapshots__/index_spec.js.snap
...itory/components/preview/__snapshots__/index_spec.js.snap
+3
-2
No files found.
app/assets/javascripts/repository/components/preview/index.vue
View file @
3993359b
...
...
@@ -2,7 +2,7 @@
/* eslint-disable vue/no-v-html */
import
$
from
'
jquery
'
;
import
'
~/behaviors/markdown/render_gfm
'
;
import
{
GlLink
,
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
{
Gl
Icon
,
Gl
Link
,
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
{
handleLocationHash
}
from
'
~/lib/utils/common_utils
'
;
import
readmeQuery
from
'
../../queries/readme.query.graphql
'
;
...
...
@@ -19,6 +19,7 @@ export default {
},
},
components
:
{
GlIcon
,
GlLink
,
GlLoadingIcon
,
},
...
...
@@ -51,7 +52,7 @@ export default {
<article
class=
"file-holder limited-width-container readme-holder"
>
<div
class=
"js-file-title file-title-flex-parent"
>
<div
class=
"file-header-content"
>
<
i
aria-hidden=
"true"
class=
"fa fa-file-text-o fa-fw"
></i
>
<
gl-icon
name=
"doc-text"
aria-hidden=
"true"
/
>
<gl-link
:href=
"blob.webPath"
>
<strong>
{{
blob
.
name
}}
</strong>
</gl-link>
...
...
changelogs/unreleased/mw-replace-fa-icon-in-repo-preview.yml
0 → 100644
View file @
3993359b
---
title
:
Replace fa icon with GitLab SVG in repository preview
merge_request
:
44696
author
:
type
:
changed
spec/frontend/repository/components/preview/__snapshots__/index_spec.js.snap
View file @
3993359b
...
...
@@ -10,9 +10,10 @@ exports[`Repository file preview component renders file HTML 1`] = `
<div
class="file-header-content"
>
<
i
<
gl-icon-stub
aria-hidden="true"
class="fa fa-file-text-o fa-fw"
name="doc-text"
size="16"
/>
<gl-link-stub
...
...
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