The tag cloud was fixed to "issues" for both, the open and closed issue list

which is clearly wrong.
feature.search-filter
Thomas Keller 2011-10-02 00:05:08 +02:00
parent a2c832a130
commit e7c2e721b4
3 changed files with 10 additions and 8 deletions

View File

@ -39,6 +39,7 @@ or newer to properly run this version of Indefero!
as we have no information what the author string is actually encoded in as we have no information what the author string is actually encoded in
- Indefero no longer displays an empty parents paragraph in the commit view for root revisions of - Indefero no longer displays an empty parents paragraph in the commit view for root revisions of
a git repository a git repository
- Indefero now only shows the tags of the closed and not the open issues in the closed issues list
## Documentation ## Documentation

View File

@ -71,7 +71,9 @@ class IDF_Views_Issue
'page_title' => $title, 'page_title' => $title,
'open' => $open, 'open' => $open,
'closed' => $closed, 'closed' => $closed,
'issues' => $pag); 'issues' => $pag,
'cloud' => 'issues',
);
if ($api) return $params; if ($api) return $params;
return Pluf_Shortcuts_RenderToResponse('idf/issues/index.html', return Pluf_Shortcuts_RenderToResponse('idf/issues/index.html',
$params, $request); $params, $request);
@ -88,7 +90,7 @@ class IDF_Views_Issue
$ownerStatistics = array(); $ownerStatistics = array();
$status = array(); $status = array();
$isTrackerEmpty = false; $isTrackerEmpty = false;
$prj = $request->project; $prj = $request->project;
$opened = $prj->getIssueCountByStatus('open'); $opened = $prj->getIssueCountByStatus('open');
$closed = $prj->getIssueCountByStatus('closed'); $closed = $prj->getIssueCountByStatus('closed');
@ -102,7 +104,7 @@ class IDF_Views_Issue
$status['Open'] = array($opened, (int)(100 * $opened / ($opened + $closed))); $status['Open'] = array($opened, (int)(100 * $opened / ($opened + $closed)));
$status['Closed'] = array($closed, (int)(100 * $closed / ($opened + $closed))); $status['Closed'] = array($closed, (int)(100 * $closed / ($opened + $closed)));
} }
if ($opened > 0) { if ($opened > 0) {
// Issue owner statistics // Issue owner statistics
$owners = $prj->getIssueCountByOwner('open'); $owners = $prj->getIssueCountByOwner('open');
@ -130,15 +132,15 @@ class IDF_Views_Issue
$tagStatistics[$k][$kk] = array($vv[0], (int)(100 * $vv[0] / $nbIssueInClass), $vv[1]); $tagStatistics[$k][$kk] = array($vv[0], (int)(100 * $vv[0] / $nbIssueInClass), $vv[1]);
} }
} }
// Sort // Sort
krsort($tagStatistics); krsort($tagStatistics);
arsort($ownerStatistics); arsort($ownerStatistics);
} }
} }
$title = sprintf(__('Summary of tracked issues in %s.'), (string) $prj); $title = sprintf(__('Summary of tracked issues in %s.'), (string) $prj);
return Pluf_Shortcuts_RenderToResponse('idf/issues/summary.html', return Pluf_Shortcuts_RenderToResponse('idf/issues/summary.html',
array('page_title' => $title, array('page_title' => $title,
'trackerEmpty' => $isTrackerEmpty, 'trackerEmpty' => $isTrackerEmpty,
@ -149,7 +151,7 @@ class IDF_Views_Issue
), ),
$request); $request);
} }
/** /**
* View the issues watch list of a given user. * View the issues watch list of a given user.
* Limited to a specified project * Limited to a specified project

View File

@ -13,6 +13,5 @@
{blocktrans}<p><strong>Open issues:</strong> <a href="{$open_url}">{$open}</a></p> {blocktrans}<p><strong>Open issues:</strong> <a href="{$open_url}">{$open}</a></p>
<p><strong>Closed issues:</strong> <a href="{$closed_url}">{$closed}</a></p>{/blocktrans} <p><strong>Closed issues:</strong> <a href="{$closed_url}">{$closed}</a></p>{/blocktrans}
{assign $cloud_url = 'IDF_Views_Issue::listLabel'} {assign $cloud_url = 'IDF_Views_Issue::listLabel'}
{assign $cloud = 'issues'}
{include 'idf/tags-cloud.html'} {include 'idf/tags-cloud.html'}
{/block} {/block}