瀏覽代碼

clean code

itizawa 5 年之前
父節點
當前提交
baf90780f3

+ 0 - 4
src/server/views/layout-growi/page.html

@@ -55,8 +55,4 @@
   <div id="presentation-layer" class="fullscreen-layer">
     <div id="presentation-container"></div>
   </div>
-
-  <div id="crowi-modals">
-    {% include '../widget/page_modals.html' %}
-  </div>
 {% endblock %}

+ 0 - 3
src/server/views/layout-growi/page_list.html

@@ -53,7 +53,4 @@
   <div id="presentation-layer" class="fullscreen-layer">
     <div id="presentation-container"></div>
   </div>
-  <div id="crowi-modals">
-    {% include '../widget/page_modals.html' %}
-  </div>
 {% endblock %}

+ 0 - 4
src/server/views/layout-kibela/page.html

@@ -53,8 +53,4 @@
   <div id="presentation-layer" class="fullscreen-layer">
     <div id="presentation-container"></div>
   </div>
-
-  <div id="crowi-modals">
-    {% include '../widget/page_modals.html' %}
-  </div>
 {% endblock %}

+ 0 - 3
src/server/views/layout-kibela/page_list.html

@@ -51,7 +51,4 @@
 <div id="presentation-layer" class="fullscreen-layer">
   <div id="presentation-container"></div>
 </div>
-<div id="crowi-modals">
-  {% include '../widget/page_modals.html' %}
-</div>
 {% endblock %}

+ 0 - 1
src/server/views/modal/create_template.html

@@ -1 +0,0 @@
-<div id ="create-template-modal"></div>

+ 0 - 1
src/server/views/modal/duplicate.html

@@ -1 +0,0 @@
-<div id ="page-duplicate-modal"></div>

+ 0 - 47
src/server/views/modal/empty_trash.html

@@ -1,47 +0,0 @@
-<div class="modal" id="emptyTrash">
-  <div class="modal-dialog">
-    <div class="modal-content">
-
-    <form role="form" id="empty-trash-form" onsubmit="return false;">
-
-      <div class="modal-header bg-danger text-light">
-        <div class="modal-title">
-          <i class="icon-fw icon-trash"></i>  {{ t('modal_empty.empty_the_trash') }}
-        </div>
-        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
-      </div>
-      <div class="modal-body">
-        <ul>
-          {% for data in pages %}
-            {% if pagePropertyName %}
-              {% set deletePage = data[pagePropertyName] %}
-            {% else %}
-              {% set deletePage = data %}
-            {% endif %}
-            <li>
-              <img src="{{ deletePage.lastUpdateUser|picture }}" class="picture img-circle">
-              <a href="{{ deletePage.path }}"
-                class="page-list-link"
-                data-path="{{ deletePage.path }}">{{ decodeURIComponent(deletePage.path) }}
-              </a>
-            </li>
-          {% endfor %}
-        </ul>
-      </div>
-      <div class="modal-footer">
-        <div class="d-flex justify-content-end">
-          {% include '../widget/modal/page-api-error-messages.html' %}
-          <div>
-            <input type="hidden" name="_csrf" value="{{ csrf() }}">
-            <button type="submit" class="m-l-10 btn btn-danger delete-button">
-              <i class="icon-trash" aria-hidden="true"></i>
-              Empty
-            </button>
-          </div>
-        </div>
-      </div><!-- /.modal-footer -->
-
-    </form>
-    </div><!-- /.modal-content -->
-  </div><!-- /.modal-dialog -->
-</div><!-- /.modal -->

+ 0 - 45
src/server/views/modal/put_back.html

@@ -1,45 +0,0 @@
-<div class="modal" id="putBackPage">
-  <div class="modal-dialog">
-    <div class="modal-content">
-
-      <form role="form" id="revert-delete-page-form" onsubmit="return false;">
-
-        <div class="modal-header bg-info text-light">
-          <div class="modal-title"><i class="icon-action-undo"></i> {{ t('modal_putback.label.Put Back Page') }}</div>
-          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
-        </div>
-        <div class="modal-body">
-          <div class="form-group">
-            <label for="">Put back page:</label><br>
-            <code>{{ page.path }}</code>
-          </div>
-          <div class="custom-control custom-checkbox custom-checkbox-warning">
-            <input class="custom-control-input" name="recursively" id="cbPutbackRecursively" value="1" type="checkbox" checked>
-            <label class="custom-control-label" for="cbPutbackRecursively">
-              {{ t('modal_putback.label.recursively') }}
-              <p class="form-text text-muted mt-0">{{ t('modal_putback.help.recursively', page.path) }}</p>
-            </label>
-          </div>
-        </div>
-        <div class="modal-footer">
-          <div class="d-flex justify-content-between">
-            {% include '../widget/modal/page-api-error-messages.html' %}
-            <div>
-              <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-sm btn-info putBack-button">
-                <i class="icon-action-undo" aria-hidden="true"></i>
-                {{ t('Put Back') }}
-              </button>
-            </div>
-          </div>
-        </div>
-
-      </form>
-    </div>
-    <!-- /.modal-content -->
-  </div>
-  <!-- /.mod<div class="modal" id="deletePage">al-dialog -->
-</div>
-<!-- /.modal -->

+ 0 - 1
src/server/views/modal/rename.html

@@ -1 +0,0 @@
-<div id ="page-rename-modal"></div>

+ 0 - 5
src/server/views/widget/page_modals.html

@@ -1,5 +0,0 @@
-{% include '../modal/rename.html' %}
-{% include '../modal/empty_trash.html' %}
-{% include '../modal/create_template.html' %}
-{% include '../modal/duplicate.html' %}
-{% include '../modal/put_back.html' %}