|
@@ -41,6 +41,57 @@
|
|
|
{% block content_main %}
|
|
{% block content_main %}
|
|
|
|
|
|
|
|
{% block content_main_before %}
|
|
{% block content_main_before %}
|
|
|
|
|
+ {% if page.isDeleted() %}
|
|
|
|
|
+ <div class="alert alert-danger alert-trash d-flex align-items-center justify-content-between">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <i class="fa fa-trash-o" aria-hidden="true"></i>
|
|
|
|
|
+ This page is in the trash.<br>
|
|
|
|
|
+ Deleted by <img src="{{ page.lastUpdateUser|picture }}" class="picture picture-sm img-circle"> {{ page.lastUpdateUser.name }} at {{ page.updatedAt|datetz('Y-m-d H:i:s') }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {% if user %}
|
|
|
|
|
+ <ul class="list-inline">
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <a href="#" class="btn btn-default btn-sm" data-target="#putBackPage" data-toggle="modal"><i class="fa fa-undo" aria-hidden="true"></i> {{ t('Put Back') }}</a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <a href="#" class="btn btn-danger btn-sm" data-target="#deletePage" data-toggle="modal"><i class="fa fa-times-circle" aria-hidden="true"></i> {{ t('Delete Completely') }}</a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>{# /.pull-right #}
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+
|
|
|
|
|
+ {% if req.query.renamed and not page.isDeleted() %}
|
|
|
|
|
+ <div class="alert alert-info alert-moved">
|
|
|
|
|
+ <span>
|
|
|
|
|
+ <strong>{{ t('Moved') }}: </strong> {{ t('page_page.notice.moved', req.query.renamed) }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ {% if req.query.redirectFrom and not page.isDeleted() %}
|
|
|
|
|
+ <div class="alert alert-info alert-moved d-flex align-items-center justify-content-between">
|
|
|
|
|
+ <span>
|
|
|
|
|
+ <strong>{{ t('Moved') }}: </strong> {{ t('page_page.notice.moved', req.query.redirectFrom) }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ {% if user %}
|
|
|
|
|
+ <form role="form" id="unlink-page-form" onsubmit="return false;">
|
|
|
|
|
+ <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
|
|
+ <input type="hidden" name="path" value="{{ page.path }}">
|
|
|
|
|
+ <input type="hidden" name="page_id" value="{{ page._id.toString() }}">
|
|
|
|
|
+ <button type="submit" class="btn btn-default btn-sm pull-right">
|
|
|
|
|
+ <i class="fa fa-unlink" aria-hidden="true"></i>
|
|
|
|
|
+ Unlink
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ {% if req.query.unlinked %}
|
|
|
|
|
+ <div class="alert alert-info alert-unlinked">
|
|
|
|
|
+ <strong>{{ t('Unlinked') }}: </strong> {{ t('page_page.notice.unlinked') }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+
|
|
|
{% endblock %}
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<div id="content-main" class="content-main {% if not page or req.body.pageForm %}on-edit{% endif %}"
|
|
<div id="content-main" class="content-main {% if not page or req.body.pageForm %}on-edit{% endif %}"
|
|
@@ -68,27 +119,6 @@
|
|
|
|
|
|
|
|
{% else %}
|
|
{% else %}
|
|
|
|
|
|
|
|
- {% if page.isDeleted() %}
|
|
|
|
|
- <div class="alert alert-danger alert-trash">
|
|
|
|
|
- <div>
|
|
|
|
|
- {% if user %}
|
|
|
|
|
- <ul class="list-inline pull-right">
|
|
|
|
|
- <li>
|
|
|
|
|
- <a href="#" class="btn btn-default btn-sm" data-target="#putBackPage" data-toggle="modal"><i class="fa fa-undo" aria-hidden="true"></i> {{ t('Put Back') }}</a>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <a href="#" class="btn btn-danger btn-sm" data-target="#deletePage" data-toggle="modal"><i class="fa fa-times-circle" aria-hidden="true"></i> {{ t('Delete Completely') }}</a>
|
|
|
|
|
- </li>
|
|
|
|
|
- </ul>{# /.pull-right #}
|
|
|
|
|
- {% endif %}
|
|
|
|
|
-
|
|
|
|
|
- <i class="fa fa-trash-o" aria-hidden="true"></i>
|
|
|
|
|
- This page is in the trash.<br>
|
|
|
|
|
- Deleted by <img src="{{ page.lastUpdateUser|picture }}" class="picture-sm img-circle"> {{ page.lastUpdateUser.name }} at {{ page.updatedAt|datetz('Y-m-d H:i:s') }}
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- {% endif %}
|
|
|
|
|
-
|
|
|
|
|
{% if not page.isDeleted() %}
|
|
{% if not page.isDeleted() %}
|
|
|
<ul class="nav nav-tabs hidden-print">
|
|
<ul class="nav nav-tabs hidden-print">
|
|
|
<li class=" {% if not req.body.pageForm %}active{% endif %}" data-toggle="tooltip" {# data-title="あなたの 確認待ち です" title="" data-placement="bottom" data-trigger="manual" data-tooltip-stay #}>
|
|
<li class=" {% if not req.body.pageForm %}active{% endif %}" data-toggle="tooltip" {# data-title="あなたの 確認待ち です" title="" data-placement="bottom" data-trigger="manual" data-tooltip-stay #}>
|
|
@@ -129,39 +159,6 @@
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="tab-content">
|
|
<div class="tab-content">
|
|
|
- {% if req.query.renamed and not page.isDeleted() %}
|
|
|
|
|
- <div class="alert alert-info alert-moved">
|
|
|
|
|
- <span>
|
|
|
|
|
- <strong>{{ t('Moved') }}: </strong> {{ t('page_page.notice.moved', req.query.renamed) }}
|
|
|
|
|
- </span>
|
|
|
|
|
- </div>
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- {% if req.query.redirectFrom and not page.isDeleted() %}
|
|
|
|
|
- <div class="alert alert-info alert-moved">
|
|
|
|
|
- <div>
|
|
|
|
|
- {% if user %}
|
|
|
|
|
- <form role="form" id="unlink-page-form" onsubmit="return false;">
|
|
|
|
|
- <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
|
|
- <input type="hidden" name="path" value="{{ page.path }}">
|
|
|
|
|
- <input type="hidden" name="page_id" value="{{ page._id.toString() }}">
|
|
|
|
|
- <button type="submit" class="btn btn-default btn-sm pull-right">
|
|
|
|
|
- <i class="fa fa-unlink" aria-hidden="true"></i>
|
|
|
|
|
- Unlink
|
|
|
|
|
- </button>
|
|
|
|
|
- </form>
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- <span>
|
|
|
|
|
- <strong>{{ t('Moved') }}: </strong> {{ t('page_page.notice.moved', req.query.redirectFrom) }}
|
|
|
|
|
- </span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- {% if req.query.unlinked %}
|
|
|
|
|
- <div class="alert alert-info alert-unlinked">
|
|
|
|
|
- <strong>{{ t('Unlinked') }}: </strong> {{ t('page_page.notice.unlinked') }}
|
|
|
|
|
- </div>
|
|
|
|
|
- {% endif %}
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
{% if not page.isLatestRevision() %}
|
|
{% if not page.isLatestRevision() %}
|
|
|
<div class="alert alert-warning">
|
|
<div class="alert alert-warning">
|