From 63db25bb5e1a2605c7a2fdaabcba32422191f70b Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 18 Jul 2013 13:46:46 +0200 Subject: Add a page to reattach a broken thread --- hyperkitty/templates/ajax/reattach_suggest.html | 11 ++++ hyperkitty/templates/messages/message.html | 5 +- hyperkitty/templates/reattach.html | 69 +++++++++++++++++++++++++ hyperkitty/templates/threads/right_col.html | 6 +++ 4 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 hyperkitty/templates/ajax/reattach_suggest.html create mode 100644 hyperkitty/templates/reattach.html (limited to 'hyperkitty/templates') diff --git a/hyperkitty/templates/ajax/reattach_suggest.html b/hyperkitty/templates/ajax/reattach_suggest.html new file mode 100644 index 0000000..7b94075 --- /dev/null +++ b/hyperkitty/templates/ajax/reattach_suggest.html @@ -0,0 +1,11 @@ +{% load hk_generic %} + + {% for s_thread in suggested_threads %} +
  • +
  • + {% empty %} +
  • (no suggestions)
  • + {% endfor %} diff --git a/hyperkitty/templates/messages/message.html b/hyperkitty/templates/messages/message.html index 2cfcdf8..453e248 100644 --- a/hyperkitty/templates/messages/message.html +++ b/hyperkitty/templates/messages/message.html @@ -27,7 +27,10 @@ {% gravatar email.sender_email 40 %}
    - {{email.sender_name|escapeemail}} + {{email.sender_name|escapeemail}} {% if use_mockups %}
    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 %} + +
    + +{% include 'threads/month_list.html' %} + +
    + +

    Re-attach a thread to another

    + +
    +

    Thread to re-attach: + {{ thread.subject }} + (started {{ thread.starting_email|get_date }}, last active: {{ thread|get_date }}) +

    + +
    + {% csrf_token %} +
      + Loading... +
    +
      +
    • + + +
    • +
    +

    + (there's no undoing!), or + go back to the thread. +

    +
    +
    + +
    + +
    + +{% endblock %} + +{% block additionaljs %} + +{% endblock %} diff --git a/hyperkitty/templates/threads/right_col.html b/hyperkitty/templates/threads/right_col.html index 5384d03..c6d6d30 100644 --- a/hyperkitty/templates/threads/right_col.html +++ b/hyperkitty/templates/threads/right_col.html @@ -50,6 +50,12 @@ {{ addtag_form.as_p }}
    + {% if user.is_staff %} +

    + Reattach this thread +

    + {% endif %}
    participants ({{participants|length}})