templates.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template name="setLanguagePopup">
  2. <ul class="pop-over-list">
  3. {{#each languages}}
  4. <li class="{{# if isCurrentLanguage}}active{{/if}}">
  5. <a class="js-set-language">
  6. {{name}}
  7. {{# if isCurrentLanguage}}
  8. <span class="icon-sm fa fa-check"></span>
  9. {{/if}}
  10. </a>
  11. </li>
  12. {{/each}}
  13. </ul>
  14. </template>
  15. <template name='profile'>
  16. {{ # if profile }}
  17. <div class="tabbed-pane-header">
  18. <div class="tabbed-pane-header-wrapper clearfix">
  19. <a class="tabbed-pane-header-image profile-image ed js-change-avatar-profile" href="#">
  20. {{> userAvatar user=profile size="large"}}
  21. </a>
  22. <div class="tabbed-pane-header-details">
  23. <div class="js-current-details">
  24. <div class="tabbed-pane-header-details-name">
  25. <h1 class="inline"> {{ profile.profile.name }} </h1>
  26. <p class="window-title-extra quiet"> @{{ profile.username }} </p>
  27. </div>
  28. <div class="tabbed-pane-header-details-content">
  29. <p>{{ profile.profile.bio }}</p>
  30. </div>
  31. <div class="tabbed-pane-header-details-content"></div>
  32. </div>
  33. {{ > profileEditForm }}
  34. </div>
  35. </div>
  36. </div>
  37. {{ else }}
  38. {{ > message label='user-profile-not-found' }}
  39. {{ /if }}
  40. </template>
  41. <template name="settings">
  42. {{ > profile profile=currentUser }}
  43. <div class="tabbed-pane-main-col clearfix">
  44. <div class="tabbed-pane-main-col-loading hide js-loading-page">
  45. <span class="tabbed-pane-main-col-loading-spinner spinner"></span>
  46. </div>
  47. <div class="tabbed-pane-main-col-wrapper js-content">
  48. <div class="window-module clearfix">
  49. <div class="window-module-title">
  50. <h3>{{_ "account-details"}}</h3>
  51. </div>
  52. <a class="big-link js-change-name-and-bio" href="#">
  53. <span class="text">{{_ 'change-name-initials-bio'}}</span>
  54. </a>
  55. <a class="big-link js-change-avatar" href="#">
  56. <span class="text">{{_ 'change-avatar'}}</span>
  57. </a>
  58. <a class="big-link js-change-password" href="#">
  59. <span class="text">{{_ 'change-password'}}</span>
  60. </a>
  61. <a class="big-link js-change-email" href="#">
  62. <span class="text">{{_ 'change-email'}}</span>
  63. </a>
  64. </div>
  65. </div>
  66. </div>
  67. </template>
  68. <template name="profileEditForm">
  69. {{#if $eq currentUser.username profile.username }}
  70. {{# if session 'ProfileEditForm' }}
  71. <form id="ProfileEditForm" class="js-profile-form">
  72. <p class="error js-profile-form-error hide"></p>
  73. <label>{{_ "username"}}</label>
  74. <input type="text" id="username" value="{{ profile.username }}" disabled>
  75. <label>{{_ "fullname"}}</label>
  76. <input type="text" id="name" value="{{ profile.profile.name }}">
  77. <label>
  78. {{_ "bio"}} <span class="quiet">({{_ 'optional'}})</span>
  79. </label>
  80. <textarea id="bio">{{ profile.profile.bio }}</textarea>
  81. <input type="submit" class="primary wide js-submit-profile" value="{{_ 'save'}}">
  82. <input type="button" class="js-cancel-edit-profile" value="{{_ 'cancel'}}">
  83. </form>
  84. {{ else }}
  85. <a class="button-link tabbed-pane-header-details-edit js-edit-profile" href="#">
  86. <span class="icon-sm fa fa-pencil"></span>
  87. {{_ "edit-profile"}}
  88. </a>
  89. {{ /if }}
  90. {{ /if }}
  91. </template>
  92. <template name="userPopup">
  93. <div class="board-member-menu">
  94. <div class="mini-profile-info">
  95. {{> userAvatar user=user}}
  96. <div class="info">
  97. <h3 class="bottom" style="margin-right: 40px;">
  98. <a class="js-profile" href="{{ pathFor route='Profile' username=user.username }}">{{ user.profile.name }}</a>
  99. </h3>
  100. <p class="quiet bottom">@{{ user.username }}</p>
  101. </div>
  102. </div>
  103. </div>
  104. </template>
  105. <template name="memberName">
  106. <a class="inline-object js-show-mem-menu" href="{{ pathFor route='Profile' username=user.username }}">
  107. {{ user.profile.name }}
  108. {{# if username }}
  109. ({{ user.username }})
  110. {{ /if }}
  111. </a>
  112. </template>