2022-01-26 12:08:38 +05:30
|
|
|
<script>
|
|
|
|
import { GlIcon, GlLink } from '@gitlab/ui';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
GlIcon,
|
|
|
|
GlLink,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
lines: {
|
|
|
|
type: Number,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<div class="line-numbers">
|
|
|
|
<gl-link
|
|
|
|
v-for="line in lines"
|
|
|
|
:id="`L${line}`"
|
|
|
|
:key="line"
|
2022-03-02 08:16:31 +05:30
|
|
|
class="diff-line-num gl-shadow-none!"
|
|
|
|
:to="`#LC${line}`"
|
2022-01-26 12:08:38 +05:30
|
|
|
:data-line-number="line"
|
|
|
|
>
|
|
|
|
<gl-icon :size="12" name="link" />
|
|
|
|
{{ line }}
|
|
|
|
</gl-link>
|
|
|
|
</div>
|
|
|
|
</template>
|