BigW Consortium Gitlab

Commit 1f50b3fe by Regis

render valid user props for pipeline user

parent 8856d5a8
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
], ],
computed: { computed: {
user() { user() {
if (!this.pipeline.user === null) return true; // debugger
if (this.pipeline.user) return true;
return false; return false;
}, },
}, },
...@@ -23,14 +24,14 @@ ...@@ -23,14 +24,14 @@
<span>by</span> <span>by</span>
<a <a
v-if='user' v-if='user'
:href='pipeline.user.url' :href='pipeline.user.web_url'
> >
<img <img
v-if='user' v-if='user'
class="avatar has-tooltip s20 " class="avatar has-tooltip s20 "
:title='pipeline.user.name' :title='pipeline.user.name'
data-container="body" data-container="body"
:src='pipeline.user.avatar_url || pipeline.user.gravatar' :src='pipeline.user.avatar_url'
> >
</a> </a>
<span <span
......
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