Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2009-10-30 23:25:16 (GMT)
committer Aleksey Lim <alsroot@activitycentral.org>2011-02-12 17:33:22 (GMT)
commit2433b260007c71facb973c574c77c568258e12f5 (patch)
tree169600241a307be543243fa7ea95a6176a1f4b2f
parentfab06ad16146f5ac9cde89be36d32ece3b8c238f (diff)
Temporary reorder types of activities until new UI will be commited
-rw-r--r--site/app/views/addons/category_landing.thtml28
1 files changed, 14 insertions, 14 deletions
diff --git a/site/app/views/addons/category_landing.thtml b/site/app/views/addons/category_landing.thtml
index 187a2f8..298faf4 100644
--- a/site/app/views/addons/category_landing.thtml
+++ b/site/app/views/addons/category_landing.thtml
@@ -133,6 +133,20 @@ $summaryLimit = 70;
</ul>
</div>
+ <div id="updated_addons" class="addons_column last clearfix">
+ <h3><span><?=___('Top Rated') ?></span></h3>
+ <ul>
+ <?php foreach ($updated_addons as $idx=>$addon): ?>
+ <li class="<?= (0 == ($idx % 2)) ? 'odd' : 'even' ?>"><a href="<?=$html->url("/addon/{$addon['id']}")?>">
+ <img class="icon" src="<?php echo $addon['icon_url']?>" width="32" height="32" alt="" />
+ <span class="name" title="<?php echo $addon['name'] ?>"><?php echo $html->truncateChars($nameLimit, $addon['name'], true) ?></span>
+ <span class="meta rating"><?=$this->renderElement('amo2009/stars',array('rating' => $addon['averagerating']))?></span>
+ </a></li>
+ <?php endforeach ?>
+ </ul>
+ <p class="view-all"><?=$html->link(___('View all top rated').' »',"/browse/type:{$type_id}/cat:{$cat_id}?sort=rated")?></p>
+ </div>
+
<div id="new_addons" class="addons_column clearfix">
<h3><span><?= ___('Recently Added') ?></span></h3>
<ul>
@@ -163,18 +177,4 @@ $summaryLimit = 70;
<p class="view-all"><?=$html->link(___('View all top downloads').' »',"/browse/type:{$type_id}/cat:{$cat_id}?sort=popular")?></p>
</div>
- <div id="updated_addons" class="addons_column last clearfix">
- <h3><span><?=___('Top Rated') ?></span></h3>
- <ul>
- <?php foreach ($updated_addons as $idx=>$addon): ?>
- <li class="<?= (0 == ($idx % 2)) ? 'odd' : 'even' ?>"><a href="<?=$html->url("/addon/{$addon['id']}")?>">
- <img class="icon" src="<?php echo $addon['icon_url']?>" width="32" height="32" alt="" />
- <span class="name" title="<?php echo $addon['name'] ?>"><?php echo $html->truncateChars($nameLimit, $addon['name'], true) ?></span>
- <span class="meta rating"><?=$this->renderElement('amo2009/stars',array('rating' => $addon['averagerating']))?></span>
- </a></li>
- <?php endforeach ?>
- </ul>
- <p class="view-all"><?=$html->link(___('View all top rated').' »',"/browse/type:{$type_id}/cat:{$cat_id}?sort=rated")?></p>
- </div>
-
</div>