From: pk910 Date: Fri, 15 Feb 2013 16:11:05 +0000 (+0100) Subject: fixed shortlog entrycount & show refname / base commit on shortlog page X-Git-Url: http://git.pk910.de/?p=phpgitweb.git;a=commitdiff_plain;h=a2a32a9c8fe1f0f5f378ed53090dc5f957c092af fixed shortlog entrycount & show refname / base commit on shortlog page --- diff --git a/htdocs/pages/shortlog.class.php b/htdocs/pages/shortlog.class.php index 8e69ffd..091e1d1 100644 --- a/htdocs/pages/shortlog.class.php +++ b/htdocs/pages/shortlog.class.php @@ -70,7 +70,7 @@ class shortlog { $this->first_commit = $commits[0]; foreach($commits as $commit) { $commit_counter++; - if($commit_counter < $skip) + if($commit_counter <= $skip) continue; if($commit_counter > $max+$skip) { $this->have_more = true; @@ -157,6 +157,10 @@ class page_shortlog { CommitLoader::parse(true); $this->page = new ContentProvider('shortlog', 'main'); + if(strtolower(CommitLoader::$commit_base_id) != 'all') { + $this->page->set('refname', ' - '.CommitLoader::$commit_base_id); + } else + $this->page->set('refname', ''); //pages if(array_key_exists('pg', $_GET)) { diff --git a/htdocs/templates/default/shortlog.tpl b/htdocs/templates/default/shortlog.tpl index a88337d..4ac1724 100644 --- a/htdocs/templates/default/shortlog.tpl +++ b/htdocs/templates/default/shortlog.tpl @@ -1,6 +1,6 @@ # [main]
- %project% + %project% %refname%
%shortlog%