diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-02-16 18:15:20 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-02-16 18:15:20 +0000 |
commit | c91a070738a9e46008209c4afe596ff56cfaa777 (patch) | |
tree | e1e996423b9d73a9e09e0c024bf464f349c83876 /h-source/Application/Views/Wiki/history.php | |
parent | 4a27b517fc52dde60e5c1837860e4785317490a6 (diff) |
improved wiki
Diffstat (limited to 'h-source/Application/Views/Wiki/history.php')
-rw-r--r-- | h-source/Application/Views/Wiki/history.php | 86 |
1 files changed, 45 insertions, 41 deletions
diff --git a/h-source/Application/Views/Wiki/history.php b/h-source/Application/Views/Wiki/history.php index ec394f4..b2e2ab5 100644 --- a/h-source/Application/Views/Wiki/history.php +++ b/h-source/Application/Views/Wiki/history.php @@ -22,49 +22,53 @@ <div id="left"> - <div class="position_tree_box"> - <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <a href="<?php echo $this->baseUrl."/wiki/page/$lang";?>">Wiki</a> » <a href="<?php echo $this->baseUrl."/wiki/page/$lang/".encodeUrl($tree_name);?>"><?php echo $tree_name;?></a> » <?php echo gtext('History');?> - </div> - - <div class="notebook_view_title"> - <?php echo gtext('History of the wiki page'); ?> <b><?php echo $tree_name;?></b> - </div> - - <div class="notebook_insert_link"> - <a title="Back to the page <?php echo $tree_name;?>" href="<?php echo $this->baseUrl."/".$this->controller."/page/$lang/".encodeUrl($tree_name);?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a> - </div> + <?php if (!$isDeleted) { ?> - <div class="wiki_external_box"> - - <ul class="page_history"> - - <?php if ($this->viewArgs['page'] === 1) { ?> - <?php foreach ($rev1 as $rev) { ?> - <li class="page_history_current_item"><b><?php echo gtext("Current revision");?>:</b> <?php echo smartDate($rev['wiki']['update_date']);?> by <?php echo $u->getLinkToUserFromId($rev['wiki']['created_by']);?> (<a href="<?php echo $this->baseUrl."/".$this->controller."/differences/$lang/$id/0".$this->viewStatus;?>">diff</a>)</li> - <?php } ?> - <?php } ?> - - <?php foreach ($rev2 as $rev) { ?> - <li class="page_history_item"> - - <a href="<?php echo $this->baseUrl."/".$this->controller."/revision/$lang/".$rev['wiki_revisions']['id_rev'].$this->viewStatus;?>"><?php echo smartDate($rev['wiki_revisions']['update_date']);?></a> by <?php echo $u->getLinkToUserFromId($rev['wiki_revisions']['created_by']);?> - - <?php if (strcmp($rev['wiki_revisions']['id_rev'],$firstRev) !== 0) {?> - (<a href="<?php echo $this->baseUrl."/".$this->controller."/differences/$lang/$id/".$rev['wiki_revisions']['id_rev'].$this->viewStatus;?>">diff</a>) + <div class="position_tree_box"> + <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » <a href="<?php echo $this->baseUrl."/wiki/page/$lang";?>">Wiki</a> » <a href="<?php echo $this->baseUrl."/wiki/page/$lang/".encodeUrl($tree_name);?>"><?php echo $tree_name;?></a> » <?php echo gtext('History');?> + </div> + + <div class="notebook_view_title"> + <?php echo gtext('History of the wiki page'); ?> <b><?php echo $tree_name;?></b> + </div> + + <div class="notebook_insert_link"> + <a title="Back to the page <?php echo $tree_name;?>" href="<?php echo $this->baseUrl."/".$this->controller."/page/$lang/".encodeUrl($tree_name);?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a> + </div> + + <div class="wiki_external_box"> + + <ul class="page_history"> + + <?php if ($this->viewArgs['page'] === 1) { ?> + <?php foreach ($rev1 as $rev) { ?> + <li class="page_history_current_item"><b><?php echo gtext("Current revision");?>:</b> <?php echo smartDate($rev['wiki']['update_date']);?> by <?php echo $u->getLinkToUserFromId($rev['wiki']['created_by']);?> (<a href="<?php echo $this->baseUrl."/".$this->controller."/differences/$lang/$id/0".$this->viewStatus;?>">diff</a>)</li> + <?php } ?> <?php } ?> - - <?php if ($islogged === 'yes' and !$isBlocked) { ?> - (<a href="<?php echo $this->baseUrl.'/'.$this->controller.'/climb/'.$lang.'/'.$rev['wiki_revisions']['id_rev'].$this->viewStatus;?>"><?php echo gtext('Make current'); ?></a>) + + <?php foreach ($rev2 as $rev) { ?> + <li class="page_history_item"> + + <a href="<?php echo $this->baseUrl."/".$this->controller."/revision/$lang/".$rev['wiki_revisions']['id_rev'].$this->viewStatus;?>"><?php echo smartDate($rev['wiki_revisions']['update_date']);?></a> by <?php echo $u->getLinkToUserFromId($rev['wiki_revisions']['created_by']);?> + + <?php if (strcmp($rev['wiki_revisions']['id_rev'],$firstRev) !== 0) {?> + (<a href="<?php echo $this->baseUrl."/".$this->controller."/differences/$lang/$id/".$rev['wiki_revisions']['id_rev'].$this->viewStatus;?>">diff</a>) + <?php } ?> + + <?php if ($islogged === 'yes' and !$isBlocked) { ?> + (<a href="<?php echo $this->baseUrl.'/'.$this->controller.'/climb/'.$lang.'/'.$rev['wiki_revisions']['id_rev'].$this->viewStatus;?>"><?php echo gtext('Make current'); ?></a>) + <?php } ?> + + </li> <?php } ?> - - </li> - <?php } ?> - - </ul> + + </ul> + + </div> + + <div class="history_page_list"> + <?php echo gtext("page list");?>: <?php echo $pageList;?> + </div> - </div> - - <div class="history_page_list"> - <?php echo gtext("page list");?>: <?php echo $pageList;?> - </div> + <?php } ?> |