header.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. {% if not forbidden and not isTrashPage() %}
  11. <div id="tag-label"></div>
  12. {% endif %}
  13. </div>
  14. {% if page %} {% include '../../widget/header-buttons.html' %}
  15. <ul class="authors hidden-sm hidden-xs text-nowrap p-t-10">
  16. <li>
  17. <div class="d-flex align-items-center b">
  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
  23. <a href="{{ userPageRoot(page.creator) }}">{{ page.creator.name|default(author.name) }}</a>
  24. </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
  36. <a href="{{ userPageRoot(page.revision.author) }}">{{ page.revision.author.name|default(author.name) }}</a>
  37. </div>
  38. <div class="text-muted">{{ page.updatedAt|datetz('Y/m/d H:i:s') }}</div>
  39. </div>
  40. </div>
  41. </li>
  42. </ul>
  43. {% endif %} {% if not page and ('/' === path or 'crowi' === getConfig('crowi', 'customize:behavior')) and not isUserPageList(path) and !isTrashPage()
  44. %} {% if '/' === path.slice(-1) %} {% include '../../widget/create_portal.html' %} {% endif %} {% endif %}
  45. </div>
  46. </header>