Commit c55ba052 authored by Regis's avatar Regis

add svg to pipeline index haml - prep for commit comp change - [ci skip]

parent 1e7f91f2
...@@ -74,6 +74,15 @@ ...@@ -74,6 +74,15 @@
return nonUser; return nonUser;
}, },
ref(pipeline) {
const { ref } = pipeline;
const commitRef = {
name: ref.name,
tag: ref['tag?'],
ref_url: ref.url,
};
return commitRef;
},
addTimeInterval(id, that) { addTimeInterval(id, that) {
this.allTimeIntervals.push({ id, component: that }); this.allTimeIntervals.push({ id, component: that });
}, },
...@@ -92,10 +101,10 @@ ...@@ -92,10 +101,10 @@
<pipeline-url :pipeline='pipeline'></pipeline-url> <pipeline-url :pipeline='pipeline'></pipeline-url>
<td> <td>
<commit <commit
:tag="pipeline.ref['tag?']" :ref='ref(pipeline)'
:author='author(pipeline)' :author='author(pipeline)'
:tag="pipeline.ref['tag?']"
:title='pipeline.commit.title' :title='pipeline.commit.title'
:ref='pipeline.ref'
:short_sha='pipeline.commit.short_id' :short_sha='pipeline.commit.short_id'
:commit_url='pipeline.commit.commit_url' :commit_url='pipeline.commit.commit_url'
> >
......
...@@ -53,6 +53,8 @@ ...@@ -53,6 +53,8 @@
= render @pipelines, commit_sha: true, stage: true, allow_retry: true = render @pipelines, commit_sha: true, stage: true, allow_retry: true
= paginate @pipelines, theme: 'gitlab' = paginate @pipelines, theme: 'gitlab'
- else - else
.commit-icon-svg.hidden
= custom_icon("icon_commit")
.vue-pipelines-index .vue-pipelines-index
= page_specific_javascript_tag('vue_icons/index.js') = page_specific_javascript_tag('vue_icons/index.js')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment