Skip to content

Commit

Permalink
Included descriptions in the dropdown menu of phylogenies.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Apr 5, 2018
1 parent e54cef5 commit 5feeb06
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,14 @@
</button>
<ul class="dropdown-menu">
<template v-for="(phylogeny, phylogeny_index) of testcase.phylogenies">
<li><a :href="'#phylogeny-' + phylogeny_index">Phylogeny {{phylogeny_index + 1}}</a></li>
<li><a :href="'#phylogeny-' + phylogeny_index">
<template v-if="phylogeny.hasOwnProperty('description')">
{{phylogeny['description']}}
</template>
<template v-else>
Phylogeny {{phylogeny_index + 1}}
</template>
</a></li>
</template>
<li><a href="javascript:void(0)" onclick="vm.testcase.phylogenies.push({})"><strong>Add phylogeny</strong></a></li>
</ul>
Expand Down

0 comments on commit 5feeb06

Please sign in to comment.