/**
  * Loads data for this template
  */
 protected function LoadData()
 {
     $log = GitPHP_DebugLog::GetInstance();
     $log->TimerStart();
     $head = $this->GetProject()->GetHeadCommit();
     $this->tpl->assign('head', $head);
     if (!$head) {
         $this->tpl->assign('enablesearch', false);
     }
     $log->TimerStop('GetHeadCommit');
     //$compat = $this->GetProject()->GetCompat();
     $strategy = null;
     //if ($compat) {
     $strategy = new GitPHP_LogLoad_Git($this->exe);
     //} else {
     //	$strategy = new GitPHP_LogLoad_Raw();
     //}
     $revlist = new GitPHP_Log($this->GetProject(), $this->GetProject()->GetHeadCommit(), $strategy, 17);
     if ($revlist->GetCount() > 16) {
         $this->tpl->assign('hasmorerevs', true);
         $revlist->SetLimit(16);
     }
     $this->tpl->assign('revlist', $revlist);
     $log->TimerStart();
     $taglist = $this->GetProject()->GetTagList()->GetOrderedTags('-creatordate', 17);
     $log->TimerStop('GetTagList');
     if ($taglist) {
         if (count($taglist) > 16) {
             $this->tpl->assign('hasmoretags', true);
             $taglist = array_slice($taglist, 0, 16);
         }
         $this->tpl->assign('taglist', $taglist);
     }
     $log->TimerStart();
     $headlist = $this->GetProject()->GetHeadList()->GetOrderedHeads('-committerdate', 17);
     $log->TimerStop('GetHeadList');
     if ($headlist) {
         if (count($headlist) > 17) {
             $this->tpl->assign('hasmoreheads', true);
             $headlist = array_slice($headlist, 0, 16);
         }
         $this->tpl->assign('headlist', $headlist);
     }
 }
 /**
  * Loads data for this template
  */
 protected function LoadData()
 {
     $commit = $this->GetProject()->GetCommit($this->params['hash']);
     $this->tpl->assign('commit', $commit);
     $this->tpl->assign('head', $this->GetProject()->GetHeadCommit());
     $this->tpl->assign('page', $this->params['page']);
     //$compat = $this->GetProject()->GetCompat();
     $skip = $this->params['page'] * 100;
     $strategy = null;
     //if ($compat || ($skip > $this->config->GetValue('largeskip'))) {
     $strategy = new GitPHP_LogLoad_Git($this->exe);
     //} else {
     //	$strategy = new GitPHP_LogLoad_Raw();
     //}
     $revlist = new GitPHP_Log($this->GetProject(), $commit, $strategy, 101, $skip);
     if ($revlist->GetCount() > 100) {
         $this->tpl->assign('hasmorerevs', true);
         $revlist->SetLimit(100);
     }
     $this->tpl->assign('revlist', $revlist);
     if (isset($this->params['mark'])) {
         $this->tpl->assign('mark', $this->GetProject()->GetCommit($this->params['mark']));
     }
 }