blob: 654b94c60944288a17f963030a6d91f7153cf81d [file] [log] [blame]
Radek Krejciae758392017-10-20 10:53:26 +02001<nav #navbar>
2 <a *ngFor="let session of sessionsService.sessions" [class.active]="session.key==activeSession.key"
Radek Krejcib424acd2017-10-20 11:36:46 +02003 (click)="changeActiveSession(session.key)">{{session.device.hostname}}:{{session.device.port}}
Radek Krejciae758392017-10-20 10:53:26 +02004 <span *ngIf="session.key==activeSession.key" class="tab-reload tab-action-first" (click)="reloadData(session.key)">o</span>
5 <span class="tab-close tab-action-last" (click)="disconnect(session.key)">x</span>
6 </a><a (click)="addSession()"><span class="tab-add tab-action-first tab-action-last">+</span></a>
Radek Krejci95bd14c2017-09-21 14:24:13 +02007</nav>
Radek Krejci95bd14c2017-09-21 14:24:13 +02008
Radek Krejciae758392017-10-20 10:53:26 +02009<div class="netopeer-content" [style.padding-top]="'calc(' + navbar.offsetHeight + 'px - -0.7em)'">
Radek Krejci95bd14c2017-09-21 14:24:13 +020010<div *ngIf="sessionsService.activeSession">
Radek Krejciae758392017-10-20 10:53:26 +020011 <p class="msg-failure msg-rounded" *ngIf="err_msg"><span class="msg-close" (click)="err_msg=''">x</span>{{err_msg}}</p>
Radek Krejci95bd14c2017-09-21 14:24:13 +020012
Radek Krejciae758392017-10-20 10:53:26 +020013 <table class="items">
14 <tr class="item_header">
15 <th class="item_left item_actions" [ngSwitch]="activeSession.cpbltsVisibility">
16 <span *ngSwitchCase="false" class="item_action_expand" (click)="getCapabilities(activeSession.key);activeSession.cpbltsVisibility=true">v</span>
17 <span *ngSwitchCase="true" class="item_action_collapse" (click)="activeSession.cpbltsVisibility=false">x</span>
18 </th>
19 <th>Capability / Module</th>
20 <th class="item_right">Version</th>
21 </tr>
22 <ng-container *ngIf="activeSession.cpbltsVisibility==true && activeSession.cpblts">
23 <tr class="item" *ngFor="let cap of activeSession.cpblts">
24 <td class="item_left">&nbsp;</td>
25 <td>{{parseCapabilityName(cap)}}</td>
26 <td class="item_right">{{parseCapabilityRevision(cap)}}</td>
27 </tr>
28 </ng-container>
29 </table>
30
31 <table class="items">
32 <tr class="item_header">
33 <th class="item_left item_actions" [ngSwitch]="activeSession.dataVisibility">
34 <span *ngSwitchCase="false" class="item_action_expand" (click)="rpcGet(activeSession.key);activeSession.dataVisibility=true">v</span>
35 <span *ngSwitchCase="true" class="item_action_collapse" (click)="activeSession.dataVisibility=false">x</span>
36 </th>
37 <th class="item_right">Data</th>
38 </tr>
39 </table>
40 <ng-container *ngIf="activeSession.dataVisibility==true && activeSession.data">
41<!--
42 <div id="config-toc">
43 <div class="config-toc-item" [ngSwitch]="activeSession.dataVisibility">
44 <a *ngSwitchCase="false" (click)="rpcGet(activeSession.key);activeSession.dataVisibility=true">show data</a>
45 <a *ngSwitchCase="true" (click)="activeSession.dataVisibility=false">hide data</a>
46 </div>
47 </div>
48-->
49 <div id="config-data">
50 <pre >{{activeSession.data | json}}</pre>
51 </div>
52 </ng-container>
Radek Krejci95bd14c2017-09-21 14:24:13 +020053</div>
54
55</div>