diff options
author | Malfurious <m@lfurio.us> | 2021-09-27 18:17:08 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2021-09-27 18:17:08 -0400 |
commit | cc292f7a72d10b9c8c6473e3df5729da8185ee5f (patch) | |
tree | 70bcf77827038dfdc18c35dd8465bfab4afcb506 /app/view/pad_closed.php | |
parent | b77873e4a32b049627355f3e8f5fc26de912082f (diff) | |
download | scrott-cc292f7a72d10b9c8c6473e3df5729da8185ee5f.tar.gz scrott-cc292f7a72d10b9c8c6473e3df5729da8185ee5f.zip |
pad: Add link to pad owner
It is annoying to have to manually navigate back to the group page that
contains the pad you're currently viewing, since it involves more than a
single click to go up one level in the object hierarchy.
This patch adds the owner name to the display at the top of each pad, as
a hyperlink. If the owner is a group, following the link will take you
to the group page. If the owner is _your own_ user, following the link
will take you to the 'My Pads' page. Otherwise, it leads nowhere.
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to '')
-rw-r--r-- | app/view/pad_closed.php | 7 |
1 files changed, 7 insertions, 0 deletions
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> |