diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-08 07:48:36 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-08 07:48:36 +0000 |
commit | 418c0aab69a72da512646541be2d88a866cb9fdb (patch) | |
tree | fea9ea900fbf33d3e94082b901922ad74b832f50 /modules/info/views | |
parent | ea7cc4f46edc730ff873c579a6c63490d24496a6 (diff) |
Create permanent owner_id column in the item table, and use a soft
relationship to bind the two. To do this, I overrode __get in
Item_Model so that $item->owner returns the appropriate User_Model.
Diffstat (limited to 'modules/info/views')
-rw-r--r-- | modules/info/views/info_block.html.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php index 543ce3db..3fa9350f 100644 --- a/modules/info/views/info_block.html.php +++ b/modules/info/views/info_block.html.php @@ -2,21 +2,23 @@ <table class="gMetadata"> <tbody> <tr> - <th>Title:</th> + <th><?= _("Title:") ?></th> <td><?= $item->title; ?></td> </tr> <tr> - <th>Description:</th> + <th><?= _("Description:") ?></th> <td><?= $item->description; ?></td> </tr> <tr> - <th>Name:</th> + <th><?= _("Name:") ?></th> <td><?= $item->name; ?></td> </tr> + <? if ($item->owner): ?> <tr> - <th>Owner:</th> - <td><a href="#"><?= isset($item->user_id) ? $item->user->name : "anonymous"?></a></td> + <th><?= _("Owner:") ?></th> + <td><a href="#"><?= $item->owner->name ?></a></td> </tr> + <? endif ?> <tr> <td colspan="2" class="toggle"> <a href="#">more \/</a> |