Skip to content
Snippets Groups Projects
Unverified Commit 10146e1b authored by Robb Lewis's avatar Robb Lewis
Browse files

Breadcrumbs

parent fff0a7f7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -31,9 +31,18 @@ class TweetController {
$monthCounts = null;
$dayCounts = null;
 
if ($date) $query->forDate($date);
if ($month) $query->forMonth($month);
if ($year) $query->forYear($year);
if ($year) {
$query->forYear($year);
$this->breadcrumbs->addCrumb($year, $year);
}
if ($month) {
$query->forMonth($month);
$this->breadcrumbs->addCrumb(displayMonth($month), $month);
}
if ($date) {
$query->forDate($date);
$this->breadcrumbs->addCrumb(displayDate($date), $date);
}
 
list($ids, $tweets) = $this->tweets->all($query);
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment