Permalink
Browse files

Adding missing titles.

  • Loading branch information...
davidpersson committed Feb 7, 2011
1 parent eb6d528 commit ec87889b332cbda6c88d4bb218e9954c35828886
Showing with 4 additions and 2 deletions.
  1. +2 −0 views/pastes/form.html.php
  2. +1 −1 views/pastes/index.html.php
  3. +1 −1 views/pastes/view.html.php
@@ -1,3 +1,5 @@
+<h2><?=$this->title($this->_request->action == 'add' ? 'New Paste' : 'Edit Paste'); ?></h2>
+
<?=$this->form->create($paste, compact('url') + array('method' => 'POST')); ?>
<?php if (isset($paste->id) && isset($paste->rev)): ?>
@@ -3,7 +3,7 @@
return strlen($string) > $length ? substr($string, 0, $length) . '' : $string;
}
?>
-<h2>Latest</h2>
+<h2><?=$this->title('Latest Pastes'); ?></h2>
<?php if ($latest->count()): ?>
<table class="pastes">
<tr>
@@ -1,4 +1,4 @@
-<h2>View Paste</h2>
+<h2><?=$this->title('View Paste'); ?></h2>
<div class="paste">
<div class="meta">
This <span class="language"><?=$paste->language;?></span> paste was created by

0 comments on commit ec87889

Please sign in to comment.