From e0d144dce6b33bfaa5195d0275107ab8b7b10cd1 Mon Sep 17 00:00:00 2001 From: brantje Date: Sat, 24 Sep 2016 13:03:12 +0200 Subject: [PATCH] Add expire time to sidebar --- js/templates.js | 2 +- templates/views/show_vault.html | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/js/templates.js b/js/templates.js index 9695504c..7f25cc61 100644 --- a/js/templates.js +++ b/js/templates.js @@ -71,7 +71,7 @@ angular.module('views/share_credential.html', []).run(['$templateCache', functio angular.module('views/show_vault.html', []).run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('views/show_vault.html', - '
+
Showing deleted since: All time {{delete_time | date:\'dd-MM-yyyy @ HH:mm:ss\'}}
{{credential.label}} {{tag.text}}
Label{{selectedCredential.label}}
Account
Password
OTP
E-mail
URL
Files
{{field.label}}
Changed{{selectedCredential.changed * 1000 | date:\'dd-MM-yyyy @ HH:mm:ss\'}}
Created{{selectedCredential.created * 1000 | date:\'dd-MM-yyyy @ HH:mm:ss\'}}
{{tag.text}}
'); + '
+
Showing deleted since: All time {{delete_time | date:\'dd-MM-yyyy @ HH:mm:ss\'}}
{{credential.label}} {{tag.text}}
Label{{selectedCredential.label}}
Account
Password
OTP
E-mail
URL
Files
{{field.label}}
Expire time{{selectedCredential.expire_time * 1000 | date:\'dd-MM-yyyy @ HH:mm:ss\'}}
Changed{{selectedCredential.changed * 1000 | date:\'dd-MM-yyyy @ HH:mm:ss\'}}
Created{{selectedCredential.created * 1000 | date:\'dd-MM-yyyy @ HH:mm:ss\'}}
{{tag.text}}
'); }]); angular.module('views/vaults.html', []).run(['$templateCache', function($templateCache) { diff --git a/templates/views/show_vault.html b/templates/views/show_vault.html index 08d4609f..ac597f84 100644 --- a/templates/views/show_vault.html +++ b/templates/views/show_vault.html @@ -139,7 +139,14 @@ secret="field.secret"> - + + + Expire time + + + {{selectedCredential.expire_time * 1000 | date:'dd-MM-yyyy @ HH:mm:ss'}} + + Changed