# Adding quota info inside of app

**URL:** <https://discourse.openondemand.org/t/adding-quota-info-inside-of-app/2030>\
**Category:** Get Help\
**Created:** [April 28, 2022, 11:57am UTC](https://discourse.openondemand.org/t/adding-quota-info-inside-of-app/2030 "2022-04-28T11:57:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![groucho64738](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/groucho64738/32/721_2.png) [@groucho64738](https://discourse.openondemand.org/u/groucho64738)\
**Post date:** [April 28, 2022, 11:57am UTC](https://discourse.openondemand.org/t/adding-quota-info-inside-of-app/2030/1 "2022-04-28T11:57:15Z")

</div>

Hi. I’m creating an app and was wondering if it was possible to display the current user quota at the top of it, so before they launch it, they can see how much space is available.

Is that possible to do? I was originally thinking I could stick some code in the form.yml.erb, but it’s not really a form-type piece of information, but maybe that’s the best way to do it.

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [April 28, 2022, 2:24pm UTC](https://discourse.openondemand.org/t/adding-quota-info-inside-of-app/2030/2 "2022-04-28T14:24:45Z")

</div>

Hello! There’s 2 ways you could go about this I think.

The first is to try and use the threshold but maybe set it lower to something like 50% to display the usage early: [Customization — Open OnDemand 2.0.20 documentation](https://osc.github.io/ood-documentation/latest/customization.html?highlight=quota#disk-quota-warnings-on-dashboard)

The other option is to look at something like the Status App which is a passenger app that sounds to be similar to what you are after. Just swap out the CLI command to list disk usage instead of processes: [Creating a Status App — Open OnDemand 2.0.20 documentation](https://osc.github.io/ood-documentation/latest/app-development/tutorials-passenger-apps/ps-to-quota.html?highlight=quota)

Hopefully one of those options is viable for you, but let me know if not.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [October 25, 2022, 2:25pm UTC](https://discourse.openondemand.org/t/adding-quota-info-inside-of-app/2030/3 "2022-10-25T14:25:22Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
