summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-05-18 18:37:49 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-05-18 18:37:49 +0000
commit274db344ba6e638fdf8c488c2c3c1beb88ae437d (patch)
tree28f5e437836f35cb9f9030e950aeff3ead34dd91 /templates
parentb2315628563fad5e923e25eb2e18f4b584e6182d (diff)
downloadquota-274db344ba6e638fdf8c488c2c3c1beb88ae437d.tar.gz
quota-274db344ba6e638fdf8c488c2c3c1beb88ae437d.tar.bz2
quota-274db344ba6e638fdf8c488c2c3c1beb88ae437d.zip
modularise quota for other packages to include
Diffstat (limited to 'templates')
-rw-r--r--templates/quota.tpl28
-rw-r--r--templates/quota_inc.tpl29
2 files changed, 30 insertions, 27 deletions
diff --git a/templates/quota.tpl b/templates/quota.tpl
index af1df16..f6f181c 100644
--- a/templates/quota.tpl
+++ b/templates/quota.tpl
@@ -6,32 +6,6 @@
{include file="bitpackage:users/my_bitweaver_bar.tpl"}
<div class="body">
- {legend legend="Your Personal Usage Quota"}
- {if $gBitUser->isAdmin()}
- Administrators have no enforced quota limit
- {else}
- {formfeedback error=$errors.disk_quota}
-
- <div class="row">
- {formlabel label="Your disk quota"}
- {forminput}
- {formfeedback note="$quota MB"}
- {/forminput}
- </div>
-
- <div class="row">
- {formlabel label="Your current usage"}
- {forminput}
- {formfeedback note="$usage MB <small>( `$quotaPercent`% )</small>"}
- {/forminput}
- </div>
-
- <div class="row">
- <div style="border:1px solid #ccc;background:#eee;">
- <div style="width:{$quotaPercent}%;background:#f80;text-align:left;color:#000;line-height:30px;"><small>{$quotaPercent}%</small></div>
- </div>
- </div>
- {/if}
- {/legend}
+ {include file="bitpackage:quota/quota_inc.tpl"}
</div> <!-- end .body -->
</div> <!-- end .fisheye -->
diff --git a/templates/quota_inc.tpl b/templates/quota_inc.tpl
new file mode 100644
index 0000000..19ff33d
--- /dev/null
+++ b/templates/quota_inc.tpl
@@ -0,0 +1,29 @@
+{strip}
+{legend legend="Your Personal Usage Quota"}
+ {if $gBitUser->isAdmin()}
+ Administrators have no enforced quota limit
+ {else}
+ {formfeedback error=$errors.disk_quota}
+
+ <div class="row">
+ {formlabel label="Your disk quota"}
+ {forminput}
+ {formfeedback note="$quota MB"}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Your current usage"}
+ {forminput}
+ {formfeedback note="$usage MB <small>( `$quotaPercent`% )</small>"}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ <div style="border:1px solid #ccc;background:#eee;">
+ <div style="width:{$quotaPercent}%;background:#f80;text-align:left;color:#000;line-height:30px;"><small>{$quotaPercent}%</small></div>
+ </div>
+ </div>
+ {/if}
+{/legend}
+{/strip}