Separated the publish and approve button on the Task list page for Org members.
Also ensured that only tasks from the right org with the right status can be changed. And that we do not make unneccesary loops over values in the POST dict by
grouping all the keys in the POST data under "task_id".
The list entries also no longer redirect a user when clicking on the checkbox.
Patch by: Madhusudan.C.S and Lennard de Rijk
{% extends "soc/mail/base.html" %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
{% block content %}
{% if comment_entity.changes %}
Updates: <br />
{% for change in comment_entity.changes %}
{{ change }}<br />
{% endfor %}
<br />
{% endif %}
Comment on {{ task_entity.title }}<br />
<a href={{ redirect_url }}>{{ redirect_url }}</a><br />
On {{ comment_entity.created_on|date:"jS F Y H:i" }}, by
{% if comment_entity.created_by %}
{{ comment_entity.created_by.name }}:
{% else %}
{{ site_name }} Automatic Updater:
{% endif %}
<br />
{% if comment_entity.content %}
{{ comment_entity.content|wordwrap:80|safe }}
{% else %}
(No Comment was entered for this change.)
{% endif %}
<br />
<br />
--<br />
You are receiving this message because you have subscribed to updates on this
<br/>
GHOP Task. You may unsubscribe from this GHOP Task by visiting the
<a href={{ task_url }}>GHOP Task <br />page.</a><br />
{% endblock %}