| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- {% if isTopPage() %}
- {% set unportalizedPath = '/top-' + Date.now() %}
- {% else %}
- {% set unportalizedPath = page.path|replace('(\/)$', '') %}
- {% endif %}
- <div class="modal" id="unportalize">
- <div class="modal-dialog">
- <div class="modal-content">
- <form role="form" id="unportalize-form" onsubmit="return false;">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h4 class="modal-title">ポータル化を解除する</h4>
- </div>
- <div class="modal-body">
- <ul>
- <li>このポータル化を解除し、通常のページに戻します。</li>
- </ul>
- <div class="form-group">
- <p>
- <label for="">このページ</label><br><code>{{ page.path }}</code>
- </p>
- <p>
- <label for="">解除後のページ</label><br><code>{{ unportalizedPath }}</code>
- </p>
- {% if isTopPage() %}
- <p class="alert alert-info">
- このポータルはトップページのポータルのため、特別なページに移動します。
- </p>
- {% endif %}
- </div>
- </div>
- <div class="modal-footer">
- <p class="pull-left text-left">
- <small id="newPageNameCheck"></small>
- <br>
- <span id="linkToNewPage"></span>
- </p>
- <input type="hidden" name="_csrf" value="{{ csrf() }}">
- <input type="hidden" name="path" value="{{ page.path }}">
- <input type="hidden" class="form-control" name="new_path" id="newPageName" value="{{ unportalizedPath }}">
- <input type="hidden" name="page_id" value="{{ page._id.toString() }}">
- <input type="hidden" name="revision_id" value="{{ page.revision._id.toString() }}">
- <input type="submit" class="btn btn-primary" value="Unportalize!">
- </div>
- </form>
- </div><!-- /.modal-content -->
- </div><!-- /.modal-dialog -->
- </div><!-- /.modal -->
|