2018-11-18 11:00:15 +05:30
|
|
|
<script>
|
2021-09-30 23:02:18 +05:30
|
|
|
import ProjectAvatar from '~/vue_shared/components/project_avatar.vue';
|
2018-11-18 11:00:15 +05:30
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
2021-09-30 23:02:18 +05:30
|
|
|
ProjectAvatar,
|
2018-11-18 11:00:15 +05:30
|
|
|
},
|
|
|
|
props: {
|
|
|
|
project: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="context-header ide-context-header">
|
2021-09-30 23:02:18 +05:30
|
|
|
<a :href="project.web_url" :title="s__('IDE|Go to project')" data-testid="go-to-project-link">
|
|
|
|
<project-avatar
|
|
|
|
:project-name="project.name"
|
|
|
|
:project-avatar-url="project.avatar_url"
|
|
|
|
:size="48"
|
|
|
|
/>
|
2018-11-18 11:00:15 +05:30
|
|
|
<span class="ide-sidebar-project-title">
|
2019-02-15 15:39:39 +05:30
|
|
|
<span class="sidebar-context-title"> {{ project.name }} </span>
|
2020-10-24 23:57:45 +05:30
|
|
|
<span
|
|
|
|
class="sidebar-context-title text-secondary"
|
|
|
|
data-qa-selector="project_path_content"
|
|
|
|
:data-qa-project-path="project.path_with_namespace"
|
|
|
|
>
|
2018-11-18 11:00:15 +05:30
|
|
|
{{ project.path_with_namespace }}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</template>
|