header.html 1.9 KB

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