d23adad7f6
With an updated eslint version and the addition of eslint-config-openstack and eslint-plugin-angular, there are several more stylistic guidelines to follow. However, this is what other OpenStack angular projects follow such as Horizon. Some notable changes are: * Wrapped javascript content in anonymous functions. This is a safeguard to keep the code from conflicting with other variables with the same name in other scripts on the same page. * Explicitly inject dependencies and have controllers, factories, etc as explicitly declared functions. * Use angular "controller as" syntax instead of assigning variables to $scope. * Added eslint rule that requires JSDoc for every function declaration. Note these are mainly stylistic changes and all the functionality of RefStack should remain the same. Change-Id: I044b1f473d589681a2ae9d2704700dd85687cbb6
38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<h3>User profile</h3>
|
|
<div cg-busy="{promise:ctrl.authRequest,message:'Loading'}"></div>
|
|
<div>
|
|
<table class="table table-striped table-hover">
|
|
<tbody>
|
|
<tr> <td>User name</td> <td>{{auth.currentUser.fullname}}</td> </tr>
|
|
<tr> <td>User OpenId</td> <td>{{auth.currentUser.openid}}</td> </tr>
|
|
<tr> <td>Email</td> <td>{{auth.currentUser.email}}</td> </tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div ng-show="ctrl.pubkeys">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<h4>User Public Keys</h4>
|
|
</div>
|
|
<div class="col-md-2 pull-right">
|
|
<button type="button" class="btn btn-default btn-sm" ng-click="ctrl.openImportPubKeyModal()">
|
|
<span class="glyphicon glyphicon-plus"></span> Import Public Key
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<table class="table table-striped table-hover">
|
|
<tbody>
|
|
<tr ng-repeat="pubKey in ctrl.pubkeys" ng-click="ctrl.openShowPubKeyModal(pubKey)">
|
|
<td>{{pubKey.format}}</td>
|
|
<td>{{pubKey.shortKey}}</td>
|
|
<td>{{pubKey.comment}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|