header.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <button
  21. data-csrftoken="{{ csrf() }}"
  22. data-liked="{% if page.isLiked(user) %}1{% else %}0{% endif %}"
  23. class="like-button btn btn-default btn-sm {% if page.isLiked(user) %}active{% endif %}"
  24. {% if not user %}disabled{% endif %}
  25. ><i class="fa fa-thumbs-o-up"></i></button>
  26. </div>
  27. <ul class="authors visible-md visible-lg">
  28. <li>
  29. <div class="creator-picture">
  30. <a href="{{ userPageRoot(page.creator) }}">
  31. <img src="{{ page.creator|default(author)|picture }}" class="picture picture-rounded"><br>
  32. </a>
  33. </div>
  34. <div class="">
  35. <div>Created by <a href="{{ userPageRoot(page.creator) }}">{{ page.creator.name|default(author.name) }}</a></div>
  36. <div class="text-muted">{{ page.createdAt|datetz('Y/m/d H:i:s') }}</div>
  37. </div>
  38. </li>
  39. <li>
  40. <div class="creator-picture">
  41. <a href="{{ userPageRoot(page.lastUpdateUser) }}">
  42. <img src="{{ page.lastUpdateUser|default(author)|picture }}" class="picture picture-rounded"><br>
  43. </a>
  44. </div>
  45. <div class="">
  46. <div>Updated by <a href="{{ userPageRoot(page.lastUpdateUser) }}">{{ page.lastUpdateUser.name|default(author.name) }}</a></div>
  47. <div class="text-muted">{{ page.updatedAt|datetz('Y/m/d H:i:s') }}</div>
  48. </div>
  49. </li>
  50. </ul>
  51. {% endif %}
  52. {% if not page and not isUserPageList(path) and !isTrashPage() %}
  53. <div class="portal-form-button">
  54. <button class="btn btn-primary" id="create-portal-button" {% if not user %}disabled{% endif %}>Create Portal</button>
  55. <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>
  56. </div>
  57. {% endif %}
  58. </div>
  59. </header>
  60. </div>