header.html 2.6 KB

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