Indefero

Indefero Commit Details


Date:2011-10-01 17:05:08 (13 years 2 months ago)
Author:Thomas Keller
Branch:develop, feature.diff-whitespace, feature.search-filter, feature.wiki-default-page, release-1.2, release-1.3
Commit:e7c2e721b415ccfd87f22b43b0facec2f6aa37a1
Parents: a2c832a130e6063201a627efa9361f0d80f97cd9
Message:The tag cloud was fixed to "issues" for both, the open and closed issue list which is clearly wrong.

Changes:

File differences

NEWS.mdtext
3939
4040
4141
42
4243
4344
4445
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
a git repository
- Indefero now only shows the tags of the closed and not the open issues in the closed issues list
## Documentation
src/IDF/Views/Issue.php
7171
7272
7373
74
74
75
76
7577
7678
7779
......
8890
8991
9092
91
93
9294
9395
9496
......
102104
103105
104106
105
107
106108
107109
108110
......
130132
131133
132134
133
135
134136
135137
136138
137139
138140
139
141
140142
141
143
142144
143145
144146
......
149151
150152
151153
152
154
153155
154156
155157
'page_title' => $title,
'open' => $open,
'closed' => $closed,
'issues' => $pag);
'issues' => $pag,
'cloud' => 'issues',
);
if ($api) return $params;
return Pluf_Shortcuts_RenderToResponse('idf/issues/index.html',
$params, $request);
$ownerStatistics = array();
$status = array();
$isTrackerEmpty = false;
$prj = $request->project;
$opened = $prj->getIssueCountByStatus('open');
$closed = $prj->getIssueCountByStatus('closed');
$status['Open'] = array($opened, (int)(100 * $opened / ($opened + $closed)));
$status['Closed'] = array($closed, (int)(100 * $closed / ($opened + $closed)));
}
if ($opened > 0) {
// Issue owner statistics
$owners = $prj->getIssueCountByOwner('open');
$tagStatistics[$k][$kk] = array($vv[0], (int)(100 * $vv[0] / $nbIssueInClass), $vv[1]);
}
}
// Sort
krsort($tagStatistics);
arsort($ownerStatistics);
}
}
$title = sprintf(__('Summary of tracked issues in %s.'), (string) $prj);
return Pluf_Shortcuts_RenderToResponse('idf/issues/summary.html',
array('page_title' => $title,
'trackerEmpty' => $isTrackerEmpty,
),
$request);
}
/**
* View the issues watch list of a given user.
* Limited to a specified project
src/IDF/templates/idf/issues/index.html
1313
1414
1515
16
1716
1817
{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}
{assign $cloud_url = 'IDF_Views_Issue::listLabel'}
{assign $cloud = 'issues'}
{include 'idf/tags-cloud.html'}
{/block}

Archive Download the corresponding diff file

Page rendered in 0.08795s using 13 queries.