header.html 2.0 KB

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