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

model_row.vue « components « index « models « routes « model_registry « ml « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4f91f0939a83075b267d4d9143fc51f1b8ee4a0b (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
34
35
<script>
import { GlLink } from '@gitlab/ui';
import { modelVersionCountMessage } from '../translations';

export default {
  name: 'MlModelRow',
  components: {
    GlLink,
  },
  props: {
    model: {
      type: Object,
      required: true,
    },
  },
  computed: {
    hasVersions() {
      return this.model.version != null;
    },
  },
  modelVersionCountMessage,
};
</script>

<template>
  <div class="gl-border-b-solid gl-border-b-1 gl-border-b-gray-100 gl-py-3">
    <gl-link :href="model.path" class="gl-text-body gl-font-weight-bold gl-line-height-24">
      {{ model.name }}
    </gl-link>

    <div class="gl-text-secondary">
      {{ $options.modelVersionCountMessage(model.version, model.versionCount) }}
    </div>
  </div>
</template>