mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 18:13:44 +03:00
Unify params table for no-params case
This commit is contained in:
parent
93d7d98ad7
commit
5c49fc49f0
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user