Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,17 @@ | ||
{%- extends 'email/base.txt' -%} | ||
{%- import 'email/macro.html' as macro with context -%} | ||
|
||
{%- block content -%} | ||
{%- autoescape false -%} | ||
На сайте {{ url_for('index.index', _external=True) }} опубликован новый рассказ: | ||
|
||
«{{ story.title }}» | ||
{{ url_for('story.view', pk=story.id, _external=True) }} | ||
{{ macro.story_info_plain(story) }} | ||
|
||
{{ ngettext("%(num)d word", "%(num)d words", story.words) }} от {% for author in story.authors -%} | ||
{%- if loop.first -%} | ||
{{- author.username -}} | ||
{%- if loop.length > 1 %} (в соавторстве с {% endif -%} | ||
{%- endif -%} | ||
{%- if not loop.first -%} | ||
{{- author.username -}} | ||
{%- if loop.revindex0 == 1 %} и {% endif %}{% if loop.revindex0 > 1 %}, {% endif -%} | ||
{%- if loop.last and loop.length > 1 %}){% endif -%} | ||
{%- endif -%} | ||
{%- endfor %} | ||
{%- if story.notes %} | ||
|
||
{{ story.summary_as_html|striptags }} | ||
Заметки к рассказу: | ||
|
||
{{ story.notes|striptags }} | ||
{%- endif %} | ||
{%- endautoescape -%} | ||
{%- endblock -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
{%- extends 'email/base.txt' -%} | ||
{%- import 'email/macro.html' as macro with context -%} | ||
|
||
{%- block content -%} | ||
{%- autoescape false -%} | ||
Пользователь {{ author.username }} на сайте {{ url_for('index.index', _external=True) }} опубликовал рассказ «{{ story.title }}» без премодерации. | ||
Пользователь {{ author.username }} на сайте {{ url_for('index.index', _external=True) }} опубликовал рассказ без премодерации: | ||
|
||
{{ url_for('story.view', pk=story.id, _external=True) }} | ||
{{ macro.story_info_plain(story) }} | ||
|
||
{%- if story.notes %} | ||
|
||
Заметки к рассказу: | ||
|
||
{{ story.notes|striptags }} | ||
{%- endif %} | ||
{%- endautoescape -%} | ||
{%- endblock -%} |