UserToolbar.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {namespace v=FluidTYPO3\Vhs\ViewHelpers}
  2. {namespace ot=Opentalent\OtTemplating\ViewHelpers}
  3. <f:comment><!-- Panneau d'authentification ou espace utilisateur --></f:comment>
  4. <ul>
  5. <f:security.ifAuthenticated>
  6. <f:then>
  7. <v:variable.set name="feuser" value="{ot:request.getFeUser()}"/>
  8. <li>
  9. <span><f:translate key="LLL:EXT:ot_templating/Resources/Private/Language/locallang.xlf:welcome"/> <b>{feuser.username}</b>!</span>
  10. </li>
  11. <li>
  12. <a href="{ot:request.getOtEnvVar(argument: 'DASHBOARD_URL')}">
  13. <f:translate key="LLL:EXT:ot_templating/Resources/Private/Language/locallang.xlf:member-area-of-my-structure"/>
  14. </a>
  15. </li>
  16. <li>
  17. <f:link.page additionalParams="{logintype:'logout'}">
  18. <f:translate key="LLL:EXT:ot_templating/Resources/Private/Language/locallang.xlf:log-out"/>
  19. </f:link.page>
  20. </li>
  21. </f:then>
  22. <f:else>
  23. <li>
  24. <!-- <f:if condition="{ot:request.isCustomDomain()}">-->
  25. <!-- <f:then>-->
  26. <!-- <f:comment>&lt;!&ndash; Because crossdomain auth could not be achieved properly until now,-->
  27. <!-- the login popup is shown for websites with custom domains &ndash;&gt;</f:comment>-->
  28. <!-- <a href="#"-->
  29. <!-- class="{f:if(condition: '{ot:loginFailed()}', then: 'trigger-on-load')}"-->
  30. <!-- data-toggle="modal"-->
  31. <!-- data-target="#loginModal">-->
  32. <!-- <f:translate id="LLL:EXT:ot_templating/Resources/Private/Language/locallang.xlf:login"/>-->
  33. <!-- </a>-->
  34. <!-- </f:then>-->
  35. <!-- <f:else>-->
  36. <a href="{ot:request.getOtEnvVar(argument: 'LOGIN_PAGE_URL')}"
  37. target="_blank"
  38. class="{f:if(condition: '{ot:loginFailed()}', then: 'trigger-on-load')}"
  39. >
  40. <f:translate id="LLL:EXT:ot_templating/Resources/Private/Language/locallang.xlf:login"/>
  41. </a>
  42. <!-- </f:else>-->
  43. <!-- </f:if>-->
  44. </li>
  45. </f:else>
  46. </f:security.ifAuthenticated>
  47. </ul>