2016-09-24 16:59:55 +08:00
|
|
|
<div id="controls">
|
|
|
|
<div class="actions creatable">
|
|
|
|
<div class="breadcrumb">
|
|
|
|
<div class="crumb svg ui-droppable" data-dir="/">
|
|
|
|
<a ng-click="logout()"><i class="fa fa-home"></i></a>
|
|
|
|
</div>
|
|
|
|
<div class="crumb svg" data-dir="/Test">
|
|
|
|
<a ng-click="cancel()">{{active_vault.name}}</a>
|
|
|
|
</div>
|
|
|
|
<div class="crumb svg last" data-dir="/Test">
|
2016-12-20 06:51:15 +08:00
|
|
|
<a ng-if="storedCredential.credential_id">{{ 'showing.revisions' | translate}} "{{storedCredential.label}}"</a>
|
2016-09-24 16:59:55 +08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-09-24 18:16:07 +08:00
|
|
|
|
|
|
|
<div off-click="closeSelected()">
|
|
|
|
<table class="credential-table" ng-init="menuOpen = false;">
|
|
|
|
<tr ng-repeat="revision in revisions | orderBy:'-created'"
|
|
|
|
ng-click="selectRevision(revision)"
|
|
|
|
ng-class="{'selected': selectedRevision.revision_id == revision.revision_id}">
|
|
|
|
<td>
|
|
|
|
<span class="icon"><i class="fa fa-lock"></i> </span>
|
2016-12-20 06:51:15 +08:00
|
|
|
<span class="label">
|
|
|
|
{{ 'revision.of' | translate}} {{revision.created * 1000 | date:'dd-MM-yyyy @ HH:mm:ss'}} ({{revision.credential_data.label}})
|
|
|
|
<span ng-if="revision.edited_by">{{ 'revision.edited.by' | translate}} {{revision.edited_by}}</span></span>
|
2016-09-24 18:16:07 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2016-09-24 23:13:27 +08:00
|
|
|
<tr ng-show="revisions.length == 0">
|
2016-12-20 06:51:15 +08:00
|
|
|
<td>{{ 'no.revisions' | translate}}</td>
|
2016-09-24 23:13:27 +08:00
|
|
|
</tr>
|
2016-09-24 18:16:07 +08:00
|
|
|
</table>
|
|
|
|
|
|
|
|
<div id="app-sidebar" class="detailsView scroll-container app_sidebar"
|
|
|
|
ng-show="selectedRevision">
|
|
|
|
<span class="close icon-close" ng-click="closeSelected()"
|
|
|
|
alt="Close"></span>
|
2016-12-20 06:51:15 +08:00
|
|
|
<b ng-show="selectedRevision">{{ 'revision.of' | translate}} {{selectedRevision.created * 1000 | date:'dd-MM-yyyy @ HH:mm:ss'}}</b>
|
2016-09-24 18:16:07 +08:00
|
|
|
<table class="revision-details">
|
|
|
|
<tr ng-show="selectedRevision.credential_data.label">
|
|
|
|
<td>
|
2016-12-20 06:51:15 +08:00
|
|
|
{{ 'label' | translate}}
|
2016-09-24 18:16:07 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{selectedRevision.credential_data.label}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="selectedRevision.credential_data.username">
|
|
|
|
<td>
|
2016-12-20 06:51:15 +08:00
|
|
|
{{ 'account' | translate}}
|
2016-09-24 18:16:07 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span credential-field
|
|
|
|
value="selectedRevision.credential_data.username"></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="selectedRevision.credential_data.password">
|
|
|
|
<td>
|
2016-12-20 06:51:15 +08:00
|
|
|
{{ 'password' | translate}}
|
2016-09-24 18:16:07 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span credential-field value="selectedRevision.credential_data.password"
|
|
|
|
secret="'true'"></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="selectedRevision.credential_data.otp.secret">
|
|
|
|
<td>
|
2016-12-20 06:51:15 +08:00
|
|
|
{{ 'otp' | translate}}
|
2016-09-24 18:16:07 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span otp-generator
|
|
|
|
secret="selectedRevision.credential_data.otp.secret"></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="selectedRevision.credential_data.email">
|
|
|
|
<td>
|
2016-12-20 06:51:15 +08:00
|
|
|
{{ 'email' | translate}}
|
2016-09-24 18:16:07 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span credential-field
|
|
|
|
value="selectedRevision.credential_data.email"></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="selectedRevision.credential_data.url">
|
|
|
|
<td>
|
2016-12-20 06:51:15 +08:00
|
|
|
{{ 'url' | translate}}
|
2016-09-24 18:16:07 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span credential-field
|
|
|
|
value="selectedRevision.url"></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="selectedRevision.credential_data.files.length > 0">
|
|
|
|
<td>
|
2016-12-20 06:51:15 +08:00
|
|
|
{{ 'files' | translate}}
|
2016-09-24 18:16:07 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div ng-repeat="file in selectedRevision.credential_data.files"
|
|
|
|
class="link" ng-click="downloadFile(file)">
|
|
|
|
{{file.filename}} ({{file.size | bytes}})
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-repeat="field in selectedRevision.credential_data.custom_fields">
|
|
|
|
<td>
|
|
|
|
{{field.label}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span credential-field value="field.value"
|
|
|
|
secret="field.secret"></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="selectedRevision.credential_data.changed">
|
|
|
|
<td>
|
2016-12-20 06:51:15 +08:00
|
|
|
{{ 'changed' | translate}}
|
2016-09-24 18:16:07 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{selectedRevision.credential_data.changed * 1000 | date:'dd-MM-yyyy @ HH:mm:ss'}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="selectedRevision.credential_data.created">
|
|
|
|
<td>
|
2016-12-20 06:51:15 +08:00
|
|
|
{{ 'created' | translate}}
|
2016-09-24 18:16:07 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{selectedRevision.credential_data.created * 1000 | date:'dd-MM-yyyy @ HH:mm:ss'}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div ng-show="selectedRevision">
|
|
|
|
<button class="button" ng-click="restoreRevision(selectedRevision)" >
|
2016-12-20 06:51:15 +08:00
|
|
|
<span class="fa fa-edit"></span> {{ 'restore.revision' | translate}}
|
2016-09-24 18:16:07 +08:00
|
|
|
</button>
|
|
|
|
<button class="button" ng-click="deleteRevision(selectedRevision)" >
|
2016-12-20 06:51:15 +08:00
|
|
|
<span class="fa fa-trash"></span> {{ 'delete.revision' | translate}}
|
2016-09-24 18:16:07 +08:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2016-09-24 19:18:11 +08:00
|
|
|
</div>
|