Initial commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{% extends 'wagtailadmin/notifications/base.html' %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<p>{% blocktrans trimmed with title=revision.content_object.get_admin_display_title|safe %}The page "{{ title }}" has been approved.{% endblocktrans %}</p>
|
||||
<p>{% trans "You can view the page here:" %} <a href="{{ revision.content_object.full_url }}">{{ revision.content_object.full_url }}</a></p>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,8 @@
|
||||
{% extends 'wagtailadmin/notifications/base.txt' %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
{% blocktrans trimmed with title=revision.content_object.get_admin_display_title|safe %}The page "{{ title }}" has been approved.{% endblocktrans %}
|
||||
|
||||
{% trans "You can view the page here:" %} {{ revision.content_object.full_url }}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% blocktrans trimmed with title=revision.content_object.get_admin_display_title|safe %}The page "{{ title }}" has been approved{% endblocktrans %}
|
||||
139
env/lib/python3.10/site-packages/wagtail/admin/templates/wagtailadmin/notifications/base.html
vendored
Normal file
139
env/lib/python3.10/site-packages/wagtail/admin/templates/wagtailadmin/notifications/base.html
vendored
Normal file
@@ -0,0 +1,139 @@
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
{% get_current_language_bidi as LANGUAGE_BIDI %}
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html lang="{{ LANGUAGE_CODE }}" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title></title>
|
||||
<style>
|
||||
{% block styles_content %}
|
||||
body {
|
||||
min-width:100%;
|
||||
-webkit-text-size-adjust: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.ReadMsgBody {
|
||||
width: 100%;
|
||||
}
|
||||
.ExternalClass {
|
||||
width: 100%;
|
||||
}
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
mso-table-lspace:0pt;
|
||||
mso-table-rspace:0pt;
|
||||
}
|
||||
table td {
|
||||
border-collapse:collapse;
|
||||
}
|
||||
td.date a:link {
|
||||
color:#6b6b6b;
|
||||
text-decoration:none;
|
||||
}
|
||||
@media only screen and (max-width: 568px) {
|
||||
body[yahoo] .mobile {
|
||||
width:320px !important;
|
||||
}
|
||||
body[yahoo] .spacer {
|
||||
width:10px !important;
|
||||
}
|
||||
body[yahoo] .spacer_height {
|
||||
height:10px !important;
|
||||
}
|
||||
body[yahoo] .content {
|
||||
width:300px !important;
|
||||
}
|
||||
body[yahoo] .col-3{
|
||||
float: none !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
body[yahoo] .force-col {
|
||||
display: block;
|
||||
padding-inline-end: 0 !important;
|
||||
padding-inline-start: 0 !important;
|
||||
padding-bottom: 12px !important;
|
||||
}
|
||||
body[yahoo] .force-col-last {
|
||||
display: block;
|
||||
padding-inline-end: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
body[yahoo] .center {
|
||||
text-align:center;
|
||||
}
|
||||
body[yahoo] .show {
|
||||
display: block !important;
|
||||
}
|
||||
body[yahoo] .hide {
|
||||
display: none !important;
|
||||
}
|
||||
body[yahoo] .img {
|
||||
width: 130px !important;
|
||||
float: inline-start;
|
||||
}
|
||||
body[yahoo] .img img {
|
||||
width:100% !important;
|
||||
}
|
||||
body[yahoo] .text {
|
||||
width: 150px !important;
|
||||
float: inline-end;
|
||||
}
|
||||
{% endblock %}
|
||||
</style>
|
||||
</head>
|
||||
<body style="background-color:#E6E6E6;padding:0px;margin:0px;" yahoo="fix" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
|
||||
|
||||
<table width="600" border="0" align="center" class="mobile" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
{% block branding_logo %}<img width="100%" border="0" style="display: block;" alt="" src="{% notification_static 'wagtailadmin/images/email-header.jpg' %}" />{% endblock %}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="600" border="0" align="center" class="mobile" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td style="background:#FAFAFA;"><table width="600" border="0" align="center" cellspacing="0" cellpadding="0" class="mobile">
|
||||
<tr>
|
||||
<td height="30" class="spacer_height"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="mobile">
|
||||
<tr>
|
||||
<td width="30" class="spacer"> </td>
|
||||
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" class="content">
|
||||
<tr>
|
||||
<td style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color: #000000; line-height: 18px;">
|
||||
{% block title %}
|
||||
<div style="font-size:18px; line-height:24px; color: #43B1B0; font-weight:bold; display:inline-block; width: 100%; margin-bottom:10px;">{% block title_content %}{% endblock %}</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block greeting %}
|
||||
<p>{% blocktrans trimmed with username=user.get_short_name|default:user.get_username %}Hello {{ username }},{% endblocktrans %}</p>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
<div style="font-size: 10px; margin-top: 20px;">
|
||||
{% block preferences %}
|
||||
{% trans "Edit your notification preferences here:" %} <a href="{{ base_url }}{% url 'wagtailadmin_account' %}#tab-notifications">{{ base_url }}{% url 'wagtailadmin_account' %}#tab-notifications</a>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="30" class="spacer"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="600" border="0" align="center" cellspacing="0" cellpadding="0" class="mobile">
|
||||
<tr>
|
||||
<td height="30" class="spacer_height"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
11
env/lib/python3.10/site-packages/wagtail/admin/templates/wagtailadmin/notifications/base.txt
vendored
Normal file
11
env/lib/python3.10/site-packages/wagtail/admin/templates/wagtailadmin/notifications/base.txt
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block greeting %}
|
||||
{% blocktrans trimmed with username=user.get_short_name|default:user.get_username %}Hello {{ username }},{% endblocktrans %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
{% block preferences %}
|
||||
{% trans "Edit your notification preferences here:" %} {{ base_url }}{% url 'wagtailadmin_account' %}#tab-notifications
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,8 @@
|
||||
{% extends 'wagtailadmin/notifications/base.html' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %}
|
||||
<p>{% blocktrans trimmed with title=revision.content_object.get_admin_display_title|safe %}The page "{{ title }}" has been rejected.{% endblocktrans %}</p>
|
||||
<p>{% trans "You can edit the page here:"%} <a href="{{ base_url }}{% url 'wagtailadmin_pages:edit' revision.object_id %}">{{ base_url }}{% url 'wagtailadmin_pages:edit' revision.object_id %}</a></p>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,9 @@
|
||||
{% extends 'wagtailadmin/notifications/base.txt' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %}
|
||||
{% blocktrans trimmed with title=revision.content_object.get_admin_display_title|safe %}The page "{{ title }}" has been rejected.{% endblocktrans %}
|
||||
|
||||
{% trans "You can edit the page here:"%} {{ base_url }}{% url 'wagtailadmin_pages:edit' revision.object_id %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% blocktrans trimmed with title=revision.content_object.get_admin_display_title|safe %}The page "{{ title }}" has been rejected{% endblocktrans %}
|
||||
@@ -0,0 +1,28 @@
|
||||
{% extends 'wagtailadmin/notifications/base.html' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %}
|
||||
{% if page %}
|
||||
<p>{% blocktrans trimmed with title=page.get_admin_display_title task=task.name %}The page "{{ title }}" has been approved in moderation stage "{{ task }}".{% endblocktrans %}</p>
|
||||
<p>{% trans "You can edit the page here:"%} <a href="{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}</a></p>
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% admin_edit_url object user as edit_url %}
|
||||
<p>
|
||||
{% blocktrans trimmed with title=title task=task.name model_name=model_name asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been approved in moderation stage "{{ task }}".
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst }}
|
||||
</p>
|
||||
{% if edit_url %}
|
||||
<p>
|
||||
{% blocktrans trimmed with model_name=model_name asvar edit_message %}
|
||||
You can edit the {{ model_name }} here:
|
||||
{% endblocktrans %}
|
||||
{{ edit_message|capfirst }}
|
||||
<a href="{{ base_url }}{{ edit_url }}">{{ base_url }}{{ edit_url }}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,14 @@
|
||||
{% extends 'wagtailadmin/notifications/base.txt' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %} {% if page %}
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been approved in moderation stage "{{ task }}".{% endblocktrans %}
|
||||
{% trans "You can edit the page here:"%} {{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %} {% else %} {% latest_str object as title %} {% admin_edit_url object user as edit_url %}
|
||||
{% blocktrans trimmed with title=title|safe task=task.name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been approved in moderation stage "{{ task }}".
|
||||
{% endblocktrans %}{{ message|capfirst|safe }}
|
||||
{% if edit_url %}{% blocktrans trimmed with model_name=model_name|safe asvar edit_message %}
|
||||
You can edit the {{ model_name }} here:
|
||||
{% endblocktrans %}{{ edit_message|capfirst|safe }} {{ base_url }}{{ edit_url }}{% endif %}{% endif %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
|
||||
{% if page %}
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been approved in "{{ task }}".{% endblocktrans %}
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% blocktrans trimmed with title=title|safe task=task.name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been approved in "{{ task }}".
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst|safe }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,28 @@
|
||||
{% extends 'wagtailadmin/notifications/base.html' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %}
|
||||
{% if page %}
|
||||
<p>{% blocktrans trimmed with title=page.get_admin_display_title task=task.name %}The page "{{ title }}" has been rejected in moderation stage "{{ task }}".{% endblocktrans %}</p>
|
||||
<p>{% trans "You can edit the page here:"%} <a href="{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}</a></p>
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% admin_edit_url object user as edit_url %}
|
||||
<p>
|
||||
{% blocktrans trimmed with title=title task=task.name model_name=model_name asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been rejected in moderation stage "{{ task }}".
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst }}
|
||||
</p>
|
||||
{% if edit_url %}
|
||||
<p>
|
||||
{% blocktrans trimmed with model_name=model_name asvar edit_message %}
|
||||
You can edit the {{ model_name }} here:
|
||||
{% endblocktrans %}
|
||||
{{ edit_message|capfirst }}
|
||||
<a href="{{ base_url }}{{ edit_url }}">{{ base_url }}{{ edit_url }}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,14 @@
|
||||
{% extends 'wagtailadmin/notifications/base.txt' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %} {% if page %}
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been rejected in moderation stage "{{ task }}".{% endblocktrans %}
|
||||
{% trans "You can edit the page here:"%} {{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %} {% else %} {% latest_str object as title %} {% admin_edit_url object user as edit_url %}
|
||||
{% blocktrans trimmed with title=title|safe task=task.name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been rejected in moderation stage "{{ task }}".
|
||||
{% endblocktrans %}{{ message|capfirst|safe }}
|
||||
{% if edit_url %}{% blocktrans trimmed with model_name=model_name|safe asvar edit_message %}
|
||||
You can edit the {{ model_name }} here:
|
||||
{% endblocktrans %}{{ edit_message|capfirst|safe }} {{ base_url }}{{ edit_url }}{% endif %}{% endif %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
|
||||
{% if page %}
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been rejected during "{{ task }}".{% endblocktrans %}
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% blocktrans trimmed with title=title|safe task=task.name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been rejected during "{{ task }}".
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst|safe }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,45 @@
|
||||
{% extends 'wagtailadmin/notifications/base.html' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %}
|
||||
{% if page %}
|
||||
<p>{% blocktrans trimmed with task=task.name title=page.get_admin_display_title %}The page "{{ title }}" has been submitted for approval in moderation stage "{{ task }}".{% endblocktrans %}</p>
|
||||
|
||||
<p>
|
||||
{% trans "You can preview the page here:" %} <a href="{{ base_url }}{% url 'wagtailadmin_pages:workflow_preview' page.id task.id %}">{{ base_url }}{% url 'wagtailadmin_pages:workflow_preview' page.id task.id %}</a><br/>
|
||||
{% trans "You can edit the page here:" %} <a href="{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}</a>
|
||||
</p>
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% admin_edit_url object user as edit_url %}
|
||||
{% admin_url_name object 'workflow_preview' as workflow_preview_url_name %}
|
||||
{% url workflow_preview_url_name object.pk|admin_urlquote as preview_url %}
|
||||
<p>
|
||||
{% blocktrans trimmed with title=title task=task.name model_name=model_name asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been submitted for approval in moderation stage "{{ task }}".
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst }}
|
||||
</p>
|
||||
|
||||
{% if object.is_previewable or edit_url %}
|
||||
<p>
|
||||
{% if object.is_previewable %}
|
||||
{% blocktrans trimmed with model_name=model_name asvar preview_message %}
|
||||
You can preview the {{ model_name }} here:
|
||||
{% endblocktrans %}
|
||||
{{ preview_message|capfirst }}
|
||||
<a href="{{ base_url }}{{ preview_url }}">{{ base_url }}{{ preview_url }}</a>
|
||||
<br/>
|
||||
{% endif %}
|
||||
{% if edit_url %}
|
||||
{% blocktrans trimmed with model_name=model_name asvar edit_message %}
|
||||
You can edit the {{ model_name }} here:
|
||||
{% endblocktrans %}
|
||||
{{ edit_message|capfirst }}
|
||||
<a href="{{ base_url }}{{ edit_url }}">{{ base_url }}{{ edit_url }}</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,19 @@
|
||||
{% extends 'wagtailadmin/notifications/base.txt' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %} {% if page %}
|
||||
{% blocktrans trimmed with task=task.name|safe title=page.get_admin_display_title|safe %}The page "{{ title }}" has been submitted for approval to moderation stage "{{ task }}".{% endblocktrans %}
|
||||
|
||||
{% trans "You can preview the page here:" %} {{ base_url }}{% url 'wagtailadmin_pages:workflow_preview' page.id task.id %}
|
||||
{% trans "You can edit the page here:" %} {{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %} {% else %} {% latest_str object as title %} {% admin_edit_url object user as edit_url %} {% admin_url_name object 'workflow_preview' as workflow_preview_url_name %} {% url workflow_preview_url_name object.pk|admin_urlquote as preview_url %}
|
||||
{% blocktrans trimmed with title=title|safe task=task.name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been submitted for approval to moderation stage "{{ task }}".
|
||||
{% endblocktrans %}{{ message|capfirst|safe }} {% if object.is_previewable %}
|
||||
{% blocktrans trimmed with model_name=model_name|safe asvar preview_message %}
|
||||
You can preview the {{ model_name }} here:{% endblocktrans %}{{ preview_message|capfirst|safe }} {{ base_url }}{{ preview_url }}
|
||||
{% endif %} {% if edit_url %}
|
||||
{% blocktrans trimmed with model_name=model_name|safe asvar edit_message %}
|
||||
You can edit the {{ model_name }} here:{% endblocktrans %}{{ edit_message|capfirst|safe }} {{ base_url }}{{ edit_url }}{% endif %}{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
|
||||
{% if page %}
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been submitted for approval in moderation stage "{{ task }}" {% endblocktrans %}
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% blocktrans trimmed with title=title|safe task=task.name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been submitted for approval in moderation stage "{{ task }}"
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst|safe }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,59 @@
|
||||
{% extends 'wagtailadmin/notifications/base.html' %}
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %}
|
||||
<p>
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title editor=editor|user_display_name %}{{ editor }} has updated comments on "{{ title }}".{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
{% if new_comments %}
|
||||
<h3>{% trans "New comments" %}</h3>
|
||||
|
||||
<ul>
|
||||
{% for comment in new_comments %}
|
||||
<li>{{ comment.text }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% if resolved_comments %}
|
||||
<h3>{% trans "Resolved comments" %}</h3>
|
||||
|
||||
<ul>
|
||||
{% for comment in resolved_comments %}
|
||||
<li>{{ comment.text }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% if deleted_comments %}
|
||||
<h3>{% trans "Deleted comments" %}</h3>
|
||||
|
||||
<ul>
|
||||
{% for comment in deleted_comments %}
|
||||
<li>{{ comment.text }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% if replied_comments %}
|
||||
<h3>{% trans "New replies" %}</h3>
|
||||
|
||||
<ul>
|
||||
{% for thread in replied_comments %}
|
||||
<li>{% trans 'New replies to:' %} {{ thread.comment.text }}
|
||||
<ul>
|
||||
{% for reply in thread.replies %}
|
||||
<li>{{ reply.text }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<p>{% trans "You can edit the page here:"%} <a href="{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}</a></p>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
{% extends 'wagtailadmin/notifications/base.txt' %}
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %}{% blocktrans trimmed with title=page.get_admin_display_title|safe editor=editor|user_display_name|safe %}{{ editor }} has updated comments on "{{ title }}".{% endblocktrans %}
|
||||
{% spaceless %}
|
||||
|
||||
{% endspaceless %}{% if new_comments %}
|
||||
|
||||
{% trans "New comments:" %}{% for comment in new_comments %}
|
||||
- "{{ comment.text|safe }}"
|
||||
{% endfor %}{% endif %}{% spaceless %}
|
||||
|
||||
{% endspaceless %}{% if resolved_comments %}
|
||||
|
||||
{% trans "Resolved comments:" %}{% for comment in resolved_comments %}
|
||||
- "{{ comment.text|safe }}"
|
||||
{% endfor %}{% endif %}{% spaceless %}
|
||||
|
||||
{% endspaceless %}{% if deleted_comments %}
|
||||
|
||||
{% trans "Deleted comments:" %}{% for comment in deleted_comments %}
|
||||
- "{{ comment.text|safe }}"
|
||||
{% endfor %}{% endif %}{% spaceless %}
|
||||
|
||||
{% endspaceless %}{% if replied_comments %}
|
||||
|
||||
{% trans "New replies:" %}{% for thread in replied_comments %}
|
||||
|
||||
{% trans 'New replies to:' %} "{{ thread.comment.text|safe }}"{% for reply in thread.replies %}
|
||||
- "{{ reply.text|safe }}"{% endfor %}{% endfor %}{% endif %}
|
||||
|
||||
{% trans "You can edit the page here:" %} {{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe editor=editor|user_display_name|safe %}{{ editor }} has updated comments on "{{ title }}"{% endblocktrans %}
|
||||
@@ -0,0 +1,18 @@
|
||||
{% extends 'wagtailadmin/notifications/base.html' %}
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
|
||||
{% block content %}
|
||||
{% if page %}
|
||||
<p>{% blocktrans trimmed with title=page.get_admin_display_title workflow=workflow.name %}The page "{{ title }}" has been approved in workflow "{{ workflow }}".{% endblocktrans %}</p>
|
||||
<p>{% trans "You can view the page here:" %} <a href="{{ page.full_url }}">{{ page.full_url }}</a></p>
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% admin_edit_url object user as edit_url %}
|
||||
<p>
|
||||
{% blocktrans trimmed with title=title workflow=workflow.name model_name=model_name asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been approved in workflow "{{ workflow }}".
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst }}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,10 @@
|
||||
{% extends 'wagtailadmin/notifications/base.txt' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
|
||||
{% block content %} {% if page %}
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been approved in workflow "{{ workflow }}".{% endblocktrans %}
|
||||
{% trans "You can view the page here:" %} {{ page.full_url }} {% else %} {% latest_str object as title %}
|
||||
{% blocktrans trimmed with title=title|safe workflow=workflow.name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been approved in workflow "{{ workflow }}".
|
||||
{% endblocktrans %}{{ message|capfirst|safe }}{% endif %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
|
||||
{% if page %}
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been approved in "{{ workflow }}".{% endblocktrans %}
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% blocktrans trimmed with title=title|safe workflow=workflow.name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been approved in "{{ workflow }}".
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst|safe }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,51 @@
|
||||
{% extends 'wagtailadmin/notifications/base.html' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %}
|
||||
{% if page %}
|
||||
{% if task_state.finished_by %}
|
||||
<p>{% blocktrans trimmed with title=page.get_admin_display_title workflow=workflow.name task=task.name rejector=task_state.finished_by|user_display_name %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}" by {{ rejector }}.{% endblocktrans %}</p>
|
||||
{% else %}
|
||||
<p>{% blocktrans trimmed with title=page.get_admin_display_title workflow=workflow.name task=task.name %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}".{% endblocktrans %}</p>
|
||||
{% endif %}
|
||||
{% if comment %}
|
||||
<p>{% blocktrans trimmed %}The following comment was left: "{{ comment }}"{% endblocktrans %}</p>
|
||||
{% endif %}
|
||||
<p>{% trans "You can edit the page here:"%} <a href="{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}</a></p>
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% admin_edit_url object user as edit_url %}
|
||||
{% if task_state.finished_by %}
|
||||
<p>
|
||||
{% blocktrans trimmed with title=title workflow=workflow.name task=task.name rejector=task_state.finished_by|user_display_name model_name=model_name asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}" by {{ rejector }}.
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst }}
|
||||
</p>
|
||||
{% else %}
|
||||
<p>
|
||||
{% blocktrans trimmed with title=title workflow=workflow.name task=task.name model_name=model_name asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}".
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst }}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if comment %}
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
The following comment was left: "{{ comment }}"
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if edit_url %}
|
||||
<p>
|
||||
{% blocktrans trimmed with model_name=model_name asvar edit_message %}
|
||||
You can edit the {{ model_name }} here:
|
||||
{% endblocktrans %}
|
||||
{{ edit_message|capfirst }}
|
||||
<a href="{{ base_url }}{{ edit_url }}">{{ base_url }}{{ edit_url }}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,29 @@
|
||||
{% extends 'wagtailadmin/notifications/base.txt' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %} {% if page %}
|
||||
{% if task_state.finished_by %}
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe task=task.name|safe rejector=task_state.finished_by|user_display_name %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}" by {{ rejector }}.{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe task=task.name|safe %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}".{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% if comment %}
|
||||
{% blocktrans trimmed with comment=comment|safe %}The following comment was left: "{{ comment }}"{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% trans "You can edit the page here:"%} {{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %} {% else %} {% latest_str object as title %} {% admin_edit_url object user as edit_url %}
|
||||
{% if task_state.finished_by %}{% blocktrans trimmed with title=title|safe workflow=workflow.name|safe task=task.name|safe rejector=task_state.finished_by|user_display_name model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}" by {{ rejector }}.
|
||||
{% endblocktrans %}{{ message|capfirst|safe }}
|
||||
{% else %}
|
||||
{% blocktrans trimmed with title=title|safe workflow=workflow.name|safe task=task.name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}".
|
||||
{% endblocktrans %}{{ message|capfirst|safe }}
|
||||
{% endif %}
|
||||
{% if comment %}
|
||||
{% blocktrans trimmed with comment=comment|safe %}
|
||||
The following comment was left: "{{ comment }}"
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% if edit_url %}{% blocktrans trimmed with model_name=model_name|safe asvar edit_message %}You can edit the {{ model_name }} here: {% endblocktrans %}{{ edit_message|capfirst|safe }} {{ base_url }}{{ edit_url }}{% endif %}{% endif %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
|
||||
{% if page %}
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been rejected during "{{ workflow }}".{% endblocktrans %}
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% blocktrans trimmed with title=title|safe workflow=workflow.name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been rejected during "{{ workflow }}".
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst|safe }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,44 @@
|
||||
{% extends 'wagtailadmin/notifications/base.html' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %}
|
||||
{% if page %}
|
||||
{% if requested_by %}
|
||||
<p>{% blocktrans trimmed with workflow=workflow.name title=page.get_admin_display_title requester=requested_by|user_display_name %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}" by {{ requester }}.{% endblocktrans %}</p>
|
||||
{% else %}
|
||||
<p>{% blocktrans trimmed with workflow=workflow.name title=page.get_admin_display_title %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}".{% endblocktrans %}</p>
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
{% trans "You can edit the page here:" %} <a href="{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}</a>
|
||||
</p>
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% admin_edit_url object user as edit_url %}
|
||||
{% if requested_by %}
|
||||
<p>
|
||||
{% blocktrans trimmed with workflow=workflow.name title=title requester=requested_by|user_display_name model_name=model_name asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}" by {{ requester }}.
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst }}
|
||||
</p>
|
||||
{% else %}
|
||||
<p>
|
||||
{% blocktrans trimmed with workflow=workflow.name title=title model_name=model_name asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}".
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst }}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if edit_url %}
|
||||
<p>
|
||||
{% blocktrans trimmed with model_name=model_name asvar edit_message %}
|
||||
You can edit the {{ model_name }} here:
|
||||
{% endblocktrans %}
|
||||
{{ edit_message|capfirst }}
|
||||
<a href="{{ base_url }}{{ edit_url }}">{{ base_url }}{{ edit_url }}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,22 @@
|
||||
{% extends 'wagtailadmin/notifications/base.txt' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% base_url_setting default="" as base_url %}
|
||||
|
||||
{% block content %} {% if page %}
|
||||
{% if requested_by %}{% blocktrans trimmed with workflow=workflow.name|safe title=page.get_admin_display_title|safe requester=requested_by|user_display_name|safe %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}" by {{ requester }}.{% endblocktrans %}
|
||||
{% else %}{% blocktrans trimmed with workflow=workflow.name|safe title=page.get_admin_display_title|safe %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}".{% endblocktrans %}
|
||||
{% endif %}
|
||||
|
||||
{% trans "You can edit the page here:" %} {{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %} {% else %} {% latest_str object as title %} {% admin_edit_url object user as edit_url %}
|
||||
{% if requested_by %}{% blocktrans trimmed with workflow=workflow.name|safe title=title|safe requester=requested_by|user_display_name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}" by {{ requester }}.
|
||||
{% endblocktrans %}{{ message|capfirst|safe }}
|
||||
{% else %}{% blocktrans trimmed with workflow=workflow.name|safe title=title|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}".
|
||||
{% endblocktrans %}{{ message|capfirst|safe }}
|
||||
{% endif %}
|
||||
|
||||
{% if edit_url %}{% blocktrans trimmed with model_name=model_name|safe asvar edit_message %}
|
||||
You can edit the {{ model_name }} here:{% endblocktrans %}{{ edit_message|capfirst|safe }} {{ base_url }}{{ edit_url }}{% endif %}{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
|
||||
{% if page %}
|
||||
{% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been submitted to workflow "{{ workflow }}" {% endblocktrans %}
|
||||
{% else %}
|
||||
{% latest_str object as title %}
|
||||
{% blocktrans trimmed with title=title|safe workflow=workflow.name|safe model_name=model_name|safe asvar message %}
|
||||
The {{ model_name }} "{{ title }}" has been submitted to workflow "{{ workflow }}"
|
||||
{% endblocktrans %}
|
||||
{{ message|capfirst|safe }}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user