Author: david
Date: Wed Aug 24 16:32:58 2011
New Revision: 9593
Log:
Cosmetic changes. Use and shorten text to discourage weird line breaks
Modified:
trunk/apps/qubit/modules/repository/actions/contextMenuComponent.class.php
trunk/apps/qubit/modules/repository/templates/_contextMenu.php
Modified:
trunk/apps/qubit/modules/repository/actions/contextMenuComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/repository/actions/contextMenuComponent.class.php
Wed Aug 24 16:29:50 2011 (r9592)
+++ trunk/apps/qubit/modules/repository/actions/contextMenuComponent.class.php
Wed Aug 24 16:32:58 2011 (r9593)
@@ -47,7 +47,7 @@
$du = floatval($this->resource->getDiskUsage()) / pow(2, 30);
if (0 < $du && 0.01 > $du)
{
- $this->diskUsage = '< 0.01';
+ $this->diskUsage = '< 0.01';
}
else
{
@@ -60,12 +60,12 @@
$dup = $du / floatval(sfConfig::get('app_repository_quota')) * 100;
if (0 < $dup && 1 > $dup)
{
- $this->diskUsagePercent = '< 1';
+ $this->diskUsagePercent = '< 1';
$this->barPixels = '1';
}
else if (100 < $dup)
{
- $this->diskUsagePercent = '> 100';
+ $this->diskUsagePercent = '> 100';
$this->barPixels = 200;
$this->barColor = '#C33'; // RED!
}
Modified: trunk/apps/qubit/modules/repository/templates/_contextMenu.php
==============================================================================
--- trunk/apps/qubit/modules/repository/templates/_contextMenu.php Wed Aug
24 16:29:50 2011 (r9592)
+++ trunk/apps/qubit/modules/repository/templates/_contextMenu.php Wed Aug
24 16:32:58 2011 (r9593)
@@ -7,7 +7,7 @@
<div class="progressBar" style="padding: 1px; background-color: #CCC;
height: 10px; width: 200px">
<div style="height: 10px; width: <?php echo $barPixels ?>px;
background-color: <?php echo $barColor ?>;"></div>
</div>
- <?php echo __('%1% of %2% <a
href="http://en.wikipedia.org/wiki/Gigabyte">GB</a> allowed (%3%%)',
array('%1%' => $diskUsage, '%2%' => sfConfig::get('app_repository_quota'),
'%3%' => $diskUsagePercent)) ?>
+ <?php echo __('%1% of %2% <a
href="http://en.wikipedia.org/wiki/Gigabyte">GB</a> (%3%%)', array('%1%' =>
$diskUsage, '%2%' => sfConfig::get('app_repository_quota'), '%3%' =>
$diskUsagePercent)) ?>
</div>
</div>
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.