From 34a9ee322f947a88a2c620cf9bde90e2fa63277f Mon Sep 17 00:00:00 2001 From: naumov-socolov Date: Fri, 10 Feb 2012 05:28:40 +0300 Subject: [PATCH] [js, css, php] popup styles fixed. backups download link added. --- web/css/popup.css | 24 +++++++++++++++++++++--- web/js/html.js | 4 ++++ web/js/templates.js | 2 +- web/vesta/api/MAIN.class.php | 11 +++++++++++ 4 files changed, 37 insertions(+), 4 deletions(-) diff --git a/web/css/popup.css b/web/css/popup.css index e7d51c0c..57afbbae 100644 --- a/web/css/popup.css +++ b/web/css/popup.css @@ -37,13 +37,13 @@ .d-popup span.close:active{ background-position:0 -33px; } - .d-popup-title{ font-size:11px; text-transform:uppercase; text-align:center; - color:#fffdd4; - margin:0 0 9px; + color:#fffaba; + margin:5px 0 16px; + letter-spacing: 2px; } .d-popup-items{ font-size:12px; @@ -64,4 +64,22 @@ } .d-popup .prop-value{ color:#fff; + margin-bottom: 5px; } +.d-popup-content{ + color: #fff; + font-size: 13px; + line-height: 24px; +} +.d-popup-content li{ + margin-bottom: 5px; + color: #fff; + font-size: 12px; +} +.d-popup-content li strong{ + color: #BDB9AE; + text-transfom: uppercese; + font-weight: normal; + font-size: 10px; + margin-right: 7px; +} diff --git a/web/js/html.js b/web/js/html.js index 529e693a..009f3939 100644 --- a/web/js/html.js +++ b/web/js/html.js @@ -498,6 +498,10 @@ App.HTML.Build.backup_list = function(backups) tpl.set(':OWNER', App.Env.initialParams.auth_user.uid.uid); tpl.set(':CREATED_AT_WDAY', App.Constants.KEY.WDAYS[created_date.getDay()]); tpl.set(':SIZE', App.Helpers.getMbHuman(bckp.SIZE) + ' ' + App.Helpers.getMbHuman(bckp.SIZE, true)); +// tpl.set(':DOWNLOAD_LINK', '/backup/' + App.Env.initialParams.auth_user.uid.uid + '.' + key + '.tar'); + tpl.set(':DOWNLOAD_LINK', '/dispatch.php?jedi_method=MAIN.downloadBackup&key=' + key); + + acc[acc.length++] = tpl.finalize() }); diff --git a/web/js/templates.js b/web/js/templates.js index eea39e12..0cbc99a3 100644 --- a/web/js/templates.js +++ b/web/js/templates.js @@ -1076,7 +1076,7 @@ App.Templates.html = { \ ~!:SIZE~!\ \ - download\ + download\ \
\