diff --git a/src/IDF/Views/Issue.php b/src/IDF/Views/Issue.php index 60a2231..0ccdd3a 100644 --- a/src/IDF/Views/Issue.php +++ b/src/IDF/Views/Issue.php @@ -237,6 +237,7 @@ class IDF_Views_Issue $title = Pluf_Template::markSafe(sprintf(__('Issue %d: %s'), $url, $issue->id, $issue->summary)); $form = false; // The form is available only if logged in. $starred = false; + $closed = in_array($issue->status, $prj->getTagIdsByStatus('closed')); if (!$request->user->isAnonymous()) { $starred = Pluf_Model_InArray($request->user, $issue->get_interested_list()); $params = array( @@ -300,6 +301,7 @@ class IDF_Views_Issue 'form' => $form, 'starred' => $starred, 'page_title' => $title, + 'closed' => $closed, ), $arrays), $request); diff --git a/src/IDF/templates/issues/view.html b/src/IDF/templates/issues/view.html index cc9fa47..f29def8 100644 --- a/src/IDF/templates/issues/view.html +++ b/src/IDF/templates/issues/view.html @@ -42,6 +42,10 @@ {/if} +{if $closed and (!$isOwner and !$isMember)} +
{blocktrans}This issue is marked as closed, add a comment only if you think this issue is still valid and more work is needed to fully fix it.{/blocktrans}
+ +{/if}