2018-11-08 19:23:39 +05:30
|
|
|
<script>
|
|
|
|
import Icon from '~/vue_shared/components/icon.vue';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Icon,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
file: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
showButtons() {
|
|
|
|
return this.file.permalink;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2019-02-15 15:39:39 +05:30
|
|
|
<div v-if="showButtons" class="pull-right ide-btn-group">
|
2018-11-08 19:23:39 +05:30
|
|
|
<a
|
|
|
|
:href="file.permalink"
|
|
|
|
:title="s__('IDE|Open in file view')"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>
|
|
|
|
<span class="vertical-align-middle">Open in file view</span>
|
2019-02-15 15:39:39 +05:30
|
|
|
<icon :size="16" name="external-link" css-classes="vertical-align-middle space-right" />
|
2018-11-08 19:23:39 +05:30
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</template>
|