17465811 : fixed - displaying line-thorugh decoration for the closed issues

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4894 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2008-11-19 05:26:34 +00:00
parent 1b57094ae0
commit a0e2ce36df
3 changed files with 8 additions and 1 deletions

View file

@ -10,6 +10,7 @@
var $status = null;
var $component = null;
var $occured_version = null;
var $closed_status = array('invalid', 'resolve');
function issueItem($document_srl = 0) {
parent::documentItem($document_srl);
@ -140,5 +141,9 @@
}
return $content;
}
function isClosed() {
return in_array($this->status, $this->closed_status);
}
}
?>

View file

@ -278,3 +278,4 @@ dd span.source { color:#4F86B0; }
dd span.target { color:#4F86B0; font-weight:bold; }
dd span.key { color:#888888; font-weight:bold; }
dt a { color:#373737; text-decoration: none; }
dt span.closed { text-decoration: line-through; }

View file

@ -14,7 +14,8 @@
<dt class="changeset">
<span class="time">{zdate($changeset->date,"H:i")}</span>
<!--@if($changeset->type == "i")-->
<a href="{getUrl('','document_srl',$changeset->target_srl)}">Issue <em>#{$changeset->target_srl}</em></a> ({$issues[$changeset->target_srl]->getTitleText(30)}) by <span class="author">{$changeset->author}</span>
{@ $oIssue = $issues[$changeset->target_srl]; }
<a href="{getUrl('','document_srl',$changeset->target_srl)}">Issue <em><!--@if($oIssue->isClosed())--><span class="closed"><!--@end-->#{$changeset->target_srl}<!--@if($oIssue->isClosed())--></span><!--@end--></em></a> ({$issues[$changeset->target_srl]->getTitleText(30)}) by <span class="author">{$changeset->author}</span>
<!--@else-->
<a href="{getUrl('act','dispIssuetrackerViewSource','erev',$changeset->revision,'type','log')}">Changeset <em>[{$changeset->revision}]</em></a> by <span class="author">{$changeset->author}</span>
<!--@end-->