summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/reattach.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-07-18 13:46:46 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-07-18 13:50:08 +0200
commit63db25bb5e1a2605c7a2fdaabcba32422191f70b (patch)
treedf8d09107b5a8c06546ca99e991d6249d5e98960 /hyperkitty/templates/reattach.html
parentfd5bdaf0bd47260e4a797ff2156036a80d3ac3ee (diff)
Add a page to reattach a broken thread
Diffstat (limited to 'hyperkitty/templates/reattach.html')
-rw-r--r--hyperkitty/templates/reattach.html69
1 files changed, 69 insertions, 0 deletions
diff --git a/hyperkitty/templates/reattach.html b/hyperkitty/templates/reattach.html
new file mode 100644
index 0000000..b2419c9
--- /dev/null
+++ b/hyperkitty/templates/reattach.html
@@ -0,0 +1,69 @@
+{% extends "base.html" %}
+{% load url from future %}
+{% load hk_generic %}
+{% load storm %}
+
+
+{% block title %}
+Reattach a thread - {{ mlist.display_name|default:mlist.name|escapeemail }} - {{ app_name|title }}
+{% endblock %}
+
+{% block content %}
+
+<div class="row-fluid">
+
+{% include 'threads/month_list.html' %}
+
+ <div class="span7">
+
+ <h1>Re-attach a thread to another</h1>
+
+ <div class="reattach-thread">
+ <p>Thread to re-attach:
+ <a href="{% url 'thread' mlist_fqdn=mlist.name threadid=thread.thread_id %}"
+ >{{ thread.subject }}</a>
+ (started {{ thread.starting_email|get_date }}, last active: {{ thread|get_date }})
+ </p>
+ <form action="{% url 'thread_reattach_suggest' mlist_fqdn=mlist.name threadid=thread.thread_id %}"
+ method="GET" class="search">
+ <p>Re-attach it to:
+ <span class="input-append">
+ <input type="text" name="q" placeholder="Search for the parent thread"
+ /><button type="submit" class="btn">Search</button>
+ </span>
+ </p>
+ </form>
+ <form action="" method="POST">
+ {% csrf_token %}
+ <ul class="unstyled suggestions">
+ <img alt="Loading..." class="ajaxloader" src="{{ STATIC_URL }}hyperkitty/img/ajax-loader.gif" />
+ </ul>
+ <ul class="unstyled">
+ <li class="manual">
+ <input type="radio" name="parent" value="" />
+ <label>this thread ID:
+ <input type="text" name="parent-manual" size="32" placeholder="{{ thread.thread_id }}" />
+ </label>
+ </li>
+ </ul>
+ <p class="buttons">
+ <button type="submit" class="btn btn-primary">Do it</button> (there's no undoing!), or
+ <a href="{% url 'thread' mlist_fqdn=mlist.name threadid=thread.thread_id %}"
+ >go back to the thread</a>.
+ </p>
+ </form>
+ </div>
+
+ </div>
+
+</div>
+
+{% endblock %}
+
+{% block additionaljs %}
+<script type="text/javascript">
+ $(document).ready(function() {
+ setup_reattach();
+ });
+</script>
+{% endblock %}