user.twig 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {% include 'header.twig' %}
  2. {% if profile == 'private' %}
  3. <form action="" method="post">
  4. <table class="user">
  5. <tr>
  6. <td>
  7. User
  8. </td>
  9. <td>
  10. {{ user.name }}
  11. <div><a href="{{ 'user_activity/posts'|docroot }}">Your posts</a></div>
  12. <div><a href="{{ 'user_activity/comments'|docroot }}">Your comments</a></div>
  13. <div><a href="{{ 'user_activity/replies'|docroot }}">Replies to your comments</a></div>
  14. </td>
  15. </tr>
  16. <tr>
  17. <td>
  18. Since
  19. </td>
  20. <td>
  21. {{ user.registered|date("F, jS Y H:i") }} ({{ user.registered|ago }})
  22. </td>
  23. </tr>
  24. <tr>
  25. <td>
  26. About
  27. </td>
  28. <td>
  29. <textarea name="about" class="form-control">{{ user.about }}</textarea>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td>
  34. Email
  35. </td>
  36. <td>
  37. <input type="text" name="email" class="form-control" value="{{ user.email }}" />
  38. <em>Required if you wish to change your password</em>
  39. {#
  40. <p>
  41. <label>
  42. <input type="checkbox" name="email_notifications" {{ user.email_notifications ? 'checked="checked"' }} />
  43. Send notifications via email
  44. </label>
  45. </p>
  46. #}
  47. </td>
  48. </tr>
  49. <tr>
  50. <td>
  51. </td>
  52. <td>
  53. <input type="submit" name="update" value="Update" class="button button_info" />
  54. </td>
  55. </tr>
  56. </table>
  57. </form>
  58. {% else %}
  59. <table class="user">
  60. <tr>
  61. <td>
  62. User
  63. </td>
  64. <td>
  65. {{ other_user.username }}
  66. </td>
  67. </tr>
  68. <tr>
  69. <td>
  70. Since
  71. </td>
  72. <td>
  73. {{ other_user.registered|date("F, jS Y H:i") }} ({{ other_user.registered|ago }})
  74. </td>
  75. </tr>
  76. <tr>
  77. <td>
  78. About
  79. </td>
  80. <td>
  81. {{ other_user.about|markdown|raw }}
  82. </td>
  83. </tr>
  84. </table>
  85. {% endif %}
  86. {% include 'footer.twig' %}