<?php foreach ($stats as $heading => $rows) { ?> <?php foreach ($rows as $row) { ?> <?php if (!isset($filter) || !$filter || $row['num'] > 100) { ?> <tr> <td style="text-align: right; padding-right: 0.5em;"> <strong><?php echo format_number($row['num']); ?> </strong> </td> <td> <?php echo LsLanguage::pluralize($row['display_name']); ?> </td> </tr> <?php } ?> <?php } } ?> </table> </div>
?> <?php if (RelationshipTable::areSameDescriptions($relationship)) { ?> <?php echo entity_link($relationship['Entity1']); ?> and <?php echo entity_link($relationship['Entity2']); ?> <?php echo $current === NULL ? "are/were" : ($current == '1' ? "are" : "were"); ?> <?php echo LsLanguage::pluralize($relationship['description1']); } else { ?> <?php echo entity_link($relationship['Entity1']); ?> and <?php echo entity_link($relationship['Entity2']); ?> <?php echo $current === NULL ? "have/had" : ($current == '1' ? "have" : "had"); ?> a generic relationship <?php } ?>
?> <?php slot('header_actions', array('remove' => array('credential' => 'deleter', 'url' => 'tag/remove?name=' . $tag->getName(), 'options' => 'post=true confirm=Are you sure you want to remove this tag?'))); ?> <?php foreach ($models as $model) { ?> <?php $pager = eval('return $' . strtolower($model) . '_pager;'); ?> <?php include_partial('global/section', array('title' => LsLanguage::pluralize($model), 'pager' => $pager, 'more' => 'tag/objects?name=' . $tag->getName() . '&model=' . $model)); ?> <div class="padded"> <?php foreach ($pager->execute() as $object) { ?> <strong><?php echo link_to($object, strtolower($model) . '/view?id=' . $object->id); ?> </strong> <br /> <?php } ?> </div>
</tr> <?php foreach ($stats as $label => $count) { ?> <tr class="text_big"> <td style="text-align: right; padding-right: .7em;"> <strong><?php echo format_number($count); ?> </strong> </td> <td> new <?php echo LsLanguage::pluralize($label); ?> </td> </tr> <?php } ?> </table> </div> <?php } ?> <?php cache_save();