summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/threads
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-01-28 16:48:03 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-01-28 16:48:03 +0100
commita4bf2658ce6474c1b8dc2d4f8997d8a4c508a1a3 (patch)
treef29b7f89faff32d99387da43b6a5825d3f5f0f07 /hyperkitty/templates/threads
parentfd1616185405265189dc6d5ce70cc6c16456088c (diff)
downloadhyperkitty-a4bf2658ce6474c1b8dc2d4f8997d8a4c508a1a3.tar.gz
hyperkitty-a4bf2658ce6474c1b8dc2d4f8997d8a4c508a1a3.tar.xz
hyperkitty-a4bf2658ce6474c1b8dc2d4f8997d8a4c508a1a3.zip
fix the favorites system
Diffstat (limited to 'hyperkitty/templates/threads')
-rw-r--r--hyperkitty/templates/threads/add_tag_form.html15
-rw-r--r--hyperkitty/templates/threads/right_col.html16
2 files changed, 10 insertions, 21 deletions
diff --git a/hyperkitty/templates/threads/add_tag_form.html b/hyperkitty/templates/threads/add_tag_form.html
deleted file mode 100644
index 44b5f76..0000000
--- a/hyperkitty/templates/threads/add_tag_form.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends "base.html" %}
-
-{% block header %} {% endblock %}
-
-{% block content %}
-<form id="addtag" action="{% url add_tag mlist_fqdn=list_address, hashid=threadid %}" method="post">
- {% csrf_token %}
- {{ addtag_form }}
- <button type="submit">
- Add
- </button>
-</form>
-{% endblock %}
-
-{# vim: set noet: #}
diff --git a/hyperkitty/templates/threads/right_col.html b/hyperkitty/templates/threads/right_col.html
index 73194df..60bed09 100644
--- a/hyperkitty/templates/threads/right_col.html
+++ b/hyperkitty/templates/threads/right_col.html
@@ -22,18 +22,22 @@
old
</div>
</div>
- {% if use_mockups %}
- <p id="add_to_fav">
- <a href="#AddFav" class="notsaved">Add to favorite discussions</a>
- </p>
- {% endif %}
+ <form id="fav_form" name="favorite" method="post" class="favorite"
+ action="{% url favorite mlist_fqdn=list_address, threadid=threadid %}">
+ {% csrf_token %}
+ <input type="hidden" name="action" value="{{ fav_action }}" />
+ <p>
+ <a href="#AddFav" class="notsaved">Add to favorite discussions</a>
+ <a href="#RmFav" class="saved">Remove from favorite discussions</a>
+ </p>
+ </form>
<!-- End dates -->
<div id="tags">
{% include 'threads/tags.html' %}
</div>
<div id="add_tag">
<form id="add_tag_form" name="addtag" method="post"
- action="{% url add_tag mlist_fqdn=list_address, hashid=threadid %}">
+ action="{% url add_tag mlist_fqdn=list_address, threadid=threadid %}">
{% csrf_token %}
{{ addtag_form.as_p }}
</form>