header.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <div class="header-wrap">
  2. <header id="page-header">
  3. <div class="d-flex align-items-center">
  4. <div class="title-logo-container hidden-xs hidden-sm">
  5. <a class="logo" href="/">
  6. <div class="logo-mark">{% include '../../widget/logo.html' %}</div>
  7. </a>
  8. </div>
  9. <div class="title-container">
  10. <h1 class="title" id="revision-path"></h1>
  11. <div id="revision-url" class="url-line"></div>
  12. </div>
  13. {% if page %}
  14. {% include '../../widget/header-buttons.html' %}
  15. <ul class="authors hidden-sm hidden-xs text-nowrap">
  16. <li>
  17. <div class="d-flex align-items-center">
  18. <a class="m-r-5" href="{{ userPageRoot(page.creator) }}">
  19. <img src="{{ page.creator|default(author)|picture }}" class="picture img-circle">
  20. </a>
  21. <div>
  22. <div>Created by <a href="{{ userPageRoot(page.creator) }}">{{ page.creator.name|default(author.name) }}</a></div>
  23. <div class="text-muted">{{ page.createdAt|datetz('Y/m/d H:i:s') }}</div>
  24. </div>
  25. </div>
  26. </li>
  27. <li class="m-t-5">
  28. <div class="d-flex align-items-center">
  29. <a class="m-r-5" href="{{ userPageRoot(page.lastUpdateUser) }}">
  30. <img src="{{ page.lastUpdateUser|default(author)|picture }}" class="picture img-circle">
  31. </a>
  32. <div>
  33. <div>Updated by <a href="{{ userPageRoot(page.lastUpdateUser) }}">{{ page.lastUpdateUser.name|default(author.name) }}</a></div>
  34. <div class="text-muted">{{ page.updatedAt|datetz('Y/m/d H:i:s') }}</div>
  35. </div>
  36. </div>
  37. </li>
  38. </ul>
  39. {% endif %}
  40. {% if not page and ('/' === path or 'crowi' === behaviorType()) and not isUserPageList(path) and !isTrashPage() %}
  41. {% if '/' === path.slice(-1) %}
  42. {% include '../../widget/create_portal.html' %}
  43. {% endif %}
  44. {% endif %}
  45. </div>
  46. </header>
  47. </div>