layout.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <!DOCTYPE html>
  2. <html>
  3. {% block html_head %}
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>{% block html_title %}{% endblock %} {{ config.crowi['app:title']|default('Crowi') }}</title>
  8. <meta name="description" content="">
  9. <meta name="author" content="">
  10. <meta name="viewport" content="width=device-width,initial-scale=1">
  11. <link rel="stylesheet" href="/css/crowi{% if env == 'production' %}.min{% endif %}.css">
  12. <link rel="stylesheet" href="/css/diff2html/diff2html{% if env == 'production' %}.min{% endif %}.css">
  13. <script src="{{ assets('/js/bundled.js') }}"></script>
  14. <link href='//fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
  15. </head>
  16. {% endblock %}
  17. {% block html_body %}
  18. <body
  19. class="crowi main-container {% block html_base_css %}{% endblock %}"
  20. data-me="{{ user._id.toString() }}"
  21. {% block html_base_attr %}{% endblock %}
  22. >
  23. {% block layout_head_nav %}
  24. <nav class="crowi-header navbar navbar-default" role="navigation">
  25. <!-- Brand and toggle get grouped for better mobile display -->
  26. <div class="navbar-header">
  27. <a class="navbar-brand" href="/">
  28. <img alt="Crowi" src="/logo/32x32.png" width="16">
  29. <span class="hidden-xs">{% block title %}{{ config.crowi['app:title']|default('Crowi') }}{% endblock %}</span>
  30. </a>
  31. {% if searchConfigured() %}
  32. <div class="navbar-form navbar-left search-top" role="search" id="search-top">
  33. </div>
  34. {% endif %}
  35. </div>
  36. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbarCollapse">
  37. <span class="sr-only">Toggle navigation</span>
  38. <span class="icon-bar"></span>
  39. <span class="icon-bar"></span>
  40. <span class="icon-bar"></span>
  41. </button>
  42. <!-- Collect the nav links, forms, and other content for toggling -->
  43. <div class="collapse navbar-collapse" id="navbarCollapse">
  44. <ul class="nav navbar-nav navbar-right">
  45. {% if user and user.admin %}
  46. <li id="">
  47. <a href="/admin" id="link-mypage">
  48. <i class="fa fa-cube"></i> {{ t('Admin') }}
  49. </a>
  50. </li>
  51. {% endif %}
  52. {#
  53. <li id="">
  54. <a href="#" id="createPage">
  55. <i class="fa fa-plus"> 新規</i>
  56. </a>
  57. </li>
  58. #}
  59. {% if user %}
  60. {#
  61. <li id="" class="notif">
  62. <a href="" id="notif-opener">
  63. <i class="fa fa-globe"></i> <span class="badge badge-danger">6</span>
  64. </a>
  65. </li>
  66. #}
  67. <li id="" class="dropdown">
  68. <button class="btn btn-default create-page-button" data-target="#create-page" data-toggle="modal">
  69. <i class="fa fa-pencil"></i> {{ t('New') }}
  70. </button>
  71. </li>
  72. <li id="login-user">
  73. <a href="/user/{{ user.username }}" id="link-mypage">
  74. <img src="{{ user|picture }}" class="picture picture-rounded" width="25" /> {{ user.name }}
  75. </a>
  76. </li>
  77. <li class="dropdown">
  78. <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-bars"></i> <label class="sr-only">メニュー</label></a>
  79. <ul class="dropdown-menu">
  80. <li><a href="/me"><i class="fa fa-gears"></i> {{ t('User Settings') }}</a></li>
  81. <li class="divider"></li>
  82. <li><a href="/trash/"><i class="fa fa-trash-o"></i> {{ t('Deleted Pages') }}</a></li>
  83. <li class="divider"></li>
  84. <li><a href="/logout"><i class="fa fa-sign-out"></i> {{ t('Sign out') }}</a></li>
  85. {# <li><a href="#">今日の日報を作成</a></li> #}
  86. {# <li class="divider"></li> #}
  87. {# <li class="divider"></li> #}
  88. {# <li><a href="#">ログアウト</a></li> #}
  89. </ul>
  90. </li>
  91. {% else %}
  92. <li id="login-user"><a href="/login" id="login"><i class="fa fa-user"></i> Login</a></li>
  93. {% endif %}
  94. {% if config.crowi['app:confidential'] && config.crowi['app:confidential'] != '' %}
  95. <li class="confidential"><a href="#">{{ config.crowi['app:confidential'] }}</a></li>
  96. {% endif %}
  97. </ul>
  98. </div><!-- /.navbar-collapse -->
  99. </nav>
  100. {% include '../modal/create_page.html' %}
  101. {% endblock %} {# layout_head_nav #}
  102. <div class="container-fluid">
  103. <div class="row">
  104. {% block layout_sidebar %}
  105. {% endblock %} {# layout_sidebar #}
  106. {% block layout_main %}
  107. {% endblock %} {# layout_main #}
  108. {% block footer %}
  109. {% endblock %}
  110. </div> {# /.row #}
  111. </div> {# /.container-fluid #}
  112. {% block body_end %}
  113. {% endblock %}
  114. {% include '../modal/help.html' %}
  115. </body>
  116. {% endblock %}
  117. <script src="{{ assets('/js/crowi.js') }}"></script>
  118. <script src="{{ assets('/js/app.js') }}"></script>
  119. </html>