show no device message when no devices connected

merge-requests/1/head
Rasika 10 years ago
parent 593c6d7be8
commit 20e3501be7

@ -20,6 +20,7 @@
</thead> </thead>
<tbody> <tbody>
<form method="GET" action="{{myDevicePath}}"> <form method="GET" action="{{myDevicePath}}">
{{#if devices.device}}
{{#each devices.device}} {{#each devices.device}}
<tr class="border-top"> <tr class="border-top">
<th scope="row">{{deviceIdentifier}}</th> <th scope="row">{{deviceIdentifier}}</th>
@ -38,6 +39,14 @@
</td> </td>
</tr> </tr>
{{/each}} {{/each}}
{{else}}
<tr class="border-top">
<th scope="row"></th>
<td colspan="2">
No Devices available.
</td>
</tr>
{{/if}}
</form> </form>
</tbody> </tbody>
</table> </table>

Loading…
Cancel
Save