WikiPage displays a locked label when locked. fixes bug #10998

This commit is contained in:
Colin Kuskie 2009-09-16 16:07:59 -07:00
parent 96dba300f7
commit 79b849262c
6 changed files with 23 additions and 1 deletions

View file

@ -299,6 +299,7 @@ sub getTemplateVars {
allowsAttachments => $wiki->get("allowAttachments"),
comments => $self->getFormattedComments(),
canEdit => $self->canEdit,
isProtected => $self->isProtected,
content => $wiki->autolinkHtml(
$self->scrubContent,
{skipTitles => [$self->get('title')]},

View file

@ -59,6 +59,7 @@ our $HELP = {
{ name => 'canEdit',
description => 'canEdit variable',
},
{ name => 'isProtected', },
{ name => 'historyLabel',
description => 'historyLabel variable',
},

View file

@ -91,6 +91,11 @@ our $I18N =
lastUpdated => 1165790228,
},
'locked' => {
message => q|Locked|,
lastUpdated => 1253139992,
},
'add/edit title' => {
message => q|Wiki Page, Add/Edit Template|,
lastUpdated => 1165790228,