Author: jablko
Date: Thu Oct 14 16:18:10 2010
New Revision: 8133
Log:
Add title
Modified:
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/actions/editAction.class.php
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/actions/indexAction.class.php
Modified:
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/actions/editAction.class.php
==============================================================================
---
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/actions/editAction.class.php
Thu Oct 14 15:57:26 2010 (r8132)
+++
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/actions/editAction.class.php
Thu Oct 14 16:18:10 2010 (r8133)
@@ -66,5 +66,18 @@
parent::earlyExecute();
$this->isdiah = new sfIsdiahPlugin($this->resource);
+
+ $title = $this->context->i18n->__('Add new archival institution');
+ if (isset($this->getRoute()->resource))
+ {
+ if (1 > strlen($title = $this->resource))
+ {
+ $title = $this->context->i18n->__('Untitled');
+ }
+
+ $title = "Edit $title";
+ }
+
+ $this->response->setTitle("$title - {$this->response->getTitle()}");
}
}
Modified:
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/actions/indexAction.class.php
==============================================================================
---
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/actions/indexAction.class.php
Thu Oct 14 15:57:26 2010 (r8132)
+++
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/actions/indexAction.class.php
Thu Oct 14 16:18:10 2010 (r8133)
@@ -34,6 +34,13 @@
$this->isdiah = new sfIsdiahPlugin($this->resource);
+ if (1 > strlen($title = $this->resource))
+ {
+ $title = $this->context->i18n->__('Untitled');
+ }
+
+ $this->respnse->setTitle("$title - {$this->response->getTitle()}");
+
if (QubitAcl::check($this->resource, 'update'))
{
$validatorSchema = new sfValidatorSchema;
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.