Unify params table for no-params case

This commit is contained in:
Roman Gotsiy 2015-10-21 12:25:51 +03:00
parent 93d7d98ad7
commit 5c49fc49f0

View File

@ -1,17 +1,23 @@
<small class="no-params" *ng-if="data.noParams"> No parameters </small> <table class="inline">
<!-- General parameters --> <!-- No params -->
<table *ng-if="!data.noParams" class="inline"> <tr *ng-if="data.noParams">
<td colspan="3">
<small class="no-params" > No parameters </small>
</td>
</tr>
<thead> <thead>
<tr> <tr>
<th colspan="3"> Parameters </th> <th colspan="3"> Parameters </th>
</tr> </tr>
<tr> <tr *ng-if="!data.noParams">
<th> Name </th> <th> Name </th>
<th> Description </th> <th> Description </th>
<th> Type </th> <th> Type </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<!-- General parameters -->
<tr *ng-for="#param of data.params"> <tr *ng-for="#param of data.params">
<!--<div class="param">--> <!--<div class="param">-->
<td class="param-name">{{param.name}}</td> <td class="param-name">{{param.name}}</td>