49 lines
1.1 KiB
Vue
49 lines
1.1 KiB
Vue
<script>
|
|
import branchesTree from './ide_project_branches_tree.vue';
|
|
import projectAvatarImage from '../../vue_shared/components/project_avatar/image.vue';
|
|
|
|
export default {
|
|
components: {
|
|
branchesTree,
|
|
projectAvatarImage,
|
|
},
|
|
props: {
|
|
project: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div class="projects-sidebar">
|
|
<div class="context-header">
|
|
<a
|
|
:title="project.name"
|
|
:href="project.web_url"
|
|
>
|
|
<div class="avatar-container s40 project-avatar">
|
|
<project-avatar-image
|
|
class="avatar-container project-avatar"
|
|
:link-href="project.path"
|
|
:img-src="project.avatar_url"
|
|
:img-alt="project.name"
|
|
:img-size="40"
|
|
/>
|
|
</div>
|
|
<div class="sidebar-context-title">
|
|
{{ project.name }}
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<div class="multi-file-commit-panel-inner-scroll">
|
|
<branches-tree
|
|
v-for="branch in project.branches"
|
|
:key="branch.name"
|
|
:project-id="project.path_with_namespace"
|
|
:branch="branch"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|