Skip to content
Snippets Groups Projects
Select Git revision
  • 2de80c26ba343237581751609aed9131999f0d61
  • master default protected
  • dev
  • install
  • new_master
  • protein_ortho
  • documentation
  • pr18
  • dev-licence
  • docker
  • prodigal_train
  • containers
  • module_all
  • functional_tests
  • opti
  • helpers
  • v1.4.1
  • v1.4.0
  • v1.3.1
  • v1.3.0
  • v1.2.0
  • v1.1.0
  • v1.0.1
  • v1.0
24 results

quicktree_func.py

Blame
  • EditGitlab.vue 622 B
    <template>
      <v-row>
        <v-col>
          <v-btn prepend-icon="mdi-gitlab" variant="text" size="small" :href="path" target="_blank">Edit on gitlab</v-btn>
          <v-divider> </v-divider>
        </v-col>
      </v-row>
    </template>
    <script setup lang="ts">
    import { ref } from "vue";
    const { page } = useContent();
    const owner = ref("mdm-lab");
    const repo = ref("wiki");
    const branch = ref("main");
    const baseUrl = ref(new URL("https://gitlab.pasteur.fr"));
    
    const path = computed(() => {
      return new URL(
        `/${owner.value}/${repo.value}/-/edit/${branch.value}/content/${page.value._file}`,
        baseUrl.value
      ).href
    })
    </script>