2011-06-15 09:11:47 +02:00
|
|
|
{extends "idf/issues/base.html"}
|
|
|
|
|
|
|
|
{block docclass}yui-t2{assign $inSummaryIssues=true}{/block}
|
|
|
|
|
|
|
|
{block body}
|
2011-06-15 11:18:41 +02:00
|
|
|
{if $trackerEmpty}
|
|
|
|
{aurl 'create_url', 'IDF_Views_Issue::create', array($project.shortname)}
|
2011-11-29 00:20:15 +01:00
|
|
|
<p>{blocktrans}The issue tracker is empty.<br /><a href="{$create_url}">Create your first issue</a>.{/blocktrans}</p>
|
2011-06-15 11:18:41 +02:00
|
|
|
{else}
|
2011-06-15 09:11:47 +02:00
|
|
|
<div class='issue-summary'>
|
|
|
|
{foreach $tagStatistics as $key => $class}
|
2011-06-15 11:18:41 +02:00
|
|
|
<div>
|
2011-06-15 11:35:30 +02:00
|
|
|
<h2>{blocktrans}Unresolved: By {$key}{/blocktrans}</h2>
|
2011-06-15 11:18:41 +02:00
|
|
|
<table class='issue-summary'>
|
|
|
|
<tbody>
|
|
|
|
{foreach $class as $key => $value}
|
|
|
|
<tr>
|
|
|
|
<td class="name"><a href="{url 'IDF_Views_Issue::listLabel', array($project.shortname, $value[2], 'open')}">{$key}</a></td>
|
|
|
|
<td class="count">{$value[0]}</td>
|
|
|
|
<td class="graph">
|
|
|
|
<table class='graph'>
|
|
|
|
<tbody><tr>
|
2011-06-15 11:30:11 +02:00
|
|
|
<td style="width:{$value[1] * 0.8 + 1}%" class="graph-color" valign="center">
|
2011-06-15 11:18:41 +02:00
|
|
|
<div class="colour-bar"></div>
|
|
|
|
</td>
|
2011-06-15 17:29:29 +02:00
|
|
|
<td class="graph-percent">{$value[1]}%</td>
|
2011-06-15 11:18:41 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
2011-06-15 09:11:47 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2011-06-15 11:18:41 +02:00
|
|
|
</div>
|
2011-06-15 09:11:47 +02:00
|
|
|
{/foreach}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='issue-summary'>
|
2011-06-15 11:18:41 +02:00
|
|
|
{if $status}
|
|
|
|
<div>
|
2011-06-15 11:35:30 +02:00
|
|
|
<h2>{blocktrans}Status Summary{/blocktrans}</h2>
|
2011-06-15 11:18:41 +02:00
|
|
|
<table class='issue-summary'>
|
|
|
|
<tbody>
|
|
|
|
{foreach $status as $key => $value}
|
|
|
|
<tr>
|
|
|
|
<td class="name"><a href="{url 'IDF_Views_Issue::listStatus', array($project.shortname, $key)}">{$key}</a></td>
|
|
|
|
<td class="count">{$value[0]}</td>
|
|
|
|
<td class="graph">
|
|
|
|
<table class='graph'>
|
|
|
|
<tbody><tr>
|
2011-06-15 11:30:11 +02:00
|
|
|
<td style="width:{$value[1] * 0.8 + 1}%" class="graph-color" valign="center">
|
2011-06-15 11:18:41 +02:00
|
|
|
<div class="colour-bar"></div>
|
|
|
|
</td>
|
2011-06-15 17:29:29 +02:00
|
|
|
<td class="graph-percent">{$value[1]}%</td>
|
2011-06-15 11:18:41 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
2011-06-15 09:11:47 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2011-06-15 11:18:41 +02:00
|
|
|
</div>
|
|
|
|
{/if}
|
2011-06-15 09:11:47 +02:00
|
|
|
|
2011-06-15 11:18:41 +02:00
|
|
|
{if $ownerStatistics}
|
|
|
|
<div>
|
2011-06-15 11:35:30 +02:00
|
|
|
<h2>{blocktrans}Unresolved: By Assignee{/blocktrans}</h2>
|
2011-06-15 11:18:41 +02:00
|
|
|
<table class='issue-summary'>
|
|
|
|
<tbody>
|
|
|
|
{foreach $ownerStatistics as $key => $value}
|
|
|
|
<tr>
|
2011-10-04 10:05:42 +02:00
|
|
|
<td class="name">
|
|
|
|
{if !empty($value[2])}
|
|
|
|
{aurl 'url', 'IDF_Views_Issue::userIssues', array($project.shortname, $value[2], 'owner')}
|
|
|
|
<a href="{$url}">{$key}</a>
|
|
|
|
{else}{$key}{/if}
|
|
|
|
</td>
|
2011-06-15 11:18:41 +02:00
|
|
|
<td class="count">{$value[0]}</td>
|
|
|
|
<td class="graph">
|
|
|
|
<table class='graph'>
|
|
|
|
<tbody><tr>
|
2011-06-15 11:30:11 +02:00
|
|
|
<td style="width:{$value[1] * 0.8 + 1}%" class="graph-color" valign="center">
|
2011-06-15 11:18:41 +02:00
|
|
|
<div class="colour-bar"></div>
|
|
|
|
</td>
|
2011-06-15 17:29:29 +02:00
|
|
|
<td class="graph-percent">{$value[1]}%</td>
|
2011-06-15 11:18:41 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/foreach}
|
2011-06-15 09:11:47 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2011-06-15 11:18:41 +02:00
|
|
|
</div>
|
|
|
|
{/if}
|
2011-06-15 09:11:47 +02:00
|
|
|
</div>
|
2011-06-15 11:18:41 +02:00
|
|
|
{/if}
|
2011-06-15 09:11:47 +02:00
|
|
|
{/block}
|