projects: show no projects/projectgroups message

This commit is contained in:
Simone Gotti 2019-04-29 16:33:34 +02:00
parent 1275478185
commit 30fba20a2b
1 changed files with 22 additions and 16 deletions

View File

@ -1,27 +1,33 @@
<template> <template>
<div> <div>
<h4 class="title is-4">Projects</h4> <h4 class="title is-4">Projects</h4>
<div class="item-list" v-for="project in projects" v-bind:key="project.id"> <div v-if="projects.length > 0">
<router-link <div class="item-list" v-for="project in projects" v-bind:key="project.id">
tag="div" <router-link
class="item" tag="div"
:to="projectLink(ownertype, ownername, ref(project.name))" class="item"
> :to="projectLink(ownertype, ownername, ref(project.name))"
<span class="name">{{project.name}}</span> >
</router-link> <span class="name">{{project.name}}</span>
</router-link>
</div>
</div> </div>
<div v-else class="item-list">No projects</div>
<hr> <hr>
<h4 class="title is-4">Project Groups</h4> <h4 class="title is-4">Project Groups</h4>
<div class="item-list" v-for="projectgroup in projectgroups" v-bind:key="projectgroup.id"> <div v-if="projectgroups.length > 0">
<router-link <div class="item-list" v-for="projectgroup in projectgroups" v-bind:key="projectgroup.id">
tag="div" <router-link
class="item" tag="div"
:to="projectGroupLink(ownertype, ownername, ref(projectgroup.name))" class="item"
> :to="projectGroupLink(ownertype, ownername, ref(projectgroup.name))"
<span class="name">{{projectgroup.name}}</span> >
</router-link> <span class="name">{{projectgroup.name}}</span>
</router-link>
</div>
</div> </div>
<div v-else class="item-list">No project groups</div>
</div> </div>
</template> </template>