page_tabs.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {% if page %}
  2. <ul class="nav nav-tabs d-print-none" role="tablist">
  3. {#
  4. Left Tabs
  5. #}
  6. <li class="nav-item grw-main-nav-item-left">
  7. <a class="nav-link active d-flex d-flex align-items-center justify-content-center" href="#revision-body" role="tab" data-toggle="tab">
  8. <i class="icon-control-play"></i> <span class="d-none d-sm-block ml-1">View</span>
  9. </a>
  10. </li>
  11. {% if !isTrashPage() %}
  12. <li class="nav-item grw-main-nav-item-left grw-nav-item-edit">
  13. <a
  14. {% if user %} href="#edit" data-toggle="tab" class="nav-link edit-button d-flex align-items-center justify-content-center" {% endif %}
  15. {% if not user %}
  16. class="nav-link edit-button edit-button-disabled d-flex align-items-center justify-content-center"
  17. data-toggle="tooltip" data-placement="top" data-container="body" title="{{ t('Not available for guest') }}"
  18. {% endif %}
  19. >
  20. <i class="icon-note"></i> <span class="d-none d-sm-block ml-1">{{ t('Edit') }}</span>
  21. </a>
  22. </li>
  23. {% if isHackmdSetup() %}
  24. <li class="nav-item grw-main-nav-item-left grw-nav-tab-hackmd">
  25. <a
  26. {% if user %} href="#hackmd" data-toggle="tab" class="nav-link edit-button d-flex align-items-center justify-content-center" {% endif %}
  27. {% if not user %}
  28. class="nav-link edit-button edit-button-disabled d-flex align-items-center justify-content-center"
  29. data-toggle="tooltip" data-placement="top" data-container="body" title="{{ t('Not available for guest') }}"
  30. {% endif %}
  31. >
  32. <i class="fa fa-file-text-o"></i> <span class="d-none d-sm-block ml-1">{{ t('HackMD') }}</span>
  33. </a>
  34. </li>
  35. {% endif %}
  36. <div id="page-editor-path-nav" class="d-none d-edit-block ml-2"></div>
  37. {% endif %}
  38. {#
  39. Right Tabs
  40. #}
  41. {# to place right side #}
  42. <div class="mr-auto d-none d-sm-block"></div>
  43. <!-- presentation -->
  44. {% if not page.isTopPage() %}
  45. <li class="nav-item">
  46. <a href="?presentation=1" class="nav-link toggle-presentation d-flex align-items-center justify-content-center">
  47. <i class="icon-film"></i><span class="d-none d-md-inline ml-1"> {{ t('Presentation Mode') }}</span>
  48. </a>
  49. </li>
  50. {% endif %}
  51. <!-- revision-history -->
  52. <li class="nav-item">
  53. <a class="nav-link d-flex align-items-center justify-content-center" href="#revision-history" role="tab" data-toggle="tab">
  54. <i class="icon-layers"></i><span class="d-none d-md-inline ml-1"> {{ t('History') }}</span>
  55. </a>
  56. </li>
  57. <!-- icon-options-vertical -->
  58. {% if !isTrashPage() %}
  59. <li id="page-management" class="nav-item dropdown"></li>
  60. {% endif %}
  61. </ul>
  62. {% endif %}