From: Roland Häder Date: Sat, 6 Aug 2016 08:15:05 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1ee2583bfbf47347c4755302b36da447c128d4af;p=jjobs-war.git Please cherry-pick: - Well, ui:fragment is according to my trainer not right. What I want here is a navigation to edit/delete/lock/unlock pages depending on the user's account status. - If the account status is UNCONFIRMED, currently only show edit and delete - If it is CONFIRMED, add a link to "lock" page. - If it is LOCKED, add a link to "unlock" page. - Currently I do this with ui:fragment because it seems to be the only JSF tag that is NOT rendering it's body when the rendered attribute resolves to false. - If you can find a drop-in replacement, please notify me at roland[AT]mxchange[DOT]org - And please keep in mind that c:if or anything like that is JSP which is being executed on an other life-cycle step than JSFs. --- diff --git a/web/WEB-INF/templates/admin/user/admin_user_links.tpl b/web/WEB-INF/templates/admin/user/admin_user_links.tpl index ef30a769..34cb19a5 100644 --- a/web/WEB-INF/templates/admin/user/admin_user_links.tpl +++ b/web/WEB-INF/templates/admin/user/admin_user_links.tpl @@ -27,15 +27,17 @@ -
  • - - - + +
  • + + + - - - -
  • + + + + +