Commit 2d121899 authored by Regis's avatar Regis

use path instead of url for commit ref and pipeline url

parent 6a7af99a
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
}, },
template: ` template: `
<td> <td>
<a :href='pipeline.url'> <a :href='pipeline.path'>
<span class="pipeline-id">#{{pipeline.id}}</span> <span class="pipeline-id">#{{pipeline.id}}</span>
</a> </a>
<span>by</span> <span>by</span>
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
}, },
ref(pipeline) { ref(pipeline) {
const { ref } = pipeline; const { ref } = pipeline;
return ({ name: ref.name, tag: ref['tag?'], ref_url: ref.url }); return ({ name: ref.name, tag: ref.tag, ref_url: ref.path });
}, },
commitTitle(pipeline) { commitTitle(pipeline) {
return pipeline.commit ? pipeline.commit.title : ''; return pipeline.commit ? pipeline.commit.title : '';
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
return pipeline.commit ? pipeline.commit.short_id : ''; return pipeline.commit ? pipeline.commit.short_id : '';
}, },
commitUrl(pipeline) { commitUrl(pipeline) {
return pipeline.commit ? pipeline.commit.commit_url : ''; return pipeline.commit ? pipeline.commit.commit_path : '';
}, },
match(string) { match(string) {
return string.replace(/_([a-z])/g, (m, w) => w.toUpperCase()); return string.replace(/_([a-z])/g, (m, w) => w.toUpperCase());
......
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