aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Issues
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-10-06 19:43:29 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-10-06 19:43:29 +0000
commit99a6ba9947839d62a3f09f48a0ba962c23794491 (patch)
tree7666d1738855c02cab2a84ac6a17deda0e2323de /h-source/Application/Views/Issues
parent6feff147f42d74874c4347e5e19f29bf5a568ca7 (diff)
moderators can now hide issues - part 2
Diffstat (limited to 'h-source/Application/Views/Issues')
-rw-r--r--h-source/Application/Views/Issues/view.php14
-rw-r--r--h-source/Application/Views/Issues/viewall.php10
2 files changed, 14 insertions, 10 deletions
diff --git a/h-source/Application/Views/Issues/view.php b/h-source/Application/Views/Issues/view.php
index cbedcde..769717a 100644
--- a/h-source/Application/Views/Issues/view.php
+++ b/h-source/Application/Views/Issues/view.php
@@ -43,25 +43,25 @@
<!--open/close an issue-->
<div class="moderator_box">
<?php if (strcmp($row['issues']['status'],'opened') == 0) { ?>
- This issue is opened
+ <?php echo gtext("This issue is opened");?>
- <a id="<?php echo $row['issues']['id_issue'];;?>" class="close_issue block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Glaze/folder_blue.png">close the issue</a>
+ <a id="<?php echo $row['issues']['id_issue'];;?>" class="close_issue block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Glaze/folder_blue.png"><?php echo gtext("close the issue");?></a>
<?php } else { ?>
- This issue is closed
+ <?php echo gtext("This issue is closed");?>
- <a id="<?php echo $row['issues']['id_issue'];;?>" class="open_issue block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Glaze/folder_blue_open.png">open the issue again</a>
+ <a id="<?php echo $row['issues']['id_issue'];;?>" class="open_issue block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Glaze/folder_blue_open.png"><?php echo gtext("open the issue again");?></a>
<?php } ?>
<?php if (strcmp($row['issues']['deleted'],'no') == 0) { ?>
- <a id="<?php echo $row['issues']['id_issue'];;?>" class="issuehide_issue_del block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_cancel.png">hide the issue</a>
+ <a id="<?php echo $row['issues']['id_issue'];;?>" class="issuehide_issue_del block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_cancel.png"><?php echo gtext("hide the issue");?></a>
<?php } else { ?>
- <div class="issue_hidden_notice">This issue is hidden for all the users that are not moderators</div>
+ <div class="issue_hidden_notice"><?php echo gtext("This issue is hidden for all the users that are not moderators");?></div>
- <a id="<?php echo $row['issues']['id_issue'];;?>" class="issueshow_issue_del block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_ok.png">show the issue</a>
+ <a id="<?php echo $row['issues']['id_issue'];;?>" class="issueshow_issue_del block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/button_ok.png"><?php echo gtext("show the issue");?></a>
<?php } ?>
diff --git a/h-source/Application/Views/Issues/viewall.php b/h-source/Application/Views/Issues/viewall.php
index 1705670..d5d652f 100644
--- a/h-source/Application/Views/Issues/viewall.php
+++ b/h-source/Application/Views/Issues/viewall.php
@@ -55,8 +55,10 @@
</thead>
<?php foreach ($table as $row) { ?>
- <tr>
- <td><a href="<?php echo $this->baseUrl."/issues/view/$lang/".$row['issues']['id_issue'].$this->viewStatus;?>"><?php echo $row['issues']['title'];?></a></td>
+
+ <?php if (strcmp($row['issues']['deleted'],'no') === 0 or $ismoderator) { ?>
+ <tr class="issue_deleted_<?php echo $row['issues']['deleted']?>">
+ <td><a href="<?php echo $this->baseUrl."/issues/view/$lang/".$row['issues']['id_issue'].$this->viewStatus;?>"><?php echo $row['issues']['title'];?></a> <span>(<?php echo gtext("hidden for those who are not moderators");?>)</span></td>
<td><?php echo str_replace('-',' ',$row['issues']['topic']);?></td>
<td><?php echo getLinkToUser($u->getUser($row['issues']['created_by']));?></td>
<td><?php echo smartDate($row['issues']['update_date']);?></td>
@@ -76,6 +78,8 @@
<td><?php echo $row['issues']['status'];?></td>
</tr>
<?php } ?>
+
+ <?php } ?>
</table>
</div>
@@ -86,7 +90,7 @@
<?php if ($islogged === 'yes') { ?>
<div class="add_issue_form">
- <div class="add_issue_form_title">
+ <div class="add_issue_form_title">
<a name="form"><?php echo gtext("Add a new issue");?></a>
</div>