This repository has been archived by the owner on Jun 22, 2021. It is now read-only.
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
8 changed files
with
70 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{% extends 'base.html' %} |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% extends "comments/base.html" %} | ||
{% load i18n %} | ||
|
||
{% block title %}{% trans "Preview your comment" %}{% endblock %} | ||
|
||
{% block content %} | ||
{% load comments %} | ||
{% if user.is_authenticated %} | ||
<form action="{% comment_form_target %}" method="post">{% csrf_token %} | ||
{% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %} | ||
{% if form.errors %} | ||
<h1>{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h1> | ||
{% else %} | ||
<h1>{% trans "Preview your comment" %}</h1> | ||
<blockquote>{{ comment|linebreaks }}</blockquote> | ||
<p> | ||
{% trans "and" %} <input type="submit" name="submit" class="submit-post" value="{% trans "Post your comment" %}" id="submit" /> {% trans "or make changes" %}: | ||
</p> | ||
{% endif %} | ||
{% for field in form %} | ||
{% if field.is_hidden %} | ||
<div>{{ field }}</div> | ||
{% else %} | ||
{% if field.errors %}{{ field.errors }}{% endif %} | ||
<p | ||
{% if field.errors %} class="error"{% endif %} | ||
{% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}> | ||
{{ field.label_tag }} {{ field }} | ||
</p> | ||
{% endif %} | ||
{% endfor %} | ||
<p class="submit"> | ||
<input type="submit" name="submit" class="submit-post" value="{% trans "Post" %}" /> | ||
<input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}" /> | ||
</p> | ||
</form> | ||
{% else %} | ||
<a href="/accounts/login/">Log in</a> or <a href="/accounts/register/">register</a> to comment!<br /><br /> | ||
Your comment will not be posted so please copy it from below:<br /> | ||
{{ form.comment }} | ||
{% endif %} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% include "email/email_top.html" %} | ||
Hi <a href="http://winning-without-losing.com/account">{{ user }}</a>! Here is an update of what happened this week on WWL!<br /> | ||
|
||
<!-- <h3>Status</h3> --> | ||
|
||
<h3>Feedback and ratings on your chapters:</h3> | ||
<i>The feedback your chapters receive will determine if they’ll be selected in the final version of the book!</i><br /> | ||
<h4>{{ chapter.title }}</h4> | ||
Your chapter has obtained an average rating of {{ chapter.rating.get_rating|floatformat }} out of 5 and is now number {{ chapter.get_number }} out of {{ chapters.count }} chapters! | ||
{% include "email/email_bottom.html" %} |