logo       

CVS: phpwiki/themes/MonoBook/templates actionbar.tmpl,1.1,1.2: msg#00137

web.wiki.phpwiki.checkins

Subject: CVS: phpwiki/themes/MonoBook/templates actionbar.tmpl,1.1,1.2

Update of /cvsroot/phpwiki/phpwiki/themes/MonoBook/templates
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv646/themes/MonoBook/templates

Modified Files:
actionbar.tmpl
Log Message:
add Discussion link

Index: actionbar.tmpl
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/themes/MonoBook/templates/actionbar.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -2 -b -p -d -r1.1 -r1.2
--- actionbar.tmpl 11 Jun 2004 09:01:51 -0000 1.1
+++ actionbar.tmpl 25 Jan 2005 07:20:56 -0000 1.2
@@ -2,5 +2,5 @@
<!-- $Id$ -->
<?php
- if (!$page->get('locked') || $user->isAdmin())
+ if (!$page->get('locked') || $user->isAdmin() and $revision)
$EditB = Button("edit",
$revision->isCurrent() ? _("Edit") : _("Edit Old
Revision"));
@@ -8,9 +8,10 @@
$EditB = Button("viewsource", _("View Source"));
$Sep = HTML::raw('<li>');
+$dbh = $request->getDbh();
?>
<div id="p-cactions" class="portlet">
<h5>Views</h5>
<ul>
- <? if ( $user->isSignedIn()) { ?>
+ <? if ( $user->isSignedIn() ) { ?>
<?= $EditB ?>
<?php if ($user->isAdmin() or mayAccessPage('change',$page->getName())) {
?>
@@ -24,5 +25,9 @@ $Sep = HTML::raw('<li>');
<?php } ?>
<?php } ?>
- <?=$Sep?><?=
Button(array('action'=>'PageInfo'),_("Info"),$page->getName()) ?>
+ <?=$Sep?><?=
Button(array('action'=>$dbh->isWikiPage('Talk:'.$page->getName()) ? 'browse' :
'create',
+ 'template'=>'TemplateTalk'),
+ _("Discussion"),'Talk:'.$page->getName()) ?>
+ <?=$Sep?><?= Button(array('action'=>'PageInfo'),
+ _("Info"),$page->getName()) ?>
<?php if (((defined('DEBUG') and DEBUG and $request->getArg('action') ==
'browse')) || $user->isAdmin()) { ?>
<!-- Buttons really only for debugging -->



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise