diff options
author | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-25 15:44:49 -0700 |
---|---|---|
committer | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-25 15:44:49 -0700 |
commit | fa7759684f97f1faa174db234865cea6442ac6f8 (patch) | |
tree | 65363205d758c7d107c61fc53309f6feeb2fbd63 /ipa-server/ipa-gui/ipagui/templates/usershow.kid | |
parent | 765279d82b24da0aac1821fea0c4c02859ffe00c (diff) | |
download | freeipa-fa7759684f97f1faa174db234865cea6442ac6f8.tar.gz freeipa-fa7759684f97f1faa174db234865cea6442ac6f8.tar.xz freeipa-fa7759684f97f1faa174db234865cea6442ac6f8.zip |
Adds manager and direct reports to usershow page.
Fixes a bug with the group by member where is wasn't trapping not found errors.
Diffstat (limited to 'ipa-server/ipa-gui/ipagui/templates/usershow.kid')
-rw-r--r-- | ipa-server/ipa-gui/ipagui/templates/usershow.kid | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ipa-server/ipa-gui/ipagui/templates/usershow.kid b/ipa-server/ipa-gui/ipagui/templates/usershow.kid index 5092a427f..a71f683df 100644 --- a/ipa-server/ipa-gui/ipagui/templates/usershow.kid +++ b/ipa-server/ipa-gui/ipagui/templates/usershow.kid @@ -78,6 +78,15 @@ else: </th> <td>${user.get("telephonenumber")}</td> </tr> + <tr py:if='user_manager'> + <th> + Manager: + </th> + <td> + <a href="${tg.url('/usershow', uid=user_manager.uid)}" + >${user_manager.givenname} ${user_manager.sn}</a> + </td> + </tr> </table> <div class="formsection">Account Status</div> @@ -90,6 +99,12 @@ else: </tr> </table> + <div class="formsection" py:if='len(user_reports) > 0'>Direct Reports</div> + <div py:for="report in user_reports"> + <a href="${tg.url('/usershow', uid=report.uid)}" + >${report.givenname} ${report.sn}</a> + </div> + <div class="formsection">Groups</div> <div py:for="group in user_groups"> <a href="${tg.url('/groupshow', cn=group.cn)}">${group.cn}</a> |