2008-07-25 08:26:05 +00:00
{extends "issues/base.html"}
{block body}
{assign $i = 0}
{assign $nc = $comments.count()}
{foreach $comments as $c}
< div class = "issue-comment{if $i == 0} issue-comment-first{/if}{if $i == ($nc-1)} issue-comment-last{/if}" id = "ic{$c.id}" >
{if $i == 0}{assign $who = $issue.get_submitter()}
< p > {blocktrans}Reported by {$who}, {$c.creation_dtime|date}{/blocktrans}< / p >
{else}{assign $who = $c.get_submitter()}
{aurl 'url', 'IDF_Views_Issue::view', array($project.shortname, $issue.id)}
{assign $id = $c.id}
{assign $url = $url~'#ic'~$c.id}
2008-07-25 12:15:58 +00:00
< p > {blocktrans}Comment < a href = "{$url}" > {$i}< / a > by {$who}, {$c.creation_dtime|date}{/blocktrans}< / p >
2008-07-25 08:26:05 +00:00
{/if}
2008-07-28 18:31:23 +00:00
< pre class = "issue-comment-text" > {if strlen($c.content) > 0}{issuetext $c.content, $project}{else}< i > {trans '(No comments were given for this change.)'}< / i > {/if}< / pre >
2008-07-25 08:26:05 +00:00
{if $i> 0 and $c.changedIssue()}
< div class = "issue-changes" >
{foreach $c.changes as $w => $v}
< strong > {if $w == 'su'}{trans 'Summary:'}{/if}{if $w == 'st'}{trans 'Status:'}{/if}{if $w == 'ow'}{trans 'Owner:'}{/if}{if $w == 'lb'}{trans 'Labels:'}{/if}< / strong > {if $w == 'lb'}{assign $l = implode(', ', $v)}{$l}{else}{$v}{/if}< br / >
{/foreach}
< / div >
{/if}
< / div > {assign $i = $i + 1}{if $i == $nc and false == $form}
< div class = "issue-comment-signin" >
{aurl 'url', 'IDF_Views::login'}{blocktrans}< a href = "{$url}" > Sign in< / a > to reply to this comment.{/blocktrans}
< / div >
{/if}
{/foreach}
{if $form}
< hr / >
{if $form.errors}
< div class = "px-message-error" >
< p > {trans 'The form contains some errors. Please correct them to change the issue.'}< / p >
{if $form.get_top_errors}
{$form.render_top_errors|unsafe}
{/if}
< / div >
{/if}
< form method = "post" enctype = "multipart/form-data" action = "{url 'IDF_Views_Issue::view', array($project.shortname, $issue.id)}" >
< table class = "form" summary = "" >
< tr >
< th > < strong > {$form.f.content.labelTag}:< / strong > < / th >
< td > {if $form.f.content.errors}{$form.f.content.fieldErrors}{/if}
{$form.f.content|unsafe}
< / td >
< / tr >
{if $isOwner or $isMember}
< tr >
< th > < strong > {$form.f.summary.labelTag}:< / strong > < / th >
< td > {if $form.f.summary.errors}{$form.f.summary.fieldErrors}{/if}
{$form.f.summary|unsafe}
< / td >
< / tr >
< tr >
< th > < strong > {$form.f.status.labelTag}:< / strong > < / th >
< td > {if $form.f.status.errors}{$form.f.status.fieldErrors}{/if}
{$form.f.status|unsafe}
< / td >
< / tr >
< tr >
< th > {$form.f.owner.labelTag}:< / th >
< td > {if $form.f.owner.errors}{$form.f.owner.fieldErrors}{/if}
{$form.f.owner|unsafe}
< / td >
< / tr >
< tr >
< th > {$form.f.label1.labelTag}:< / th >
< td >
{if $form.f.label1.errors}{$form.f.label1.fieldErrors}{/if}{$form.f.label1|unsafe}
{if $form.f.label2.errors}{$form.f.label2.fieldErrors}{/if}{$form.f.label2|unsafe}
{if $form.f.label3.errors}{$form.f.label3.fieldErrors}{/if}{$form.f.label3|unsafe}< br / >
{if $form.f.label4.errors}{$form.f.label4.fieldErrors}{/if}{$form.f.label4|unsafe}
{if $form.f.label5.errors}{$form.f.label5.fieldErrors}{/if}{$form.f.label5|unsafe}
{if $form.f.label6.errors}{$form.f.label6.fieldErrors}{/if}{$form.f.label6|unsafe}
< / td >
< / tr > {/if}
< tr >
< td > < / td >
< td > < input type = "submit" value = "{trans 'Submit Changes'}" name = "submit" / > | < a href = "{url 'IDF_Views_Issue::view', array($project.shortname, $issue.id)}" > {trans 'Cancel'}< / a >
< / td >
< / tr >
< / table >
< / form >
{/if}
{/block}
{block context}
< div class = "issue-info" >
{assign $submitter = $issue.get_submitter()}
< p > < strong > {trans 'Created:'}< / strong > < span class = "nobrk" > {$issue.creation_dtime|dateago}< / span > < span class = "nobrk" > {blocktrans}by {$submitter}{/blocktrans}< / span > < / p >
< p >
< strong > {trans 'Updated:'}< / strong > < span class = "nobrk" > {$issue.modif_dtime|dateago}< / span > < / p >
< p >
< strong > {trans 'Status:'}< / strong > {$issue.get_status.name}< / p >
< p >
< strong > {trans 'Owner:'}< / strong > {if $issue.get_owner == null}{trans 'No owner'}{else}{$issue.get_owner}{/if}
< / p > {assign $tags = $issue.get_tags_list()}{if $tags.count()}
< p >
< strong > {trans 'Labels:'}< / strong > < br / >
2008-08-03 22:42:05 +00:00
{foreach $tags as $tag}{aurl 'url', 'IDF_Views_Issue::listLabel', array($project.shortname, $tag.id, 'open')}
2008-07-25 08:26:05 +00:00
< span class = "label" > < a href = "{$url}" class = "label" > < strong > {$tag.class}:< / strong > {$tag.name}< / a > < / span > < br / >
{/foreach}
< / p > {/if}
< / div >
{/block}
{block javascript}{if $form}{include 'issues/js-autocomplete.html'}{/if}{/block}