aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-06-09 06:17:26 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-06-09 06:17:26 +0000
commitd4ba6fb5cbbd5bf1e040be516009afd68d954571 (patch)
treea48232edecc202269269fb16f38039e6f6cf8642 /h-source/Application/Views
parent3e63edf93ce77bae2891d1d0e5552768453e8404 (diff)
administrators can now see the deleted pages
Diffstat (limited to 'h-source/Application/Views')
-rw-r--r--h-source/Application/Views/My/panel.php2
-rw-r--r--h-source/Application/Views/Notebooks/page.php5
-rw-r--r--h-source/Application/Views/moderator_dialog.php5
-rw-r--r--h-source/Application/Views/page.php5
-rw-r--r--h-source/Application/Views/top_left.php3
5 files changed, 15 insertions, 5 deletions
diff --git a/h-source/Application/Views/My/panel.php b/h-source/Application/Views/My/panel.php
index d23d0bd..fd70a98 100644
--- a/h-source/Application/Views/My/panel.php
+++ b/h-source/Application/Views/My/panel.php
@@ -28,7 +28,7 @@
<?php if ($userBlocked) { ?>
<div class="moderator_box">
- Your account has been blocked by a moderator of the website. You can neither insert/modify devices nor submit new issues or messages until some other moderator un-block your account.
+ Your account has been blocked by an administrator of the website. You can neither insert/modify devices nor submit new issues or messages until some other moderator un-block your account.
</div>
<?php } ?>
diff --git a/h-source/Application/Views/Notebooks/page.php b/h-source/Application/Views/Notebooks/page.php
index fd8389a..66c7506 100644
--- a/h-source/Application/Views/Notebooks/page.php
+++ b/h-source/Application/Views/Notebooks/page.php
@@ -20,14 +20,15 @@
// along with h-source. If not, see <http://www.gnu.org/licenses/>.
?>
- <?php if (!$isDeleted) { ?>
+ <?php if (!$isDeleted or $isadmin) { ?>
<?php
$tableName = (strcmp($this->action,'view') === 0) ? 'hardware' : 'revisions';
+ $displayClass = ($isDeleted and $isadmin) ? 'display_none' : null;
?>
<?php foreach ($table as $item) { ?>
- <div class="notebooks_viewall">
+ <div class="notebooks_viewall <?php echo $displayClass;?>">
<!--if revision-->
<?php if (strcmp($this->action,'revision') === 0) { ?>
diff --git a/h-source/Application/Views/moderator_dialog.php b/h-source/Application/Views/moderator_dialog.php
index 94b581c..3b76c4b 100644
--- a/h-source/Application/Views/moderator_dialog.php
+++ b/h-source/Application/Views/moderator_dialog.php
@@ -38,6 +38,11 @@
$(document).ready(function() {
<?php echo $md_javascript;?>
+
+ $(".hidden_message_view_page").click(function(){
+ $(".display_none").css("display","block");
+ return false;
+ });
$(".hidden_message_view_details").click(function(){
diff --git a/h-source/Application/Views/page.php b/h-source/Application/Views/page.php
index ef8b3a2..6fe3c2f 100644
--- a/h-source/Application/Views/page.php
+++ b/h-source/Application/Views/page.php
@@ -20,14 +20,15 @@
// along with h-source. If not, see <http://www.gnu.org/licenses/>.
?>
- <?php if (!$isDeleted) { ?>
+ <?php if (!$isDeleted or $isadmin) { ?>
<?php
$tableName = (strcmp($this->action,'view') === 0) ? 'hardware' : 'revisions';
+ $displayClass = ($isDeleted) ? 'display_none' : null;
?>
<?php foreach ($table as $item) { ?>
- <div class="notebooks_viewall">
+ <div class="notebooks_viewall <?php echo $displayClass;?>">
<!--if revision-->
<?php if (strcmp($this->action,'revision') === 0) { ?>
diff --git a/h-source/Application/Views/top_left.php b/h-source/Application/Views/top_left.php
index e547f08..42e621f 100644
--- a/h-source/Application/Views/top_left.php
+++ b/h-source/Application/Views/top_left.php
@@ -45,6 +45,9 @@
<!--view details-->
<div class="show_hidden_box_ext">
<div class="md_type">device</div>
+ <?php if ($isDeleted) { ?>
+ <a class="hidden_message_view_page" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><?php echo gtext("see the page");?></a> |
+ <?php } ?>
<a id="<?php echo $id_hard;?>" class="hidden_message_view_details" href="<?php echo $this->baseUrl."/home/index/$lang";?>">view details</a>
<div class="details_of_hidden_message">
<div class="moderation_details_box"></div>