aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki/move.html
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-20 14:32:53 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-20 14:32:53 +0100
commitbbeb451ac6750c526166db12080b1b6bc040c860 (patch)
treec74468da0b3059045e1e294bf17b062943b79079 /pydis_site/templates/wiki/move.html
parentUpdate Pipfile.lock and move home app tests (diff)
Address reviews
Diffstat (limited to 'pydis_site/templates/wiki/move.html')
-rw-r--r--pydis_site/templates/wiki/move.html73
1 files changed, 38 insertions, 35 deletions
diff --git a/pydis_site/templates/wiki/move.html b/pydis_site/templates/wiki/move.html
index 6452ffa2..a3f7a5d8 100644
--- a/pydis_site/templates/wiki/move.html
+++ b/pydis_site/templates/wiki/move.html
@@ -1,10 +1,12 @@
{% extends "wiki/article.html" %}
-{% load wiki_tags i18n sekizai_tags static %}
+{% load i18n %}
+{% load sekizai_tags %}
+{% load static %}
+{% load wiki_tags %}
-{% block wiki_pagetitle %}{% trans "Move" %}: {{ article.current_revision.title }}{% endblock %}
+{% block wiki_pagetitle %}Move: {{ article.current_revision.title }}{% endblock %}
{% block wiki_contents_tab %}
-
<article class="message is-warning">
<div class="message-body">
{% if urlpath.get_descendants %}
@@ -30,40 +32,41 @@
</div>
</article>
-<form method="POST" class="form-horizontal" id="article_move_form">
- {% wiki_form form %}
+ <form method="POST" class="form-horizontal" id="article_move_form">
+ {% wiki_form form %}
- {# Not gonna lie, I have no idea what this is or what it's for #}
- <div class="btn-group" id="dest_selector">
- <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
- <span class="dest_selector_title"></span>
- <span class="caret"></span>
- </a>
- <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
- {% with current_path=root_path %}{% include "wiki/includes/move_tree.html" %}{% endwith %}
- </ul>
- </div>
+ {# Not gonna lie, I have no idea what this is or what it's for #}
+ <div class="btn-group" id="dest_selector">
+ <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
+ <span class="dest_selector_title"></span>
+ <span class="caret"></span>
+ </a>
- <a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="button is-white">
- <span class="icon">
- <i class="fas fa-arrow-left"></i>
- </span>
- <span>Go back</span>
- </a>
- <button class="button is-warning" type="submit" name="move" id="id_move">
- <span class="icon">
- <i class="fas fa-random"></i>
- </span>
- <span>Move article</span>
- </button>
-</form>
+ <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
+ {% with current_path=root_path %}{% include "wiki/includes/move_tree.html" %}{% endwith %}
+ </ul>
+ </div>
+
+ <a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="button is-white">
+ <span class="icon">
+ <i class="fas fa-arrow-left"></i>
+ </span>
+ <span>Go back</span>
+ </a>
-{% addtoblock "js" %}
- <script type="text/javascript" src="{% static "js/wiki/move.js" %}"></script>
- <script type="text/javascript">
- $('#id_slug').val('{{ urlpath.slug }}');
- select_path('{{urlpath.parent.pk}}', '{{urlpath.parent}}');
- </script>
-{% endaddtoblock %}
+ <button class="button is-warning" type="submit" name="move" id="id_move">
+ <span class="icon">
+ <i class="fas fa-random"></i>
+ </span>
+ <span>Move article</span>
+ </button>
+ </form>
+ {% addtoblock "js" %}
+ <script type="text/javascript" src="{% static "js/wiki/move.js" %}"></script>
+ <script type="text/javascript">
+ $('#id_slug').val('{{ urlpath.slug }}');
+ select_path('{{urlpath.parent.pk}}', '{{urlpath.parent}}');
+ </script>
+ {% endaddtoblock %}
{% endblock %}