Added a warning when adding a comment to a closed issue.
The warning is only displayed for the simple users.
This commit is contained in:
parent
0d4a31c086
commit
a8db15d1e5
@ -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);
|
||||
|
@ -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>
|
||||
|
BIN
www/media/idf/img/warning.png
Normal file
BIN
www/media/idf/img/warning.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 603 B |
Loading…
Reference in New Issue
Block a user