Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pipelines_artifacts.js « components « pipelines « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f18e2dfadaf0af32e358b5ea462df143181bb547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
export default {
  props: {
    artifacts: {
      type: Array,
      required: true,
    },
  },

  template: `
    <div class="btn-group" role="group">
      <button
        class="dropdown-toggle btn btn-default build-artifacts has-tooltip js-pipeline-dropdown-download"
        title="Artifacts"
        data-placement="top"
        data-toggle="dropdown"
        aria-label="Artifacts">
        <i class="fa fa-download" aria-hidden="true"></i>
        <i class="fa fa-caret-down" aria-hidden="true"></i>
      </button>
      <ul class="dropdown-menu dropdown-menu-align-right">
        <li v-for="artifact in artifacts">
          <a
            rel="nofollow"
            download
            :href="artifact.path">
            <i class="fa fa-download" aria-hidden="true"></i>
            <span>Download {{artifact.name}} artifacts</span>
          </a>
        </li>
      </ul>
    </div>
  `,
};