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
67acd0f0
Commit
67acd0f0
authored
Aug 06, 2020
by
Nicolò Maria Mezzopera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove handcrafter url and wire backend ones
- source component - test - mock data
parent
321c4e14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
app/assets/javascripts/packages/details/components/package_history.vue
...vascripts/packages/details/components/package_history.vue
+2
-2
spec/frontend/packages/details/components/package_history_spec.js
...ntend/packages/details/components/package_history_spec.js
+2
-2
spec/frontend/packages/mock_data.js
spec/frontend/packages/mock_data.js
+2
-0
No files found.
app/assets/javascripts/packages/details/components/package_history.vue
View file @
67acd0f0
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
<history-element
icon=
"commit"
data-testid=
"commit"
>
<history-element
icon=
"commit"
data-testid=
"commit"
>
<gl-sprintf
:message=
"$options.i18n.commitText"
>
<gl-sprintf
:message=
"$options.i18n.commitText"
>
<template
#link
>
<template
#link
>
<gl-link
:href=
"
`../../commit/$
{packagePipeline.sha}`
">
{{
<gl-link
:href=
"
packagePipeline.project.commit_url
"
>
{{
packagePipeline
.
sha
packagePipeline
.
sha
}}
</gl-link>
}}
</gl-link>
</
template
>
</
template
>
...
@@ -88,7 +88,7 @@ export default {
...
@@ -88,7 +88,7 @@ export default {
<history-element
icon=
"pipeline"
data-testid=
"pipeline"
>
<history-element
icon=
"pipeline"
data-testid=
"pipeline"
>
<gl-sprintf
:message=
"$options.i18n.pipelineText"
>
<gl-sprintf
:message=
"$options.i18n.pipelineText"
>
<
template
#link
>
<
template
#link
>
<gl-link
:href=
"
`../../pipelines/$
{packagePipeline.id}`
"
<gl-link
:href=
"
packagePipeline.project.pipeline_url
"
>
#
{{
packagePipeline
.
id
}}
</gl-link
>
#
{{
packagePipeline
.
id
}}
</gl-link
>
>
</
template
>
</
template
>
...
...
spec/frontend/packages/details/components/package_history_spec.js
View file @
67acd0f0
...
@@ -57,8 +57,8 @@ describe('Package History', () => {
...
@@ -57,8 +57,8 @@ describe('Package History', () => {
name | icon | text | timeAgoTooltip | link
name | icon | text | timeAgoTooltip | link
${
'
created-on
'
}
|
${
'
clock
'
}
|
${
'
Test package version 1.0.0 was created
'
}
|
${
mavenPackage
.
created_at
}
|
${
null
}
${
'
created-on
'
}
|
${
'
clock
'
}
|
${
'
Test package version 1.0.0 was created
'
}
|
${
mavenPackage
.
created_at
}
|
${
null
}
${
'
updated-at
'
}
|
${
'
pencil
'
}
|
${
'
Test package version 1.0.0 was updated
'
}
|
${
mavenPackage
.
updated_at
}
|
${
null
}
${
'
updated-at
'
}
|
${
'
pencil
'
}
|
${
'
Test package version 1.0.0 was updated
'
}
|
${
mavenPackage
.
updated_at
}
|
${
null
}
${
'
commit
'
}
|
${
'
commit
'
}
|
${
'
Commit sha-baz on branch branch-name
'
}
|
${
null
}
|
${
'
../../commit/sha-baz
'
}
${
'
commit
'
}
|
${
'
commit
'
}
|
${
'
Commit sha-baz on branch branch-name
'
}
|
${
null
}
|
${
mockPipelineInfo
.
project
.
commit_url
}
${
'
pipeline
'
}
|
${
'
pipeline
'
}
|
${
'
Pipeline #1 triggered by foo
'
}
|
${
mockPipelineInfo
.
created_at
}
|
${
'
../../pipelines/1
'
}
${
'
pipeline
'
}
|
${
'
pipeline
'
}
|
${
'
Pipeline #1 triggered by foo
'
}
|
${
mockPipelineInfo
.
created_at
}
|
${
mockPipelineInfo
.
project
.
pipeline_url
}
${
'
published
'
}
|
${
'
package
'
}
|
${
'
Published to the baz project Package Registry
'
}
|
${
mavenPackage
.
created_at
}
|
${
null
}
${
'
published
'
}
|
${
'
package
'
}
|
${
'
Published to the baz project Package Registry
'
}
|
${
mavenPackage
.
created_at
}
|
${
null
}
`
(
'
history element $name
'
,
({
name
,
icon
,
text
,
timeAgoTooltip
,
link
})
=>
{
`
(
'
history element $name
'
,
({
name
,
icon
,
text
,
timeAgoTooltip
,
link
})
=>
{
let
element
;
let
element
;
...
...
spec/frontend/packages/mock_data.js
View file @
67acd0f0
...
@@ -13,6 +13,8 @@ export const mockPipelineInfo = {
...
@@ -13,6 +13,8 @@ export const mockPipelineInfo = {
project
:
{
project
:
{
name
:
'
foo-project
'
,
name
:
'
foo-project
'
,
web_url
:
'
foo-project-link
'
,
web_url
:
'
foo-project-link
'
,
commit_url
:
'
foo-commit-link
'
,
pipeline_url
:
'
foo-pipeline-link
'
,
},
},
created_at
:
'
2015-12-10
'
,
created_at
:
'
2015-12-10
'
,
};
};
...
...
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