BigW Consortium Gitlab

Commit a1f281e9 by Regis

conditional action buttons - spans for pipeline tags

parent aa6fa88b
......@@ -24,7 +24,12 @@
<div class="controls pull-right">
<div class="btn-group inline">
<div class="btn-group">
<a class="dropdown-toggle btn btn-default" data-toggle="dropdown" type="button">
<a
v-if='pipeline.details.manual_actions.length > 0'
class="dropdown-toggle btn btn-default"
data-toggle="dropdown"
type="button"
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 11" class="icon-play">
<path
fill-rule="evenodd"
......@@ -50,7 +55,12 @@
</ul>
</div>
<div class="btn-group">
<a class="dropdown-toggle btn btn-default build-artifacts" data-toggle="dropdown" type="button">
<a
v-if='pipeline.details.artifacts.length > 0'
class="dropdown-toggle btn btn-default build-artifacts"
data-toggle="dropdown"
type="button"
>
<i class="fa fa-download"></i>
<i class="fa fa-caret-down"></i>
</a>
......
......@@ -22,6 +22,22 @@
</a>
<span>by</span>
<span class="api monospace">{{user}}</span>
<span
v-if='pipeline.flags.latest === true'
class="label label-success has-tooltip"
title=""
data-original-title="Latest build for this branch"
>
latest
</span>
<span
v-if='pipeline.flags.yaml_errors === true'
class="label label-danger has-tooltip"
title=""
data-original-title="Undefined yaml error"
>
yaml invalid
</span>
</td>
`,
});
......
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