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

report_link.vue « components « reports « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1f68f79e487c173e411e054922d7b9213e9d30e4 (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
<script>
/* eslint-disable @gitlab/vue-require-i18n-strings */
export default {
  name: 'ReportIssueLink',
  props: {
    issue: {
      type: Object,
      required: true,
    },
  },
};
</script>
<template>
  <div class="report-block-list-issue-description-link">
    in

    <a
      v-if="issue.urlPath"
      :href="issue.urlPath"
      target="_blank"
      rel="noopener noreferrer nofollow"
      class="break-link"
    >
      {{ issue.path }}<template v-if="issue.line">:{{ issue.line }}</template>
    </a>
    <template v-else>
      {{ issue.path }}<template v-if="issue.line">:{{ issue.line }}</template>
    </template>
  </div>
</template>