Browse Source

Fixed some nomenclature

feature/billing
Teknikode 7 months ago
parent
commit
88f8cec51c
  1. 4
      Teknik/Areas/Help/Views/Help/API/API.cshtml
  2. 2
      Teknik/Areas/User/Views/User/Settings/BillingSettings.cshtml
  3. 11
      Teknik/Areas/User/Views/User/Settings/UploadSettings.cshtml

4
Teknik/Areas/Help/Views/Help/API/API.cshtml

@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
The Teknik API is free for everyone to use, and is defined on a per service basis.
<br />
<br />
The general API calls can be summarized as follows: <code>@Url.SubRouteUrl("api", "Api.Index")v@(Config.ApiConfig.Version)/<b>Service</b>/<b>Action</b></code>
The general API calls can be summarized as follows: <code>@Url.SubRouteUrl("api", "Api.Index")/v@(Config.ApiConfig.Version)/<b>Service</b>/<b>Action</b></code>
</p>
<h3>Authentication</h3>
<p>
@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
<br />
<br />
<h4>OAuth2 token (sent in a header)</h4>
<code>curl -H "Authorization: token <i>OATH-TOKEN</i>" @Url.SubRouteUrl("api", "Api.Index")v@(Config.ApiConfig.Version)/</code>
<code>curl -H "Authorization: token <i>OATH-TOKEN</i>" @Url.SubRouteUrl("api", "Api.Index")/v@(Config.ApiConfig.Version)/</code>
<br />
<br />
For example, if you're accessing the API via cURL, the following command would associate the create paste with your account. Just replace <code>&lt;OAUTH-TOKEN&gt;</code> with your access token.

2
Teknik/Areas/User/Views/User/Settings/BillingSettings.cshtml

@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
{
<li class="list-group-item" id="@subscription.SubscriptionId">
<h4 class="list-group-item-heading pull-left">@subscription.ProductName: <strong>@(StringHelper.GetBytesReadable(subscription.Storage))</strong> for <strong>@($"${subscription.Price:0.00} / {subscription.Interval}")</strong></h4>
<button role="button" class="btn btn-info cancel-subscription-button pull-right" data-subscription-id="@subscription.SubscriptionId" data-product-id="@subscription.ProductId">Cancel Subscription</button>
<button role="button" class="btn btn-default cancel-subscription-button pull-right" data-subscription-id="@subscription.SubscriptionId" data-product-id="@subscription.ProductId">Cancel Subscription</button>
<div class="clearfix"></div>
</li>
}

11
Teknik/Areas/User/Views/User/Settings/UploadSettings.cshtml

@ -16,11 +16,11 @@ @@ -16,11 +16,11 @@
<div class="col-md-12">
<h3 class="text-center">Upload Limits</h3>
<div class="row">
<div class="col-md-2 col-sm-offset-1"><strong>Storage</strong></div>
<div class="col-md-2 col-sm-offset-1"><strong>Storage:</strong></div>
<div class="col-md-9"><strong>@StringHelper.GetBytesReadable(Model.MaxStorage)</strong></div>
</div>
<div class="row">
<div class="col-md-2 col-sm-offset-1"><strong>File Size</strong></div>
<div class="col-md-2 col-sm-offset-1"><strong>File Size:</strong></div>
<div class="col-md-9"><strong>@StringHelper.GetBytesReadable(Model.MaxFileSize)</strong></div>
</div>
</div>
@ -28,6 +28,13 @@ @@ -28,6 +28,13 @@
<br />
<hr />
<div class="row">
<div class="col-md-12">
<h3 class="text-center">Upload Defaults</h3>
</div>
</div>
<br />
<!form class="form" action="##" method="post" id="updateForm">
<div class="row form-horizontal">

Loading…
Cancel
Save