|
|
@ -382,10 +382,11 @@ define([
|
|
|
|
var quota = usage/limit;
|
|
|
|
var quota = usage/limit;
|
|
|
|
var $usage = $('<span>', {'class': 'cp-limit-usage'}).css('width', quota*100+'%');
|
|
|
|
var $usage = $('<span>', {'class': 'cp-limit-usage'}).css('width', quota*100+'%');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var urls = common.getMetadataMgr().getPrivateData().accounts;
|
|
|
|
var makeDonateButton = function () {
|
|
|
|
var makeDonateButton = function () {
|
|
|
|
$('<a>', {
|
|
|
|
$('<a>', {
|
|
|
|
'class': 'cp-limit-upgrade btn btn-success',
|
|
|
|
'class': 'cp-limit-upgrade btn btn-success',
|
|
|
|
href: Cryptpad.donateURL,
|
|
|
|
href: urls.donateURL,
|
|
|
|
rel: "noreferrer noopener",
|
|
|
|
rel: "noreferrer noopener",
|
|
|
|
target: "_blank",
|
|
|
|
target: "_blank",
|
|
|
|
}).text(Messages.supportCryptpad).appendTo($container);
|
|
|
|
}).text(Messages.supportCryptpad).appendTo($container);
|
|
|
@ -394,7 +395,7 @@ define([
|
|
|
|
var makeUpgradeButton = function () {
|
|
|
|
var makeUpgradeButton = function () {
|
|
|
|
$('<a>', {
|
|
|
|
$('<a>', {
|
|
|
|
'class': 'cp-limit-upgrade btn btn-success',
|
|
|
|
'class': 'cp-limit-upgrade btn btn-success',
|
|
|
|
href: Cryptpad.upgradeURL,
|
|
|
|
href: urls.upgradeURL,
|
|
|
|
rel: "noreferrer noopener",
|
|
|
|
rel: "noreferrer noopener",
|
|
|
|
target: "_blank",
|
|
|
|
target: "_blank",
|
|
|
|
}).text(Messages.upgradeAccount).appendTo($container);
|
|
|
|
}).text(Messages.upgradeAccount).appendTo($container);
|
|
|
|