header.html 2.0 KB

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