From: <var...@us...> - 2008-09-14 10:22:31
|
Revision: 6259 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6259&view=rev Author: vargenau Date: 2008-09-14 10:22:40 +0000 (Sun, 14 Sep 2008) Log Message: ----------- Do not show the History and Diff buttons if the page does not exist Modified Paths: -------------- trunk/themes/MonoBook/templates/actionbar.tmpl Modified: trunk/themes/MonoBook/templates/actionbar.tmpl =================================================================== --- trunk/themes/MonoBook/templates/actionbar.tmpl 2008-09-10 16:08:26 UTC (rev 6258) +++ trunk/themes/MonoBook/templates/actionbar.tmpl 2008-09-14 10:22:40 UTC (rev 6259) @@ -36,8 +36,14 @@ <?php } else { ?> <?= ActionButton("viewsource", _("View Source")) ?> <?php } ?> + + <?php if ($dbh->isWikiPage($page->getName())) { ?> + <?= ActionButton(_("PageHistory"),_("History"),false,array('title'=>"Past versions of this page. [alt-h]")) ?> <?= ActionButton("diff") ?> + + <?php } ?> + <? if ( $user->isSignedIn() ) { ?> <?= ActionButton("WatchPage", _("Watch"), false, array('title'=>"Add/Remove this to/from the list of pages you're monitoring for changes [alt-l]")) ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2008-09-14 10:30:18
|
Revision: 6260 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6260&view=rev Author: vargenau Date: 2008-09-14 10:30:27 +0000 (Sun, 14 Sep 2008) Log Message: ----------- Use a "Create Page" button instead of "Edit" if the page does not exist Modified Paths: -------------- trunk/themes/MonoBook/templates/actionbar.tmpl Modified: trunk/themes/MonoBook/templates/actionbar.tmpl =================================================================== --- trunk/themes/MonoBook/templates/actionbar.tmpl 2008-09-14 10:22:40 UTC (rev 6259) +++ trunk/themes/MonoBook/templates/actionbar.tmpl 2008-09-14 10:30:27 UTC (rev 6260) @@ -31,7 +31,7 @@ <?= ActionButton(array(),_("Discussion"), $talk->getName(), array('class'=>$isBrowse ? "selected" : "")) ?> <?php } ?> <?php if (($isAdmin or mayAccessPage('edit', $pagename)) and $revision) { ?> - <?= ActionButton("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"), false, + <?= ActionButton("edit", $dbh->isWikiPage($page->getName()) ? ($revision->isCurrent() ? _("Edit") : _("Edit Old Revision")) : _("Create Page"), false, array('id' => 'btn-edit', 'title' => "You can edit this page. Please use the preview button before saving. [alt-e]")) ?> <?php } else { ?> <?= ActionButton("viewsource", _("View Source")) ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2008-09-15 11:50:05
|
Revision: 6262 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6262&view=rev Author: vargenau Date: 2008-09-15 11:50:14 +0000 (Mon, 15 Sep 2008) Log Message: ----------- Add "purge" action Modified Paths: -------------- trunk/themes/MonoBook/templates/actionbar.tmpl Modified: trunk/themes/MonoBook/templates/actionbar.tmpl =================================================================== --- trunk/themes/MonoBook/templates/actionbar.tmpl 2008-09-14 10:37:29 UTC (rev 6261) +++ trunk/themes/MonoBook/templates/actionbar.tmpl 2008-09-15 11:50:14 UTC (rev 6262) @@ -65,6 +65,7 @@ <?php if (!empty($revision) and ($isAdmin or mayAccessPage('remove', $pagename))) { ?> <?= ActionButton('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?> <?= ActionButton('remove') ?> + <?= ActionButton('purge') ?> <?php } ?> <?php } ?> <?= ActionButton(array('action'=>_("PageInfo")), _("Info"), $pagename) ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-04-18 16:48:54
|
Revision: 6787 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6787&view=rev Author: vargenau Date: 2009-04-18 16:48:53 +0000 (Sat, 18 Apr 2009) Log Message: ----------- Update menus more like Mediawiki: - move lock, purge, rename at top of page - avoid duplicates between top and left menus Modified Paths: -------------- trunk/themes/MonoBook/templates/actionbar.tmpl Modified: trunk/themes/MonoBook/templates/actionbar.tmpl =================================================================== --- trunk/themes/MonoBook/templates/actionbar.tmpl 2009-04-18 16:31:34 UTC (rev 6786) +++ trunk/themes/MonoBook/templates/actionbar.tmpl 2009-04-18 16:48:53 UTC (rev 6787) @@ -39,9 +39,17 @@ <?php if ($dbh->isWikiPage($page->getName())) { ?> - <?= ActionButton(_("PageHistory"),_("History"),false,array('title'=>"Past versions of this page. [alt-h]")) ?> - <?= ActionButton("diff") ?> + <?= ActionButton(_("PageHistory"),_("History"),false,array('title'=>"Past versions of this page. [alt-h]")) ?> + <?php if (!empty($revision) and ($isAdmin or mayAccessPage('purge', $pagename))) { ?> + <?= ActionButton("purge") ?> + <?php } ?> + + <?php if ($isAdmin or mayAccessPage('change', $pagename)) { ?> + <?= ActionButton('rename') ?> + <?= ActionButton($page->get('locked') ? 'unlock' : 'lock') ?> + <?php } ?> + <?php } ?> <? if ( $user->isSignedIn() ) { ?> @@ -54,10 +62,8 @@ <h5><?= _("Special Actions") ?></h5> <div class="pBody"> <ul> - <? if ( $user->isSignedIn() ) { ?> + <?php if ( $user->isSignedIn() ) { ?> <?php if ($isAdmin or mayAccessPage('change', $pagename)) { ?> - <?= ActionButton($page->get('locked') ? 'unlock' : 'lock') ?> - <?= ActionButton('rename') ?> <?php if (ENABLE_PAGEPERM and mayAccessPage('change', $pagename)) { ?> <?= ActionButton('chown') ?> <?= ActionButton('setacl') ?> @@ -65,11 +71,9 @@ <?php if (!empty($revision) and ($isAdmin or mayAccessPage('remove', $pagename))) { ?> <?= ActionButton('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?> <?= ActionButton('remove') ?> - <?= ActionButton('purge') ?> <?php } ?> <?php } ?> - <?= ActionButton(array('action'=>_("PageInfo")), _("Info"), $pagename) ?> - <?= ActionButton(array('action'=>_("PageHistory")), _("Page history"), $pagename) ?> + <?= ActionButton(array('action'=>_("PageInfo")), _("Page info"), $pagename) ?> <?= ActionButton(array('action'=>_("AuthorHistory")), _("Author history"), $pagename) ?> <?= ActionButton("diff") ?> <?= ActionButton(array('action'=>_("PageDump")), _("Page dump"), $pagename) ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-09-16 09:02:05
|
Revision: 7125 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7125&view=rev Author: rurban Date: 2009-09-16 09:01:57 +0000 (Wed, 16 Sep 2009) Log Message: ----------- add ActionButton rename Modified Paths: -------------- trunk/themes/MonoBook/templates/actionbar.tmpl Modified: trunk/themes/MonoBook/templates/actionbar.tmpl =================================================================== --- trunk/themes/MonoBook/templates/actionbar.tmpl 2009-09-16 08:45:06 UTC (rev 7124) +++ trunk/themes/MonoBook/templates/actionbar.tmpl 2009-09-16 09:01:57 UTC (rev 7125) @@ -68,6 +68,9 @@ <?= ActionButton('chown') ?> <?= ActionButton('setacl') ?> <?php }} ?> + <?php if ($isAdmin or mayAccessPage('edit', $pagename)) { ?> + <?= ActionButton('rename') ?> + <?php } ?> <?php if (!empty($revision) and ($isAdmin or mayAccessPage('remove', $pagename))) { ?> <?= ActionButton('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?> <?= ActionButton('remove') ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-09-16 09:04:18
|
Revision: 7126 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7126&view=rev Author: rurban Date: 2009-09-16 09:04:10 +0000 (Wed, 16 Sep 2009) Log Message: ----------- oops, revert. already in Views Modified Paths: -------------- trunk/themes/MonoBook/templates/actionbar.tmpl Modified: trunk/themes/MonoBook/templates/actionbar.tmpl =================================================================== --- trunk/themes/MonoBook/templates/actionbar.tmpl 2009-09-16 09:01:57 UTC (rev 7125) +++ trunk/themes/MonoBook/templates/actionbar.tmpl 2009-09-16 09:04:10 UTC (rev 7126) @@ -68,9 +68,6 @@ <?= ActionButton('chown') ?> <?= ActionButton('setacl') ?> <?php }} ?> - <?php if ($isAdmin or mayAccessPage('edit', $pagename)) { ?> - <?= ActionButton('rename') ?> - <?php } ?> <?php if (!empty($revision) and ($isAdmin or mayAccessPage('remove', $pagename))) { ?> <?= ActionButton('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?> <?= ActionButton('remove') ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2022-01-05 16:07:41
|
Revision: 10823 http://sourceforge.net/p/phpwiki/code/10823 Author: vargenau Date: 2022-01-05 16:07:40 +0000 (Wed, 05 Jan 2022) Log Message: ----------- Translate title Modified Paths: -------------- trunk/themes/MonoBook/templates/actionbar.tmpl Modified: trunk/themes/MonoBook/templates/actionbar.tmpl =================================================================== --- trunk/themes/MonoBook/templates/actionbar.tmpl 2022-01-05 16:05:57 UTC (rev 10822) +++ trunk/themes/MonoBook/templates/actionbar.tmpl 2022-01-05 16:07:40 UTC (rev 10823) @@ -48,10 +48,9 @@ <?php } ?> <?php } ?> - - <?php if ( $user->isSignedIn() ) { ?> - <?php echo ActionButton(_("WatchPage"), _("Watch"), false, - array('title'=>"Add/Remove this to/from the list of pages you're monitoring for changes")) ?> + <?php if ($user->isSignedIn()) { ?> + <?php echo ActionButton(__("WatchPage"), _("Watch"), false, + array('title'=>_("Add/Remove this to/from the list of pages you're monitoring for changes"))) ?> <?php } ?> </ul> </div> @@ -61,7 +60,7 @@ <h2><?php echo _("Special Actions") ?></h2> <div class="pBody"> <ul> - <?php if ( $user->isSignedIn() ) { ?> + <?php if ($user->isSignedIn()) { ?> <?php if ($isAdmin or mayAccessPage('change', $pagename)) { ?> <?php if (ENABLE_PAGEPERM and mayAccessPage('change', $pagename)) { ?> <?php echo ActionButton('chown') ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |