1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Added storage utilization to uplaod page

This commit is contained in:
Uncled1023 2021-12-01 22:29:19 -08:00
parent 2e945e7d9d
commit a3d484009b
4 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/// <binding ProjectOpened='watch' />
/// <binding BeforeBuild='load-bundle, copy-assets, min, update-version' Clean='clean' />
"use strict";
var gulp = require('gulp');

View File

@ -14,6 +14,7 @@ using Teknik.BillingCore;
using Teknik.Configuration;
using Teknik.Controllers;
using Teknik.Data;
using Teknik.Filters;
using Teknik.Logging;
using Teknik.Utilities.Routing;
@ -32,6 +33,7 @@ namespace Teknik.Areas.Billing.Controllers
}
[AllowAnonymous]
[TrackPageView]
public IActionResult ViewSubscriptions()
{
ViewBag.Title = "Subscriptions";

View File

@ -41,6 +41,14 @@
</div>
</div>
<br />
@if (User.Identity.IsAuthenticated)
{
<div class="row">
<div class="col-sm-12">
<small class="upload__drop-text text-muted">@StringHelper.GetBytesReadable(Model.CurrentTotalSize) / @StringHelper.GetBytesReadable(Model.MaxTotalSize) Storage</small>
</div>
</div>
}
<div class="row">
<div class="col-sm-12">
<small class="upload__drop-text text-muted">(Individual file size limit @StringHelper.GetBytesReadable(Model.MaxUploadSize))</small>

View File

@ -1,4 +1,4 @@
/// <binding ProjectOpened='watch' />
/// <binding BeforeBuild='load-bundle, copy-assets, eslint, min, update-version' Clean='clean' />
"use strict";
var gulp = require('gulp');