header.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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><!-- /.title-logo-container -->
  9. <div class="title-container mr-auto">
  10. <h1 class="title" id="revision-path"></h1>
  11. {% if not forbidden and not isTrashPage() %}
  12. <div id="tag-label"></div>
  13. {% endif %}
  14. </div><!-- /.title-container -->
  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 not-affix">
  20. <a class="mr-2" href="{{ userPageRoot(page.creator) }}" data-toggle="tooltip" data-placement="bottom" title="{{ page.creator.name|default(author.name) }}">
  21. <img src="{{ page.creator|default(author)|picture }}" class="picture rounded-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. <div class="d-flex align-items-center only-affix">
  29. <a class="mr-2" href="{{ userPageRoot(page.creator) }}" data-toggle="tooltip" data-placement="bottom" title="{{ page.creator.name|default(author.name) }}">
  30. <img src="{{ page.creator|default(author)|picture }}" class="picture picture-xs rounded-circle">
  31. </a>
  32. <div class="ml-auto">
  33. <div>Created in <span class="text-muted">{{ page.createdAt|datetz('Y/m/d H:i:s') }}</span></div>
  34. </div>
  35. </div>
  36. </li>
  37. <li class="mt-1">
  38. <div class="d-flex align-items-center not-affix">
  39. <a class="mr-2" href="{{ userPageRoot(author) }}" data-toggle="tooltip" data-placement="bottom" title="{{ author.name }}">
  40. <img src="{{ author|picture }}" class="picture rounded-circle">
  41. </a>
  42. <div>
  43. <div>Updated by <a href="{{ userPageRoot(page.revision.author) }}">{{ author.name }}</a></div>
  44. <div class="text-muted"">{{ page.updatedAt|datetz('Y/m/d H:i:s') }}</div>
  45. </div>
  46. </div>
  47. <div class="d-flex align-items-center only-affix">
  48. <a class="mr-2" href="{{ userPageRoot(author) }}" data-toggle="tooltip" data-placement="bottom" title="{{ author.name }}">
  49. <img src="{{ author|picture }}" class="picture picture-xs rounded-circle">
  50. </a>
  51. <div class="ml-auto">
  52. <div>Updated in <span class="text-muted"">{{ page.updatedAt|datetz('Y/m/d H:i:s') }}</span></div>
  53. </div>
  54. </div>
  55. </li>
  56. </ul><!-- /.authors -->
  57. {% endif %}
  58. {% if not page and not forbidden and ('/' === path or 'crowi' === getConfig('crowi', 'customize:behavior')) and not isUserPageList(path) and !isTrashPage() %}
  59. {% if '/' === path.slice(-1) %}
  60. {% include '../../widget/create_portal.html' %}
  61. {% endif %}
  62. {% endif %}
  63. </div>
  64. </header>
  65. </div><!-- / .header-wrap -->