header.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 %} {% include '../../widget/header-buttons.html' %}
  13. <ul class="authors hidden-sm hidden-xs text-nowrap p-t-10">
  14. <li>
  15. <div class="d-flex align-items-center b">
  16. <a class="m-r-5" href="{{ userPageRoot(page.creator) }}">
  17. <img src="{{ page.creator|default(author)|picture }}" class="picture img-circle">
  18. </a>
  19. <div>
  20. <div>Created by
  21. <a href="{{ userPageRoot(page.creator) }}">{{ page.creator.name|default(author.name) }}</a>
  22. </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.revision.author) }}">
  30. <img src="{{ page.revision.author|default(author)|picture }}" class="picture img-circle">
  31. </a>
  32. <div>
  33. <div>Updated by
  34. <a href="{{ userPageRoot(page.revision.author) }}">{{ page.revision.author.name|default(author.name) }}</a>
  35. </div>
  36. <div class="text-muted">{{ page.updatedAt|datetz('Y/m/d H:i:s') }}</div>
  37. </div>
  38. </div>
  39. </li>
  40. </ul>
  41. {% endif %} {% if not page and ('/' === path or 'crowi' === behaviorType()) and not isUserPageList(path) and !isTrashPage()
  42. %} {% if '/' === path.slice(-1) %} {% include '../../widget/create_portal.html' %} {% endif %} {% endif %}
  43. </div>
  44. </header>