aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki/includes
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-19 13:34:12 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-19 13:34:12 +0100
commit3187567dd17934a5c4b5a664e667bef22caa77a3 (patch)
treec45d52da5e6893a4a094ca0ce7644b40dcf613e1 /pydis_site/templates/wiki/includes
parentFinish history view page (diff)
Initial template cleanup
Diffstat (limited to 'pydis_site/templates/wiki/includes')
-rw-r--r--pydis_site/templates/wiki/includes/modals.html31
-rw-r--r--pydis_site/templates/wiki/includes/move_tree.html16
2 files changed, 0 insertions, 47 deletions
diff --git a/pydis_site/templates/wiki/includes/modals.html b/pydis_site/templates/wiki/includes/modals.html
deleted file mode 100644
index b86d4f65..00000000
--- a/pydis_site/templates/wiki/includes/modals.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{% load sekizai_tags static %}
-{% addtoblock "js" %}
-<script type="text/javascript" src="{% static "wiki/js/jquery-ui-1.12.1.custom/jquery-ui.min.js" %}"></script>
-<script type="text/javascript">
-$(document).ready(function() {
- $(".modal-content").on("resizestart", function(event, ui) {
- $(ui.element).find(".modal-body, iframe").each(function() {
- elem = $(this);
- elem.data("resizeoriginalheight", elem.height());
- });
- });
-
- $(".modal-content").on("resize", function(event, ui) {
- ui.element.parents('.modal-dialog').css("margin-left", -ui.size.width/2);
- ui.element.parents('.modal-dialog').css("margin-top", -ui.size.height/2);
- ui.element.parents('.modal-dialog').css("top", "50%");
- ui.element.parents('.modal-dialog').css("left", "50%");
-
- $(ui.element).find(".modal-body,iframe").each(function() {
- elem = $(this);
- $(this).css("min-height", elem.data("resizeoriginalheight") + ui.size.height - ui.originalSize.height);
- });
- });
-
- $(".modal-content").resizable();
-});
-</script>
-{% endaddtoblock %}
-{% addtoblock "css" %}
-<link rel="stylesheet" href="{% static "wiki/js/jquery-ui-1.12.1.custom/jquery-ui.min.css" %}" type="text/css" />
-{% endaddtoblock %}
diff --git a/pydis_site/templates/wiki/includes/move_tree.html b/pydis_site/templates/wiki/includes/move_tree.html
deleted file mode 100644
index af7e422b..00000000
--- a/pydis_site/templates/wiki/includes/move_tree.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{% load wiki_tags %}
-
-<li class="{% if current_path.path|starts_with:urlpath.path %}disabled{% endif%} {% if current_path.children.count %}dropdown-submenu{% endif %}">
- <a tabindex="-1" href="#"
- {% if not current_path.path|starts_with:urlpath.path %}
- onclick="select_path('{{current_path.pk}}', '{{current_path.path|escapejs}}');" {% endif %}>
- {{current_path.article}}
- </a>
- {% if current_path.children.count %}
- <ul class="dropdown-menu">
- {% for current_path in current_path.get_ordered_children %}
- {% with template_name="wiki/includes/move_tree.html" %}{% include template_name %}{% endwith %}
- {% endfor %}
- </ul>
- {% endif %}
-</li>