Topbar.html.future 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {namespace ot=Opentalent\OtTemplating\ViewHelpers}
  2. <div class="topbar">
  3. <div class="container-fluid">
  4. <div class="row">
  5. <div class="col-lg-6 col-md-6 xs-mb-10">
  6. <div class="topbar-call text-center text-md-left">
  7. <ul>
  8. <li class="brand-free">
  9. <strong>{settings.structureName}</strong> est membre de &nbsp;
  10. <f:if condition="{settings.networkLogo} != ''">
  11. <a href="#"
  12. title="{settings.networkName}"
  13. class="reseau"
  14. data-toggle="modal"
  15. data-target="#cmfModal">
  16. <img src="{settings.networkLogoUrl}"
  17. alt="{settings.networkName}"
  18. height="22px" />
  19. </a> &nbsp;
  20. </f:if>
  21. <a href="#"
  22. title="Opentalent"
  23. class="reseau-opentalent"
  24. data-toggle="modal"
  25. data-target="#opentalentModal">
  26. <f:image src="EXT:ot_templating/Resources/Public/media/opentalent_longueur_S.jpg"
  27. alt="Opentalent"
  28. height="18px" />
  29. </a>
  30. </li>
  31. <li id="notice-cmf">
  32. <strong>{settings.networkName}</strong>
  33. </li>
  34. </ul>
  35. </div>
  36. </div>
  37. <div class="col-lg-6 col-md-6">
  38. <div class="topbar-social text-center text-md-right text-bold">
  39. <ul>
  40. <f:security.ifAuthenticated>
  41. <f:then>
  42. <li>
  43. <span>Bienvenue <b>{user.username}</b>!</span>
  44. </li>
  45. <li>
  46. <a href="{settings.opentalentDashboardUrl}">
  47. Accéder à l'intranet
  48. </a>
  49. </li>
  50. <li>
  51. <f:link.page additionalParams="{logintype:'logout'}">
  52. <f:translate key="log-out"/>
  53. </f:link.page>
  54. </li>
  55. </f:then>
  56. <f:else>
  57. <li>
  58. <a href="#"
  59. class="{f:if(condition: '{ot:loginFailed()}', then: 'trigger-on-load')}"
  60. data-toggle="modal"
  61. data-target="#loginModal">
  62. Se connecter
  63. </a>
  64. </li>
  65. </f:else>
  66. </f:security.ifAuthenticated>
  67. </ul>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>