Browse Source

Added storage utilization to uplaod page

master
Teknikode 7 months ago
parent
commit
a3d484009b
  1. 2
      IdentityServer/gulpfile.js
  2. 2
      Teknik/Areas/Billing/Controllers/BillingController.cs
  3. 8
      Teknik/Areas/Upload/Views/Upload/Index.cshtml
  4. 2
      Teknik/gulpfile.js

2
IdentityServer/gulpfile.js

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

2
Teknik/Areas/Billing/Controllers/BillingController.cs

@ -14,6 +14,7 @@ using Teknik.BillingCore; @@ -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 @@ -32,6 +33,7 @@ namespace Teknik.Areas.Billing.Controllers
}
[AllowAnonymous]
[TrackPageView]
public IActionResult ViewSubscriptions()
{
ViewBag.Title = "Subscriptions";

8
Teknik/Areas/Upload/Views/Upload/Index.cshtml

@ -41,6 +41,14 @@ @@ -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>

2
Teknik/gulpfile.js

@ -1,4 +1,4 @@ @@ -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');

Loading…
Cancel
Save