1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-29 20:54:19 +00:00
5e-drs/docs/.vuepress/theme/components/Edit.vue
2020-06-10 10:30:32 +02:00

24 lines
552 B
Vue

<template>
<div class="d-print-none" v-if="reposity && !$page.frontmatter.notEditable">
<v-divider class="my-4"/>
<v-btn link depressed :href="source" target="_blank" color="accent" outlined><v-icon left>mdi-pencil</v-icon> Corriger</v-btn>
</div>
</template>
<script>
export default {
name: 'Edit',
computed: {
reposity () {
return this.$site.themeConfig.repository
},
source () {
return this.reposity + '/tree/master/docs' + this.$route.path + 'README.md'
}
}
}
</script>
<style lang="scss">
</style>