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
f37febe2
Commit
f37febe2
authored
Jul 30, 2020
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix last commit widget links not working
parent
7a89ded4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
app/assets/javascripts/repository/components/preview/index.vue
...ssets/javascripts/repository/components/preview/index.vue
+1
-1
app/assets/javascripts/repository/queries/path_last_commit.query.graphql
...scripts/repository/queries/path_last_commit.query.graphql
+2
-2
spec/frontend/repository/components/preview/index_spec.js
spec/frontend/repository/components/preview/index_spec.js
+3
-3
No files found.
app/assets/javascripts/repository/components/preview/index.vue
View file @
f37febe2
...
...
@@ -51,7 +51,7 @@ export default {
<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-link
:href=
"blob.web
Url
"
>
<gl-link
:href=
"blob.web
Path
"
>
<strong>
{{
blob
.
name
}}
</strong>
</gl-link>
</div>
...
...
app/assets/javascripts/repository/queries/path_last_commit.query.graphql
View file @
f37febe2
...
...
@@ -8,14 +8,14 @@ query pathLastCommit($projectPath: ID!, $path: String, $ref: String!) {
titleHtml
descriptionHtml
message
web
Url
web
Path
authoredDate
authorName
authorGravatar
author
{
name
avatarUrl
web
Url
web
Path
}
signatureHtml
pipelines
(
ref
:
$ref
,
first
:
1
)
{
...
...
spec/frontend/repository/components/preview/index_spec.js
View file @
f37febe2
...
...
@@ -30,7 +30,7 @@ describe('Repository file preview component', () => {
it
(
'
renders file HTML
'
,
()
=>
{
factory
({
web
Url
:
'
http://test.com
'
,
web
Path
:
'
http://test.com
'
,
name
:
'
README.md
'
,
});
...
...
@@ -43,7 +43,7 @@ describe('Repository file preview component', () => {
it
(
'
handles hash after render
'
,
()
=>
{
factory
({
web
Url
:
'
http://test.com
'
,
web
Path
:
'
http://test.com
'
,
name
:
'
README.md
'
,
});
...
...
@@ -59,7 +59,7 @@ describe('Repository file preview component', () => {
it
(
'
renders loading icon
'
,
()
=>
{
factory
({
web
Url
:
'
http://test.com
'
,
web
Path
:
'
http://test.com
'
,
name
:
'
README.md
'
,
});
...
...
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