Skip to content

Commit

Permalink
Fixed chars count in page info
Browse files Browse the repository at this point in the history
  • Loading branch information
plu committed Jan 7, 2009
1 parent a2a2607 commit ffbd240
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
@@ -1,3 +1,5 @@
- Fixed chars count in page info
- Resolve some fastcgi encoding issues
- Link to revision in info page.
0.999025 2009-01-04 23:39:00
- Updated language selector, add fr to choices.
Expand Down
1 change: 1 addition & 0 deletions lib/MojoMojo/Controller/Page.pm
Expand Up @@ -370,6 +370,7 @@ Display meta information about the current page.

sub info : Global {
my ( $self, $c ) = @_;
$c->stash->{body_length} = length($c->stash->{page}->content->body);
$c->stash->{template} = 'page/info.tt';
}

Expand Down
2 changes: 1 addition & 1 deletion root/base/page/info.tt
Expand Up @@ -13,7 +13,7 @@
<dd>[% page.content_version %]</dd>

<dt>[%loc('Content size')%]:</dt>
<dd>[% page.content.body.length %] [% loc('chars') %]</dd>
<dd>[% body_length %] [% loc('chars') %]</dd>

<dt>[%loc('Children')%]:</dt>
<dd>[% page.children.size || 0 %]</dd>
Expand Down

0 comments on commit ffbd240

Please sign in to comment.