Bug 495874 - website: on design detail page, link byline to designer detail page
authorRyan Doherty <rdoherty@mozilla.com>
Thu, 04 Jun 2009 14:07:07 -0700
changeset 998 880d77057f96305e35a770c69ede4d68b4a8069d
parent 997 607d0eb2c5cdd25c0b0a16509e7134c7a3284354
child 999 33cc2988ca89faa9a3bddafb95ac7de4f1ef3aa8
push id632
push userrdoherty@mozilla.com
push dateThu, 04 Jun 2009 21:07:11 +0000
bugs495874
Bug 495874 - website: on design detail page, link byline to designer detail page
server/templates/persona_detail.php
--- a/server/templates/persona_detail.php
+++ b/server/templates/persona_detail.php
@@ -4,17 +4,17 @@
 ?>            
                 <p class="description"><?= $override_error ?></p>
 <?php
 	}
 	else if ($persona['id'])
 	{
 ?>
 				<h2><?= $persona['name'] ?></h2>
-                <h3>created by <?= $persona['display_username'] ?></h3>
+                <h3>created by <a href="/gallery/Designer/<?= $persona['author'] ?>"><?= $persona['display_username'] ?></a></h3>
                 <img class="detailed-view"  alt="<?= $persona['name'] ?>" persona="<?= $persona['json'] ?>" src="<?= PERSONAS_LIVE_PREFIX . '/' . url_prefix($persona['id']) ?>/preview_large.jpg" >
                 
 <?php
 		if ($persona['description'])
 		{
 			$desc = preg_replace('/(https?:\/\/[^ ]+[A-Za-z0-9])/', '<a href="$1">$1</a>', $persona['description']);
 ?>
 				<p class="description"><strong>Description:</strong> <?= $desc ?></p>