Pluralized file criteria, cleaned up CSS and removed dead code
This commit is contained in:
parent
91906e5b5d
commit
927fcbc42d
5 changed files with 22 additions and 56 deletions
|
@ -119,37 +119,6 @@
|
|||
|
||||
<?php } ?>
|
||||
</dd>
|
||||
|
||||
<?php
|
||||
// this will never run due to refactoring of playlist controller. it is replaced with code in update.phtml
|
||||
if ($this->showPoolCount) { ?>
|
||||
<div class='sp_text_font sp_text_font_bold'>
|
||||
<span id='sp_pool_count' class='sp_text_font sp_text_font_bold'>
|
||||
<?php
|
||||
if ($this->poolCount > 1) {
|
||||
echo $this->poolCount;
|
||||
?>
|
||||
<?php echo _("files meet the criteria")?>
|
||||
</span>
|
||||
<span class='checked-icon sp-checked-icon' id='sp_pool_count_icon'></span>
|
||||
<?php
|
||||
} else if ($this->poolCount == 1) {
|
||||
echo $this->poolCount;
|
||||
?>
|
||||
<?php echo _("file meets the criteria")?>
|
||||
</span>
|
||||
<span class='checked-icon sp-checked-icon' id='sp_pool_count_icon'></span>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
0 <?php echo " "._("files meet the criteria")?>
|
||||
</span>
|
||||
<span class='sp-warning-icon' id='sp_pool_count_icon'></span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
|
||||
</form>
|
||||
|
|
|
@ -2,35 +2,29 @@
|
|||
$items = $this->contents;
|
||||
$isStaticSmartBlock = ($this->obj instanceof Application_Model_Block && $this->obj->isStatic());
|
||||
$isPlaylist = ($this->obj instanceof Application_Model_Playlist);
|
||||
if ($this->poolCount) { ?>
|
||||
?>
|
||||
<div class='sp_text_font sp_text_font_bold'>
|
||||
<span id='sp_pool_count' class='sp_text_font sp_text_font_bold'>
|
||||
<?php
|
||||
if ($this->poolCount > 1) {
|
||||
echo $this->poolCount;
|
||||
?>
|
||||
<?php echo _("files meet the criteria")?>
|
||||
</span>
|
||||
<?php
|
||||
if ($this->poolCount) { ?>
|
||||
<span id='sp_pool_count' class='sp_text_font sp_text_font_bold'>
|
||||
<?php
|
||||
if ($this->poolCount > 0) {
|
||||
echo $this->poolCount;
|
||||
echo ngettext(" file meets the criteria", " files meets the criteria", $this->poolCount);
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
<span class='checked-icon sp-checked-icon' id='sp_pool_count_icon'></span>
|
||||
<?php
|
||||
} else if ($this->poolCount == 1) {
|
||||
echo $this->poolCount;
|
||||
?>
|
||||
<?php echo _("file meets the criteria")?>
|
||||
</span>
|
||||
<span class='checked-icon sp-checked-icon' id='sp_pool_count_icon'></span>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
0 <?php echo " "._("files meet the criteria")?>
|
||||
</span>
|
||||
<span class='sp-warning-icon' id='sp_pool_count_icon'></span>
|
||||
<?php
|
||||
}
|
||||
else if ($this->showPoolCount){
|
||||
?>
|
||||
<span class='sp-warning-icon' id='sp_pool_count_icon'></span>
|
||||
<?php echo _("No files meet the criteria");
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
<?php
|
||||
if (count($items) && ($isStaticSmartBlock || $isPlaylist)) : ?>
|
||||
<?php $i = 0; ?>
|
||||
<?php foreach($items as $item) :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue