]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/fusionforge/templates/browse.tmpl
Do not show message "You are viewing an old revision of this page." when reverting
[SourceForge/phpwiki.git] / themes / fusionforge / templates / browse.tmpl
1 <?php
2 $curuserprefs = $user->getPreferences();
3 $action = $request->getArg('action');
4 ?>
5
6 <?php if ($page->exists() and $revision and $revision->hasDefaultContents()) { ?>
7   <p class="error"><?php echo _("Error:")?>
8   <?php echo _("This revision of the page does not exist.")?>
9   <?php echo Button('browse', _("View the current version."), $page)?>
10   </p>
11 <?php } else { ?>
12 <?php if ($revision and !$revision->isCurrent() and ($action!='revert')) { ?>
13   <p class="warning_msg"><?php echo _("Note:")?>
14   <?php echo _("You are viewing an old revision of this page.")?>
15   <?php echo Button('browse', _("View the current version."), $page)?>
16   </p>
17 <?php } ?>
18 <?php if (!empty($redirected)) { ?>
19   <p><?php echo $redirected ?></p>
20 <?php } ?>
21
22 <?php if (WIKI_NAME == "help") { ?>
23 <div class="browsebanner">
24 <table>
25 <tr>
26 <td>This Help page is located in the Forge Help wiki. You are not in your project's wiki.</td>
27 </tr>
28 </table>
29 </div>
30 <?php } ?>
31
32 <?php if ($curuserprefs->get('pageTrail')) { ?>
33 <?plugin PageTrail ?>
34 <?php } ?>
35
36 <?php echo $CONTENT?>
37
38 <?php } ?>
39
40 <div id="footer"><?php // for top & bottom toolbars stylesheet ?>
41   <?php echo Template('browse-footer')?>
42 </div>