Merge "add web portal framework for TestAPI"
[releng.git] / utils / test / testapi / 3rd_party / static / testapi-ui / components / profile / profile.html
1 <h3>User profile</h3>
2 <div cg-busy="{promise:ctrl.authRequest,message:'Loading'}"></div>
3 <div>
4     <table class="table table-striped table-hover">
5         <tbody>
6             <tr> <td>User name</td> <td>{{auth.currentUser.fullname}}</td> </tr>
7             <tr> <td>User OpenId</td> <td>{{auth.currentUser.openid}}</td> </tr>
8             <tr> <td>Email</td> <td>{{auth.currentUser.email}}</td> </tr>
9         </tbody>
10     </table>
11 </div>
12 <div ng-show="ctrl.pubkeys">
13     <div class="container-fluid">
14         <div class="row">
15             <div class="col-md-4">
16                 <h4>User Public Keys</h4>
17             </div>
18             <div class="col-md-2 pull-right">
19                 <button type="button" class="btn btn-default btn-sm" ng-click="ctrl.openImportPubKeyModal()">
20                     <span class="glyphicon glyphicon-plus"></span> Import Public Key
21                 </button>
22             </div>
23         </div>
24     </div>
25
26     <div>
27         <table class="table table-striped table-hover">
28             <tbody>
29                 <tr ng-repeat="pubKey in ctrl.pubkeys" ng-click="ctrl.openShowPubKeyModal(pubKey)">
30                     <td>{{pubKey.format}}</td>
31                     <td>{{pubKey.shortKey}}</td>
32                     <td>{{pubKey.comment}}</td>
33                 </tr>
34             </tbody>
35         </table>
36     </div>
37 </div>