diff options
-rw-r--r-- | app/model/pad.php | 15 | ||||
-rw-r--r-- | app/view/pad.php | 7 | ||||
-rw-r--r-- | app/view/pad_closed.php | 7 |
3 files changed, 29 insertions, 0 deletions
diff --git a/app/model/pad.php b/app/model/pad.php index 0090c27..e11a644 100644 --- a/app/model/pad.php +++ b/app/model/pad.php @@ -18,6 +18,21 @@ $pad = getPageObj(); $stages = $pad->getStages(); $stages = array_reverse($stages); +$owner = $pad->getOwner(); + +if (obj::typeOf($owner->guid) === "user") +{ + $owner_glyph = "glyphicon-user"; + $owner_url = (user::getCurrent()->guid === $owner->guid ? "pads" : "#"); + $owner_name = $owner->name; +} +else +{ + $owner_glyph = "glyphicon-th"; + $owner_url = $owner->guid; + $owner_name = $owner->name; +} + $issues = array(); foreach ($stages as $s) diff --git a/app/view/pad.php b/app/view/pad.php index bf626bf..4408df2 100644 --- a/app/view/pad.php +++ b/app/view/pad.php @@ -52,6 +52,13 @@ require_once "view/issue.php"; </a> </div> </h1> + + <h5> + <span class="glyphicon <?=$owner_glyph?>"></span> + <a href="<?=ar()?>/<?=$owner_url?>"> + <?=$owner_name?> + </a> + </h5> </div> </div> </div> diff --git a/app/view/pad_closed.php b/app/view/pad_closed.php index e11ca84..412ce4f 100644 --- a/app/view/pad_closed.php +++ b/app/view/pad_closed.php @@ -46,6 +46,13 @@ require_once "view/issue.php"; View open issues </a> </h1> + + <h5> + <span class="glyphicon <?=$owner_glyph?>"></span> + <a href="<?=ar()?>/<?=$owner_url?>"> + <?=$owner_name?> + </a> + </h5> </div> </div> </div> |