Added a warning when adding a comment to a closed issue.

The warning is only displayed for the simple users.
svn
Loic d'Anterroches 2008-08-13 21:20:47 +02:00
parent 0d4a31c086
commit a8db15d1e5
3 changed files with 6 additions and 0 deletions

View File

@ -237,6 +237,7 @@ class IDF_Views_Issue
$title = Pluf_Template::markSafe(sprintf(__('Issue <a href="%s">%d</a>: %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);

View File

@ -42,6 +42,10 @@
</div>
{/if}
{if $closed and (!$isOwner and !$isMember)}
<p><img src="{media '/idf/img/warning.png'}" style="vertical-align: text-bottom;" alt=" " /> {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}</p>
{/if}
<form method="post" enctype="multipart/form-data" action="{url 'IDF_Views_Issue::view', array($project.shortname, $issue.id)}" >
<table class="form" summary="">
<tr>

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B