diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-06-23 19:45:28 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-06-23 19:45:28 +0000 |
commit | e29f02659a5328a52042fb43bd3baad321ee3e91 (patch) | |
tree | b8f6fc9ba122bc5094974e932458f069285fc6b0 /h-source/Application/Views/top_left.php | |
parent | 34adb20d0ffe996bf454ade33ff02fef70968730 (diff) |
administrators can now approve device page submitted by anonymous users
Diffstat (limited to 'h-source/Application/Views/top_left.php')
-rw-r--r-- | h-source/Application/Views/top_left.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/h-source/Application/Views/top_left.php b/h-source/Application/Views/top_left.php index 42e621f..148a863 100644 --- a/h-source/Application/Views/top_left.php +++ b/h-source/Application/Views/top_left.php @@ -31,11 +31,16 @@ <!--delete the page--> <?php if ($isadmin) { ?> <div class="moderator_box_deleted clear_right"> - <?php if ($isDeleted) { ?> + <?php if ($isDeleted and $isApproved) { ?> <?php echo gtext('This device page has been hidden'); ?> <a id="<?php echo $id_hard;?>" class="deviceshow_device 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('restore the device page'); ?></a> + <?php } else if ($isDeleted and !$isApproved) { ?> + <?php echo gtext("This device page has not been approved yet");?> + + <a id="<?php echo $id_hard;?>" class="deviceapprove_device_approved 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('approve the device page'); ?></a> + <?php } else { ?> <a id="<?php echo $id_hard;?>" class="devicehide_device 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 device page'); ?></a> |