Refactoring email templates for notifications

remotes/origin/enhancement/email-actions
Alejandro Alonso 2014-10-28 18:02:46 +01:00
parent a68785a380
commit 89b8dfdc63
55 changed files with 245 additions and 222 deletions

View File

@ -99,12 +99,12 @@
{# DESCRIPTIONS #}
{% elif field_name in ["description_diff"] %}
<dd style="background: #eee; padding: 5px 15px; color: #444">
<b>diff:</b> <i>{{ mdrender(object.project, values.1) }}</i>
<b>diff:</b> <i>{{ mdrender(project, values.1) }}</i>
</dd>
{# CONTENT #}
{% elif field_name in ["content_diff"] %}
<dd style="background: #eee; padding: 5px 15px; color: #444">
<b>diff:</b> <i>{{ mdrender(object.project, values.1) }}</i>
<b>diff:</b> <i>{{ mdrender(project, values.1) }}</i>
</dd>
{# ASSIGNED TO #}
{% elif field_name == "assigned_to" %}

View File

@ -1,23 +1,25 @@
{% extends "emails/base.jinja" %}
{% set final_url = resolve_front_url("issue", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View issue #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("issue", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View issue #{0}".format(snapshot.ref) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>Project: {{ object.project.name }}</h1>
<h2>Issue #{{ object.ref }}: {{ object.subject }}</h2>
<h1>Project: {{ project.name }}</h1>
<h2>Issue #{{ snapshot.ref }}: {{ snapshot.subject }}</h2>
<p>Updated by <b>{{ changer.get_full_name() }}</b>.</p>
{% if comment %}
<p>Comment <b>{{ mdrender(object.project, comment) }}</b></p>
{% endif %}
{% if changed_fields %}
<p>Updated fields:</p>
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
</td>
{% for entry in history_entries%}
{% if entry.comment %}
<p>Comment <b>{{ mdrender(project, entry.comment) }}</b></p>
{% endif %}
{% set changed_fields = entry.values_diff %}
{% if changed_fields %}
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
</td>
{% endfor %}
</tr>
</table>
{% endblock %}

View File

@ -1,15 +1,17 @@
{% set final_url = resolve_front_url("issue", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View issue #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("issue", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View issue #{0}".format(snapshot.ref) %}
- Project: {{ object.project.name }}
- Issue #{{ object.ref }}: {{ object.subject }}
- Project: {{ project.name }}
- Issue #{{ snapshot.ref }}: {{ snapshot.subject }}
- Updated by {{ changer.get_full_name() }}
{% if comment %}
Comment: {{ comment|linebreaksbr }}
{% endif %}
{% if changed_fields %}
- Updated fields:
{% include "emails/includes/fields_diff-text.jinja" %}
{% endif %}
{% for entry in history_entries%}
{% if entry.comment %}
Comment: {{ entry.comment|linebreaksbr }}
{% endif %}
{% set changed_fields = entry.values_diff %}
{% if changed_fields %}
{% include "emails/includes/fields_diff-text.jinja" %}
{% endif %}
{% endfor %}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Updated the issue #{{ object.ref|safe }} "{{ object.subject|safe }}"
[{{ project.name|safe }}] Updated the issue #{{ snapshot.ref|safe }} "{{ snapshot.subject|safe }}"

View File

@ -1,14 +1,14 @@
{% extends "emails/base.jinja" %}
{% set final_url = resolve_front_url("issue", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View issue #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("issue", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View issue #{0}".format(snapshot.ref) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>Project: {{ object.project.name }}</h1>
<h2>Issue #{{ object.ref }}: {{ object.subject }}</h2>
<h1>Project: {{ project.name }}</h1>
<h2>Issue #{{ snapshot.ref }}: {{ snapshot.subject }}</h2>
<p>Created by <b>{{ changer.get_full_name() }}</b>.</p>
</td>
</tr>

View File

@ -1,8 +1,8 @@
{% set final_url = resolve_front_url("issue", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View issue #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("issue", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View issue #{0}".format(snapshot.ref) %}
- Project: {{ object.project.name }}
- US #{{ object.ref }}: {{ object.subject }}
- Project: {{ project.name }}
- US #{{ snapshot.ref }}: {{ snapshot.subject }}
- Created by {{ changer.get_full_name() }}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Created the issue #{{ object.ref|safe }} "{{ object.subject|safe }}"
[{{ project.name|safe }}] Created the issue #{{ snapshot.ref|safe }} "{{ snapshot.subject|safe }}"

View File

@ -4,8 +4,8 @@
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>{{ object.project.name }}</h1>
<h2>Issue #{{ object.ref }}: {{ object.subject }}</h2>
<h1>{{ project.name }}</h1>
<h2>Issue #{{ snapshot.ref }}: {{ snapshot.subject }}</h2>
<p>Deleted by <b>{{ changer.get_full_name() }}</b></p>
</td>
</tr>

View File

@ -1,3 +1,3 @@
- Project: {{ object.project.name }}
- Issue #{{ object.ref }}: {{ object.subject }}
- Project: {{ project.name }}
- Issue #{{ snapshot.ref }}: {{ snapshot.subject }}
- Deleted by {{ changer.get_full_name() }}

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Deleted the issue #{{ object.ref|safe }} "{{ object.subject|safe }}"
[{{ project.name|safe }}] Deleted the issue #{{ snapshot.ref|safe }} "{{ snapshot.subject|safe }}"

View File

@ -1,22 +1,24 @@
{% extends "emails/base.jinja" %}
{% set final_url = resolve_front_url("taskboard", object.project.slug, object.slug) %}
{% set final_url_name = "Taiga - View milestone #{0}".format(object.slug) %}
{% set final_url = resolve_front_url("taskboard", project.slug, snapshot.slug) %}
{% set final_url_name = "Taiga - View milestone #{0}".format(snapshot.slug) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>Project: {{ object.project.name }}</h1>
<h2>Milestone #{{ object.slug }}: {{ object.name }}</h2>
<h1>Project: {{ project.name }}</h1>
<h2>Milestone #{{ snapshot.slug }}: {{ snapshot.name }}</h2>
<p>Updated by <b>{{ changer.get_full_name() }}</b>.</p>
{% if comment %}
<p>Comment <b>{{ comment|linebreaksbr }}</b></p>
{% endif %}
{% if changed_fields %}
<p>Updated fields:</p>
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
{% for entry in history_entries%}
{% if entry.comment %}
<p>Comment <b>{{ entry.comment|linebreaksbr }}</b></p>
{% endif %}
{% set changed_fields = entry.values_diff %}
{% if changed_fields %}
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
{% endfor %}
</td>
</tr>
</table>

View File

@ -1,15 +1,17 @@
{% set final_url = resolve_front_url("taskboard", object.project.slug, object.slug) %}
{% set final_url_name = "Taiga - View milestone #{0}".format(object.slug) %}
{% set final_url = resolve_front_url("taskboard", project.slug, snapshot.slug) %}
{% set final_url_name = "Taiga - View milestone #{0}".format(snapshot.slug) %}
- Project: {{ object.project.name }}
- Milestone #{{ object.slug }}: {{ object.name }}
- Project: {{ project.name }}
- Milestone #{{ snapshot.slug }}: {{ snapshot.name }}
- Updated by {{ changer.get_full_name() }}
{% if comment %}
Comment: {{ comment|linebreaksbr }}
{% endif %}
{% if changed_fields %}
- Updated fields:
{% include "emails/includes/fields_diff-text.jinja" %}
{% endif %}
{% for entry in history_entries%}
{% if entry.comment %}
Comment: {{ entry.comment|linebreaksbr }}
{% endif %}
{% set changed_fields = entry.values_diff %}
{% if changed_fields %}
{% include "emails/includes/fields_diff-text.jinja" %}
{% endif %}
{% endfor %}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Updated the milestone #{{ object.slug|safe }} "{{ object.name|safe }}"
[{{ project.name|safe }}] Updated the milestone #{{ snapshot.slug|safe }} "{{ snapshot.name|safe }}"

View File

@ -1,14 +1,14 @@
{% extends "emails/base.jinja" %}
{% set final_url = resolve_front_url("taskboard", object.project.slug, object.slug) %}
{% set final_url_name = "Taiga - View milestone #{0}".format(object.slug) %}
{% set final_url = resolve_front_url("taskboard", project.slug, snapshot.slug) %}
{% set final_url_name = "Taiga - View milestone #{0}".format(snapshot.slug) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>Project: {{ object.project.name }}</h1>
<h2>Milestone #{{ object.slug }}: {{ object.name }}</h2>
<h1>Project: {{ project.name }}</h1>
<h2>Milestone #{{ snapshot.slug }}: {{ snapshot.name }}</h2>
<p>Created by <b>{{ changer.get_full_name() }}</b>.</p>
</td>
</tr>

View File

@ -1,8 +1,8 @@
{% set final_url = resolve_front_url("taskboard", object.project.slug, object.slug) %}
{% set final_url_name = "Taiga - View milestone #{0}".format(object.slug) %}
{% set final_url = resolve_front_url("taskboard", project.slug, snapshot.slug) %}
{% set final_url_name = "Taiga - View milestone #{0}".format(snapshot.slug) %}
- Project: {{ object.project.name }}
- Milestone #{{ object.slug }}: {{ object.name }}
- Project: {{ project.name }}
- Milestone #{{ snapshot.slug }}: {{ snapshot.name }}
- Created by {{ changer.get_full_name() }}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Created the milestone #{{ object.slug|safe }} "{{ object.name|safe }}"
[{{ project.name|safe }}] Created the milestone #{{ snapshot.slug|safe }} "{{ snapshot.name|safe }}"

View File

@ -4,8 +4,8 @@
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>{{ object.project.name }}</h1>
<h2>Milestone #{{ object.slug }}: {{ object.name }}</h2>
<h1>{{ project.name }}</h1>
<h2>Milestone #{{ snapshot.slug }}: {{ snapshot.name }}</h2>
<p>Deleted by <b>{{ changer.get_full_name() }}</b></p>
</td>
</tr>

View File

@ -1,3 +1,3 @@
- Project: {{ object.project.name }}
- Milestone #{{ object.slug }}: {{ object.name }}
- Project: {{ project.name }}
- Milestone #{{ snapshot.slug }}: {{ snapshot.name }}
- Deleted by {{ changer.get_full_name() }}

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Deleted the milestone #{{ object.slug|safe }} "{{ object.name|safe }}"
[{{ project.name|safe }}] Deleted the milestone #{{ snapshot.slug|safe }} "{{ snapshot.name|safe }}"

View File

@ -1,21 +1,23 @@
{% extends "emails/base.jinja" %}
{% set final_url = resolve_front_url("project-admin", object.slug) %}
{% set final_url_name = "Taiga - View Project #{0}".format(object.slug) %}
{% set final_url = resolve_front_url("project-admin", snapshot.slug) %}
{% set final_url_name = "Taiga - View Project #{0}".format(snapshot.slug) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h2>Project #{{ object.slug }}: {{ object.name }}</h2>
<h2>Project #{{ snapshot.slug }}: {{ snapshot.name }}</h2>
<p>Updated by <b>{{ changer.get_full_name() }}</b>.</p>
{% if comment %}
<p>Comment <b>{{ comment|linebreaksbr }}</b></p>
{% endif %}
{% if changed_fields %}
<p>Updated fields:</p>
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
{% for entry in history_entries%}
{% if entry.comment %}
<p>Comment <b>{{ entry.comment|linebreaksbr }}</b></p>
{% endif %}
{% set changed_fields = entry.values_diff %}
{% if changed_fields %}
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
{% endfor %}
</td>
</tr>
</table>

View File

@ -1,16 +1,17 @@
{% set final_url = resolve_front_url("project-admin", object.slug) %}
{% set final_url_name = "Taiga - View Project #{0}".format(object.slug) %}
{% set final_url = resolve_front_url("project-admin", snapshot.slug) %}
{% set final_url_name = "Taiga - View Project #{0}".format(snapshot.slug) %}
- Project #{{ object.slug }}: {{ object.name }}
- Project #{{ snapshot.slug }}: {{ snapshot.name }}
- Updated by {{ changer.get_full_name() }}
{% if comment %}
Comment: {{ comment|linebreaksbr }}
{% endif %}
{% if changed_fields %}
- Updated fields:
{% for field_name, values in changed_fields.items() %}
* {{ verbose_name(object, field_name) }}</b>: from '{{ values.0 }}' to '{{ values.1 }}'.
{% endfor %}
{% endif %}
{% for entry in history_entries%}
{% if entry.comment %}
Comment: {{ entry.comment|linebreaksbr }}
{% endif %}
{% set changed_fields = entry.values_diff %}
{% for field_name, values in changed_fields.items() %}
* {{ verbose_name(object, field_name) }}</b>: from '{{ values.0 }}' to '{{ values.1 }}'.
{% endfor %}
{% endif %}
{% endfor %}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.name|safe }}] Updated the project #{{ object.slug|safe }}
[{{ snapshot.name|safe }}] Updated the project #{{ snapshot.slug|safe }}

View File

@ -1,12 +1,12 @@
{% set final_url = resolve_front_url("project-admin", object.slug) %}
{% set final_url_name = "Taiga - View Project #{0}".format(object.slug) %}
{% set final_url = resolve_front_url("project-admin", snapshot.slug) %}
{% set final_url_name = "Taiga - View Project #{0}".format(snapshot.slug) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>Project: {{ object.project.name }}</h1>
<h2>Project #{{ object.slug }}: {{ object.name }}</h2>
<h1>Project: {{ project.name }}</h1>
<h2>Project #{{ snapshot.slug }}: {{ snapshot.name }}</h2>
<p>Created by <b>{{ changer.get_full_name() }}</b>.</p>
</td>
</tr>

View File

@ -1,7 +1,7 @@
{% set final_url = resolve_front_url("project-admin", object.slug) %}
{% set final_url_name = "Taiga - View Project #{0}".format(object.slug) %}
{% set final_url = resolve_front_url("project-admin", snapshot.slug) %}
{% set final_url_name = "Taiga - View Project #{0}".format(snapshot.slug) %}
- Project #{{ object.slug }}: {{ object.name }}
- Project #{{ snapshot.slug }}: {{ snapshot.name }}
- Created by {{ changer.get_full_name() }}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.name|safe }}] Created the project #{{ object.slug|safe }}
[{{ snapshot.name|safe }}] Created the project #{{ snapshot.slug|safe }}

View File

@ -4,7 +4,7 @@
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h2>Project #{{ object.slug }}: {{ object.name }}</h2>
<h2>Project #{{ snapshot.slug }}: {{ snapshot.name }}</h2>
<p>Deleted by <b>{{ changer.get_full_name() }}</b></p>
</td>
</tr>

View File

@ -1,2 +1,2 @@
- Project #{{ object.slug }}: {{ object.name }}
- Project #{{ snapshot.slug }}: {{ snapshot.name }}
- Deleted by {{ changer.get_full_name() }}

View File

@ -1 +1 @@
[{{ object.name|safe }}] Deleted the project #{{ object.slug|safe }}
[{{ snapshot.name|safe }}] Deleted the project #{{ snapshot.slug|safe }}

View File

@ -1,22 +1,24 @@
{% extends "emails/base.jinja" %}
{% set final_url = resolve_front_url("task", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View task #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("task", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View task #{0}".format(snapshot.ref) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>Project: {{ object.project.name }}</h1>
<h2>Task #{{ object.ref }}: {{ object.subject }}</h2>
<h1>Project: {{ project.name }}</h1>
<h2>Task #{{ snapshot.ref }}: {{ snapshot.subject }}</h2>
<p>Updated by <b>{{ changer.get_full_name() }}</b>.</p>
{% if comment %}
<p>Comment <b>{{ mdrender(object.project, comment) }}</b></p>
{% endif %}
{% if changed_fields %}
<p>Updated fields:</p>
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
{% for entry in history_entries%}
{% if entry.comment %}
<p>Comment <b>{{ mdrender(project, entry.comment) }}</b></p>
{% endif %}
{% set changed_fields = entry.values_diff %}
{% if changed_fields %}
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
{% endfor %}
</td>
</tr>
</table>

View File

@ -1,15 +1,17 @@
{% set final_url = resolve_front_url("task", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View task #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("task", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View task #{0}".format(snapshot.ref) %}
- Project: {{ object.project.name }}
- Task #{{ object.ref }}: {{ object.subject }}
- Project: {{ project.name }}
- Task #{{ snapshot.ref }}: {{ snapshot.subject }}
- Updated by {{ changer.get_full_name() }}
{% if comment %}
Comment: {{ comment|linebreaksbr }}
{% endif %}
{% if changed_fields %}
- Updated fields:
{% include "emails/includes/fields_diff-text.jinja" %}
{% endif %}
{% for entry in history_entries%}
{% if entry.comment %}
Comment: {{ entry.comment|linebreaksbr }}
{% endif %}
{% set changed_fields = entry.values_diff %}
{% if changed_fields %}
{% include "emails/includes/fields_diff-text.jinja" %}
{% endif %}
{% endfor %}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Updated the task #{{ object.ref }} "{{ object.subject|safe }}"
[{{ project.name|safe }}] Updated the task #{{ snapshot.ref }} "{{ snapshot.subject|safe }}"

View File

@ -1,14 +1,14 @@
{% extends "emails/base.jinja" %}
{% set final_url = resolve_front_url("task", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View task #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("task", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View task #{0}".format(snapshot.ref) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>Project: {{ object.project.name }}</h1>
<h2>Task #{{ object.ref }}: {{ object.subject }}</h2>
<h1>Project: {{ project.name }}</h1>
<h2>Task #{{ snapshot.ref }}: {{ snapshot.subject }}</h2>
<p>Created by <b>{{ changer.get_full_name() }}</b>.</p>
</td>
</tr>

View File

@ -1,8 +1,8 @@
{% set final_url = resolve_front_url("task", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View task #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("task", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View task #{0}".format(snapshot.ref) %}
- Project: {{ object.project.name }}
- Task #{{ object.ref }}: {{ object.subject }}
- Project: {{ project.name }}
- Task #{{ snapshot.ref }}: {{ snapshot.subject }}
- Created by {{ changer.get_full_name() }}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Created the task #{{ object.ref }} "{{ object.subject|safe }}"
[{{ project.name|safe }}] Created the task #{{ snapshot.ref }} "{{ snapshot.subject|safe }}"

View File

@ -4,8 +4,8 @@
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>{{ object.project.name }}</h1>
<h2>Task #{{ object.ref }}: {{ object.subject }}</h2>
<h1>{{ project.name }}</h1>
<h2>Task #{{ snapshot.ref }}: {{ snapshot.subject }}</h2>
<p>Deleted by <b>{{ changer.get_full_name() }}</b></p>
</td>
</tr>

View File

@ -1,4 +1,4 @@
- Project: {{ object.project.name }}
- Task #{{ object.ref }}: {{ object.subject }}
- Project: {{ project.name }}
- Task #{{ snapshot.ref }}: {{ snapshot.subject }}
- Deleted by {{ changer.get_full_name() }}

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Deleted the task #{{ object.ref }} "{{ object.subject|safe }}"
[{{ project.name|safe }}] Deleted the task #{{ snapshot.ref }} "{{ snapshot.subject|safe }}"

View File

@ -1,22 +1,24 @@
{% extends "emails/base.jinja" %}
{% set final_url = resolve_front_url("userstory", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View US #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("userstory", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View US #{0}".format(snapshot.ref) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>Project: {{ object.project.name }}</h1>
<h2>US #{{ object.ref }}: {{ object.subject }}</h2>
<h1>Project: {{ project.name }}</h1>
<h2>US #{{ snapshot.ref }}: {{ snapshot.subject }}</h2>
<p>Updated by <b>{{ changer.get_full_name() }}</b>.</p>
{% if comment %}
<p>Comment <b>{{ mdrender(object.project, comment)}}</b></p>
{% endif %}
{% if changed_fields %}
<p>Updated fields:</p>
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
{% for entry in history_entries%}
{% if entry.comment %}
<p>Comment <b>{{ mdrender(project, entry.comment) }}</b></p>
{% endif %}
{% set changed_fields = entry.values_diff %}
{% if changed_fields %}
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
{% endfor %}
</td>
</tr>
</table>

View File

@ -1,15 +1,17 @@
{% set final_url = resolve_front_url("userstory", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View US #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("userstory", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View US #{0}".format(snapshot.ref) %}
- Project: {{ object.project.name }}
- US #{{ object.ref }}: {{ object.subject }}
- Project: {{ project.name }}
- US #{{ snapshot.ref }}: {{ snapshot.subject }}
- Updated by {{ changer.get_full_name() }}
{% if comment %}
Comment: {{ comment|linebreaksbr }}
{% endif %}
{% if changed_fields %}
- Updated fields:
{% include "emails/includes/fields_diff-text.jinja" %}
{% endif %}
{% for entry in history_entries%}
{% if entry.comment %}
Comment: {{ entry.comment|linebreaksbr }}
{% endif %}
{% set changed_fields = entry.values_diff %}
{% if changed_fields %}
{% include "emails/includes/fields_diff-text.jinja" %}
{% endif %}
{% endfor %}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Updated the US #{{ object.ref }} "{{ object.subject|safe }}"
[{{ project.name|safe }}] Updated the US #{{ snapshot.ref }} "{{ snapshot.subject|safe }}"

View File

@ -1,14 +1,14 @@
{% extends "emails/base.jinja" %}
{% set final_url = resolve_front_url("userstory", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View US #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("userstory", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View US #{0}".format(snapshot.ref) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>Project: {{ object.project.name }}</h1>
<h2>US #{{ object.ref }}: {{ object.subject }}</h2>
<h1>Project: {{ project.name }}</h1>
<h2>US #{{ snapshot.ref }}: {{ snapshot.subject }}</h2>
<p>Created by <b>{{ changer.get_full_name() }}</b>.</p>
</td>
</tr>

View File

@ -1,8 +1,8 @@
{% set final_url = resolve_front_url("userstory", object.project.slug, object.ref) %}
{% set final_url_name = "Taiga - View US #{0}".format(object.ref) %}
{% set final_url = resolve_front_url("userstory", project.slug, snapshot.ref) %}
{% set final_url_name = "Taiga - View US #{0}".format(snapshot.ref) %}
- Project: {{ object.project.name }}
- US #{{ object.ref }}: {{ object.subject }}
- Project: {{ project.name }}
- US #{{ snapshot.ref }}: {{ snapshot.subject }}
- Created by {{ changer.get_full_name() }}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Created the US #{{ object.ref }} "{{ object.subject|safe }}"
[{{ project.name|safe }}] Created the US #{{ snapshot.ref }} "{{ snapshot.subject|safe }}"

View File

@ -4,8 +4,8 @@
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>{{ object.project.name }}</h1>
<h2>US #{{ object.ref }}: {{ object.subject }}</h2>
<h1>{{ project.name }}</h1>
<h2>US #{{ snapshot.ref }}: {{ snapshot.subject }}</h2>
<p>Deleted by <b>{{ changer.get_full_name() }}</b></p>
</td>
</tr>

View File

@ -1,3 +1,3 @@
- Project: {{ object.project.name }}
- US #{{ object.ref }}: {{ object.subject }}
- Project: {{ project.name }}
- US #{{ snapshot.ref }}: {{ snapshot.subject }}
- Deleted by {{ changer.get_full_name() }}

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Deleted the US #{{ object.ref }} "{{ object.subject|safe }}"
[{{ project.name|safe }}] Deleted the US #{{ snapshot.ref }} "{{ snapshot.subject|safe }}"

View File

@ -1,22 +1,24 @@
{% extends "emails/base.jinja" %}
{% set final_url = resolve_front_url("wiki", object.project.slug, object.slug) %}
{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(object.slug) %}
{% set final_url = resolve_front_url("wiki", project.slug, snapshot.slug) %}
{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(snapshot.slug) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>Project: {{ object.project.name }}</h1>
<h2>Wiki Page: {{ object.slug }}</h2>
<h1>Project: {{ project.name }}</h1>
<h2>Wiki Page: {{ snapshot.slug }}</h2>
<p>Updated by <b>{{ changer.get_full_name() }}</b>.</p>
{% if comment %}
<p>Comment <b>{{ mdrender(object.project, comment) }}</b></p>
{% endif %}
{% if changed_fields %}
<p>Updated fields:</p>
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
{% for entry in history_entries%}
{% if entry.comment %}
<p>Comment <b>{{ mdrender(project, entry.comment) }}</b></p>
{% endif %}
{% set changed_fields = entry.values_diff %}
{% if changed_fields %}
{% include "emails/includes/fields_diff-html.jinja" %}
{% endif %}
{% endfor %}
</td>
</tr>
</table>

View File

@ -1,15 +1,17 @@
{% set final_url = resolve_front_url("wiki", object.project.slug, object.slug) %}
{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(object.slug) %}
{% set final_url = resolve_front_url("wiki", project.slug, snapshot.slug) %}
{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(snapshot.slug) %}
- Project: {{ object.project.name }}
- Wiki Page: {{ object.slug }}
- Project: {{ project.name }}
- Wiki Page: {{ snapshot.slug }}
- Updated by {{ changer.get_full_name() }}
{% if comment %}
Comment: {{ comment|linebreaksbr }}
{% endif %}
{% if changed_fields %}
- Updated fields:
{% include "emails/includes/fields_diff-text.jinja" %}
{% endif %}
{% for entry in history_entries%}
{% if entry.comment %}
Comment: {{ entry.comment|linebreaksbr }}
{% endif %}
{% set changed_fields = entry.values_diff %}
{% if changed_fields %}
{% include "emails/includes/fields_diff-text.jinja" %}
{% endif %}
{% endfor %}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Updated the Wiki Page "{{ object.slug }}"
[{{ project.name|safe }}] Updated the Wiki Page "{{ snapshot.slug }}"

View File

@ -1,14 +1,14 @@
{% extends "emails/base.jinja" %}
{% set final_url = resolve_front_url("wiki", object.project.slug, object.slug) %}
{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(object.slug) %}
{% set final_url = resolve_front_url("wiki", project.slug, snapshot.slug) %}
{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(snapshot.slug) %}
{% block body %}
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>Project: {{ object.project.name }}</h1>
<h2>Wiki Page: {{ object.slug }}</h2>
<h1>Project: {{ project.name }}</h1>
<h2>Wiki Page: {{ snapshot.slug }}</h2>
<p>Created by <b>{{ changer.get_full_name() }}</b>.</p>
</td>
</tr>

View File

@ -1,8 +1,8 @@
{% set final_url = resolve_front_url("wiki", object.project.slug, object.slug) %}
{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(object.slug) %}
{% set final_url = resolve_front_url("wiki", project.slug, snapshot.slug) %}
{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(snapshot.slug) %}
- Project: {{ object.project.name }}
- Wiki Page: {{ object.slug }}
- Project: {{ project.name }}
- Wiki Page: {{ snapshot.slug }}
- Created by {{ changer.get_full_name() }}
** More info at {{ final_url_name }} ({{ final_url }}) **

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Created the Wiki Page "{{ object.slug }}"
[{{ project.name|safe }}] Created the Wiki Page "{{ snapshot.slug }}"

View File

@ -4,8 +4,8 @@
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="table-body">
<tr>
<td>
<h1>{{ object.project.name }}</h1>
<h2>Wiki Page: {{ object.slug }}</h2>
<h1>{{ project.name }}</h1>
<h2>Wiki Page: {{ snapshot.slug }}</h2>
<p>Deleted by <b>{{ changer.get_full_name() }}</b></p>
</td>
</tr>

View File

@ -1,3 +1,3 @@
- Project: {{ object.project.name }}
- Wiki Page: {{ object.slug }}
- Project: {{ project.name }}
- Wiki Page: {{ snapshot.slug }}
- Deleted by {{ changer.get_full_name() }}

View File

@ -1 +1 @@
[{{ object.project.name|safe }}] Deleted the Wiki Page "{{ object.slug }}"
[{{ project.name|safe }}] Deleted the Wiki Page "{{ snapshot.slug }}"