aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Notebooks/page.php
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/Notebooks/page.php
parent3e63edf93ce77bae2891d1d0e5552768453e8404 (diff)
administrators can now see the deleted pages
Diffstat (limited to 'h-source/Application/Views/Notebooks/page.php')
-rw-r--r--h-source/Application/Views/Notebooks/page.php5
1 files changed, 3 insertions, 2 deletions
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) { ?>