diff options
| author | 2014-06-15 12:13:33 -0400 | |
|---|---|---|
| committer | 2014-06-15 12:13:33 -0400 | |
| commit | 60fe99344e1d87850f1a44791c1f0a675d13c756 (patch) | |
| tree | 272ebbc35d0c28b4b049cb10a4e8868e12f808a8 /app/views/stats | |
| parent | e9cee8cc20835b3151de70e4df25cc5e80c4ec85 (diff) | |
Refactor and formatting
Diffstat (limited to 'app/views/stats')
| -rw-r--r-- | app/views/stats/idle.phtml | 24 | ||||
| -rw-r--r-- | app/views/stats/index.phtml (renamed from app/views/stats/main.phtml) | 36 |
2 files changed, 30 insertions, 30 deletions
diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml index 26806bb0e..3ea70624a 100644 --- a/app/views/stats/idle.phtml +++ b/app/views/stats/idle.phtml @@ -1,19 +1,19 @@ <?php $this->partial('aside_stats'); ?> <div class="post content"> - <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Minz_Translate::t ('back_to_rss_feeds'); ?></a> - - <h1><?php echo Minz_Translate::t ('stats_idle'); ?></h1> - - <?php foreach ($this->idleFeeds as $period => $feeds){ ?> - <div class="stat"> - <h2><?php echo Minz_Translate::t ($period); ?></h2> + <a href="<?php echo _url ('index', 'index'); ?>"><?php echo _t ('back_to_rss_feeds'); ?></a> + + <h1><?php echo _t ('stats_idle'); ?></h1> + + <?php foreach ($this->idleFeeds as $period => $feeds){ ?> + <div class="stat"> + <h2><?php echo _t ($period); ?></h2> - <ul> - <?php foreach ($feeds as $feed){ ?> - <li><?php echo $feed; ?></li> + <ul> + <?php foreach ($feeds as $feed){ ?> + <li><?php echo $feed; ?></li> <?php } ?> - </ul> - </div> + </ul> + </div> <?php } ?> </div> diff --git a/app/views/stats/main.phtml b/app/views/stats/index.phtml index fe372e221..a48181fe4 100644 --- a/app/views/stats/main.phtml +++ b/app/views/stats/index.phtml @@ -1,38 +1,38 @@ <?php $this->partial('aside_stats'); ?> <div class="post content"> - <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Minz_Translate::t ('back_to_rss_feeds'); ?></a> - - <h1><?php echo Minz_Translate::t ('stats_main'); ?></h1> + <a href="<?php echo _url ('index', 'index'); ?>"><?php echo _t ('back_to_rss_feeds'); ?></a> + + <h1><?php echo _t ('stats_main'); ?></h1> - <div class="stat"> - <h2><?php echo Minz_Translate::t ('stats_entry_repartition'); ?></h2> + <div class="stat"> + <h2><?php echo _t ('stats_entry_repartition'); ?></h2> <table> <thead> <tr> <th> </th> - <th><?php echo Minz_Translate::t ('main_stream'); ?></th> - <th><?php echo Minz_Translate::t ('all_feeds'); ?></th> + <th><?php echo _t ('main_stream'); ?></th> + <th><?php echo _t ('all_feeds'); ?></th> </tr> </thead> <tbody> <tr> - <th><?php echo Minz_Translate::t ('status_total'); ?></th> + <th><?php echo _t ('status_total'); ?></th> <td class="numeric"><?php echo formatNumber($this->repartition['main_stream']['total']); ?></td> <td class="numeric"><?php echo formatNumber($this->repartition['all_feeds']['total']); ?></td> </tr> <tr> - <th><?php echo Minz_Translate::t ('status_read'); ?></th> + <th><?php echo _t ('status_read'); ?></th> <td class="numeric"><?php echo formatNumber($this->repartition['main_stream']['read']); ?></td> <td class="numeric"><?php echo formatNumber($this->repartition['all_feeds']['read']); ?></td> </tr> <tr> - <th><?php echo Minz_Translate::t ('status_unread'); ?></th> + <th><?php echo _t ('status_unread'); ?></th> <td class="numeric"><?php echo formatNumber($this->repartition['main_stream']['unread']); ?></td> <td class="numeric"><?php echo formatNumber($this->repartition['all_feeds']['unread']); ?></td> </tr> <tr> - <th><?php echo Minz_Translate::t ('status_favorites'); ?></th> + <th><?php echo _t ('status_favorites'); ?></th> <td class="numeric"><?php echo formatNumber($this->repartition['main_stream']['favorite']); ?></td> <td class="numeric"><?php echo formatNumber($this->repartition['all_feeds']['favorite']); ?></td> </tr> @@ -41,30 +41,30 @@ </div> <div class="stat"> - <h2><?php echo Minz_Translate::t ('stats_entry_per_day'); ?></h2> + <h2><?php echo _t ('stats_entry_per_day'); ?></h2> <div id="statsEntryPerDay" style="height: 300px"></div> </div> <div class="stat"> - <h2><?php echo Minz_Translate::t ('stats_feed_per_category'); ?></h2> + <h2><?php echo _t ('stats_feed_per_category'); ?></h2> <div id="statsFeedPerCategory" style="height: 300px"></div> <div id="statsFeedPerCategoryLegend"></div> </div> <div class="stat"> - <h2><?php echo Minz_Translate::t ('stats_entry_per_category'); ?></h2> + <h2><?php echo _t ('stats_entry_per_category'); ?></h2> <div id="statsEntryPerCategory" style="height: 300px"></div> <div id="statsEntryPerCategoryLegend"></div> </div> <div class="stat"> - <h2><?php echo Minz_Translate::t ('stats_top_feed'); ?></h2> + <h2><?php echo _t ('stats_top_feed'); ?></h2> <table> <thead> <tr> - <th><?php echo Minz_Translate::t ('feed'); ?></th> - <th><?php echo Minz_Translate::t ('category'); ?></th> - <th><?php echo Minz_Translate::t ('stats_entry_count'); ?></th> + <th><?php echo _t ('feed'); ?></th> + <th><?php echo _t ('category'); ?></th> + <th><?php echo _t ('stats_entry_count'); ?></th> </tr> </thead> <tbody> |
