Skip to content

Commit

Permalink
Merge pull request #125 from pinax/messages-thread-delete
Browse files Browse the repository at this point in the history
Messages thread delete
  • Loading branch information
paltman authored Jul 31, 2016
2 parents ab19eaa + 3be3c30 commit f1b41fc
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pinax_theme_bootstrap/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "7.10.0"
__version__ = "7.10.1"
21 changes: 21 additions & 0 deletions pinax_theme_bootstrap/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# ChangeLog

## 7.10.1

- add "thread_confirm_delete.html" for pinax-messages
- add delete link to "thread_detail.html" for pinax-messages

## 7.10.0

- fix copy_from_theme management command
- update AUTHORS
- add pinax-messages templates

## 7.9.0

- payment method styling improvements
- add pinax-cohorts templates

## 7.8.0

- add pinax-likes templates
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% extends "site_base.html" %}

{% load i18n bootstrap %}

{% block head_title %}Confirm Delete: {{ thread.subject }}{% endblock %}

{% block body_class %}threads{% endblock %}

{% block body %}
<h1>{% trans "Delete Thread?" %}</h1>

{% url "pinax_messages:thread_delete" thread.pk as post_url %}

<div class="alert alert-warning" role="alert">

<p class="lead">
{% trans "Are you sure you want to delete this thread?" %}
</p>

</div>

<p><b>{{ thread }}</b></p>

<form action="{{ post_url }}" method="POST" class="form form-horizontal">
{% csrf_token %}
<div class="form-actions">
<a href="{% url "pinax_messages:inbox" %}" class="btn">{% trans "Cancel" %}</a>
<button type="submit" class="btn btn-danger">{% trans "Delete" %}</button>
</div>
</form>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ <h2>{{ thread.subject }}</h2>
</form>
<a class="btn btn-default" href="{% url "pinax_messages:inbox" %}">Cancel</a>
</section>

<section>
<a class="btn" href="{% url "pinax_messages:thread_delete" thread.pk %}">Delete Thread</a>
</section>
{% endblock %}

0 comments on commit f1b41fc

Please sign in to comment.