diff options
Diffstat (limited to '3rd_party/static/testapi-ui/components/profile')
3 files changed, 64 insertions, 52 deletions
diff --git a/3rd_party/static/testapi-ui/components/profile/importPubKeyModal.html b/3rd_party/static/testapi-ui/components/profile/importPubKeyModal.html index 0f55c27..9252b55 100644 --- a/3rd_party/static/testapi-ui/components/profile/importPubKeyModal.html +++ b/3rd_party/static/testapi-ui/components/profile/importPubKeyModal.html @@ -1,27 +1,27 @@ <div class="modal-header"> - <h4>Import Public Key</h4> - <p>Instructions for adding a public key and signature can be found - <a href="https://github.com/openstack/refstack/blob/master/doc/source/uploading_private_results.rst#generate-ssh-keys-locally" - target="_blank" - title="How to generate and upload SSH key and signature with testapi-client">here. - </a> - </p> + <h4>Import Public Key</h4> + <p>Instructions for adding a public key and signature can be found + <a href="https://github.com/openstack/refstack/blob/master/doc/source/uploading_private_results.rst#generate-ssh-keys-locally" + target="_blank" + title="How to generate and upload SSH key and signature with testapi-client">here. + </a> + </p> </div> <div class="modal-body container-fluid"> <div class="row"> - <div class="col-md-2">Public Key</div> - <div class="col-md-9 pull-right"> + <div class="col-md-2">Public Key</div> + <div class="col-md-9 pull-right"> <textarea type="text" rows="10" cols="42" ng-model="modal.raw_key" required></textarea> - </div> + </div> </div> <div class="row"> - <div class="col-md-2">Signature</div> - <div class="col-md-9 pull-right"> + <div class="col-md-2">Signature</div> + <div class="col-md-9 pull-right"> <textarea type="text" rows="10" cols="42" ng-model="modal.self_signature" required></textarea> - </div> + </div> </div> <div class="modal-footer"> - <button class="btn btn-warning btn-sm" ng-click="modal.cancel()">Cancel</button> - <button type="button" class="btn btn-default btn-sm" ng-click="modal.importPubKey()">Import Public Key</button> + <button class="btn btn-warning btn-sm" ng-click="modal.cancel()">Cancel</button> + <button type="button" class="btn btn-default btn-sm" ng-click="modal.importPubKey()">Import Public Key</button> </div> </div> diff --git a/3rd_party/static/testapi-ui/components/profile/profile.html b/3rd_party/static/testapi-ui/components/profile/profile.html index 98b28df..563adbf 100644 --- a/3rd_party/static/testapi-ui/components/profile/profile.html +++ b/3rd_party/static/testapi-ui/components/profile/profile.html @@ -1,40 +1,52 @@ <div class="container-fluid common-main-container"> -<h3>User profile</h3> -<div cg-busy="{promise:ctrl.authRequest,message:'Loading'}"></div> -<div> + <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> - <tr> <td>Role</td> <td> {{auth.currentUser.role}}</td> </tr> - </tbody> + <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> + <tr> + <td>Role</td> + <td>{{auth.currentUser.role}}</td> + </tr> + </tbody> </table> -</div> -<div ng-show="ctrl.pubkeys"> + </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 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> + <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> + </div> </div> diff --git a/3rd_party/static/testapi-ui/components/profile/showPubKeyModal.html b/3rd_party/static/testapi-ui/components/profile/showPubKeyModal.html index 5f63a5e..d397091 100644 --- a/3rd_party/static/testapi-ui/components/profile/showPubKeyModal.html +++ b/3rd_party/static/testapi-ui/components/profile/showPubKeyModal.html @@ -1,11 +1,11 @@ <div class="modal-header"> - <h4>Public Key</h4> + <h4>Public Key</h4> </div> <div class="modal-body container-fluid"> - <textarea type="text" rows="10" cols="67" readonly="readonly">{{modal.rawKey}}</textarea> - <div class="modal-footer"> - <button class="btn btn-warning" ng-click="modal.cancel()">Cancel</button> - <button type="button" class="btn btn-danger btn-sm" ng-click="modal.deletePubKey() " - confirm="Are you sure you want to delete this public key? You will lose management access to any test results signed with this key.">Delete</button> - </div> + <textarea type="text" rows="10" cols="67" readonly="readonly">{{modal.rawKey}}</textarea> + <div class="modal-footer"> + <button class="btn btn-warning" ng-click="modal.cancel()">Cancel</button> + <button type="button" class="btn btn-danger btn-sm" ng-click="modal.deletePubKey() " + confirm="Are you sure you want to delete this public key? You will lose management access to any test results signed with this key.">Delete</button> + </div> </div> |