debian-mirror-gitlab/app/assets/javascripts/reports/components/report_link.vue

31 lines
656 B
Vue
Raw Normal View History

2018-11-18 11:00:15 +05:30
<script>
2020-04-22 19:07:51 +05:30
/* eslint-disable @gitlab/vue-require-i18n-strings */
2018-11-18 11:00:15 +05:30
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"
>
2021-03-08 18:12:59 +05:30
{{ issue.path }}<template v-if="issue.line">:{{ issue.line }}</template>
2018-11-18 11:00:15 +05:30
</a>
<template v-else>
2021-03-08 18:12:59 +05:30
{{ issue.path }}<template v-if="issue.line">:{{ issue.line }}</template>
2018-11-18 11:00:15 +05:30
</template>
</div>
</template>