diff options
Diffstat (limited to 'app/model/pad.php')
-rw-r--r-- | app/model/pad.php | 15 |
1 files changed, 15 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) |