Commit deb6ccbf authored by Nessun's avatar Nessun

hide purge button

parent 67493336
Pipeline #41333549 failed with stage
in 1 minute and 7 seconds
......@@ -459,16 +459,17 @@ class LibertyTemplate extends BaseTemplate {
$title = $skin->getTitle();
$revid = $skin->getRequest()->getText( 'oldid' );
$watched = $user->isWatched( $skin->getRelevantTitle() ) ? 'unwatch' : 'watch';
$editable = isset($this->data['content_navigation']['views']['edit']);
if ( $title->getNamespace() != NS_SPECIAL ) {
$companionTitle = $title->isTalkPage() ? $title->getSubjectPage() : $title->getTalkPage();
?>
<div class="content-tools">
<div class="btn-group" role="group" aria-label="content-tools">
<?php
$editIcon = $editable ? '<i class="fa fa-edit"></i> ' : '<i class="fa fa-lock"></i> ';
echo Linker::linkKnown(
$title,
'<i class="fa fa-edit"></i> ' . $skin->msg( 'edit' )->plain(),
$editIcon . $skin->msg( 'edit' )->plain(),
[
'class' => 'btn btn-secondary tools-btn',
'title' => Linker::titleAttrib( 'ca-edit', 'withaccess' ),
......@@ -476,23 +477,12 @@ class LibertyTemplate extends BaseTemplate {
],
$revid ? [ 'action' => 'edit', 'oldid' => $revid ] : [ 'action' => 'edit' ]
);
echo Linker::linkKnown(
$title,
$skin->msg( 'liberty-purge' )->plain(),
[
'class' => 'btn btn-secondary tools-btn',
'title' => $skin->msg( 'liberty-tooltip-purge' )->plain() . ' [alt+shift+p]',
'accesskey' => 'p'
],
[ 'action' => 'purge' ]
);
if ( $companionTitle ) {
if ( $title->isTalkPage() ) {
$titlename = $skin->msg( 'articlepage' )->plain();
$titlename = $skin->msg( 'nstab-main' )->plain();
$additionalArrayStuff = [
// @todo FIXME!
'title' => $titlename . '을 불러옵니다. [alt+shift+t]',
'accesskey' => 't'
'title' => Linker::titleAttrib( 'ca-nstab-main', 'withaccess' ),
'accesskey' => Linker::accesskey( 'ca-nstab-main' )
];
} else {
$titlename = $skin->msg( 'talk' )->plain();
......@@ -537,6 +527,16 @@ class LibertyTemplate extends BaseTemplate {
]
);
}
echo Linker::linkKnown(
$title,
$skin->msg( 'liberty-purge' )->plain(),
[
'class' => 'dropdown-item',
'title' => $skin->msg( 'liberty-tooltip-purge' )->plain() . ' [alt+shift+p]',
'accesskey' => 'p'
],
[ 'action' => 'purge' ]
);
echo Linker::linkKnown(
$title,
$skin->msg( $watched )->plain(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment