header.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <div class="header-wrap">
  2. <header id="page-header">
  3. <p class="stopper"><a href="#" data-affix-disable="#page-header"><i class="fa fa-chevron-up"></i></a></p>
  4. <div class="flex-title-line">
  5. <div>
  6. <h1 class="title flex-item-title" id="revision-path"></h1>
  7. <div id="revision-url" class="url-line"></div>
  8. </div>
  9. {% if page %}
  10. <div class="flex-item-action">
  11. {% if user %}
  12. <span id="bookmark-button">
  13. <p class="bookmark-link">
  14. <i class="fa fa-star-o"></i>
  15. </p>
  16. </span>
  17. {% endif %}
  18. </div>
  19. <div class="flex-item-action visible-xs visible-sm">
  20. {% if user %}
  21. <button
  22. data-csrftoken="{{ csrf() }}"
  23. data-liked="{% if page.isLiked(user) %}1{% else %}0{% endif %}"
  24. class="like-button btn btn-default btn-sm {% if page.isLiked(user) %}active{% endif %}"
  25. ><i class="fa fa-thumbs-o-up"></i></button>
  26. {% endif %}
  27. </div>
  28. <ul class="authors visible-md visible-lg">
  29. <li>
  30. <div class="creator-picture">
  31. <a href="{{ userPageRoot(page.creator) }}">
  32. <img src="{{ page.creator|default(author)|picture }}" class="picture picture-rounded"><br>
  33. </a>
  34. </div>
  35. <div class="">
  36. <div>Created by <a href="{{ userPageRoot(page.creator) }}">{{ page.creator.name|default(author.name) }}</a></div>
  37. <div class="text-muted">{{ page.createdAt|datetz('Y/m/d H:i:s') }}</div>
  38. </div>
  39. </li>
  40. <li>
  41. <div class="creator-picture">
  42. <a href="{{ userPageRoot(page.lastUpdateUser) }}">
  43. <img src="{{ page.lastUpdateUser|default(author)|picture }}" class="picture picture-rounded"><br>
  44. </a>
  45. </div>
  46. <div class="">
  47. <div>Updated by <a href="{{ userPageRoot(page.lastUpdateUser) }}">{{ page.lastUpdateUser.name|default(author.name) }}</a></div>
  48. <div class="text-muted">{{ page.updatedAt|datetz('Y/m/d H:i:s') }}</div>
  49. </div>
  50. </li>
  51. </ul>
  52. {% endif %}
  53. {% if not page and not isUserPageList(path) and !isTrashPage() %}
  54. <div class="portal-form-button">
  55. <button class="btn btn-primary" id="create-portal-button" {% if not user %}disabled{% endif %}>Create Portal</button>
  56. <p class="help-block"><a href="#" data-target="#help-portal" data-toggle="modal"><i class="fa fa-question-circle"></i> What is Portal?</a></p>
  57. </div>
  58. {% endif %}
  59. </div>
  60. </header>
  61. </div>