diff options
| author | Bobby <[email protected]> | 2025-05-20 13:00:42 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-05-20 13:00:42 +0530 |
| commit | f508451230ffa5c5a2043d8189d01afe52e11768 (patch) | |
| tree | 93bc4ec14a9dc5a9e5372c81b51d8a01e43a98d7 | |
| parent | 5c5e3e47b622e9eb9e78c2c9a2be5a7848076ae6 (diff) | |
| download | thatcomputerscientist-f508451230ffa5c5a2043d8189d01afe52e11768.tar.xz thatcomputerscientist-f508451230ffa5c5a2043d8189d01afe52e11768.zip | |
new user registration and commenting disabled until further notice
| -rw-r--r-- | templates/blog/post.html | 12 | ||||
| -rw-r--r-- | templates/blog/register.html | 65 |
2 files changed, 33 insertions, 44 deletions
diff --git a/templates/blog/post.html b/templates/blog/post.html index 5a98e981..ba68a145 100644 --- a/templates/blog/post.html +++ b/templates/blog/post.html @@ -180,7 +180,8 @@ background: #ffffff0d; {% if user.is_authenticated %} <div id="new-comment" class="mtsbitem"> <h2>Leave a Comment</h2> - {% if messages %} + <h4 style="margin-top: 0; font-size: 16px;">Commenting has been currently disabled as the site is undergoing heavy changes. Please check back later.</h4> + {% comment %} {% if messages %} {% for message in messages %} {% if 'spam' in message.tags %} <p style="color: #ffb6b6;">Your comment was not allowed as it was marked as possible spam. If you think this is a mistake, please contact me at <a href="mailto:[email protected]">[email protected]</a>.</p> @@ -246,13 +247,14 @@ background: #ffffff0d; </div> </div> <input type="submit" value="Submit" class="button button-special"> - </form> + </form> {% endcomment %} </div> {% else %} <div id="new-comment" class="mtsbitem"> <h2>Leave a Comment</h2> - {% if messages %} + <h4 style="margin-top: 0; font-size: 16px;">Commenting has been currently disabled as the site is undergoing heavy changes. Please check back later.</h4> + {% comment %} {% if messages %} {% for message in messages %} {% if 'spam' in message.tags %} <p style="color: #ffb6b6;">Your comment was not allowed as it was marked as possible spam. If you think this is a mistake, please contact me at <a href="mailto:[email protected]">[email protected]</a>.</p> @@ -364,10 +366,10 @@ background: #ffffff0d; </div> <input type="submit" value="Submit" class="button button-special"> <input type="button" value="Close" class="button" onclick="toggleAnon()"> - </form> + </form> {% endcomment %} {% comment %} <br> <button class="button" onclick="cd()">Clear Form Data</button> {% endcomment %} - </div> + {% comment %} </div> {% endcomment %} </div> {% endif %} diff --git a/templates/blog/register.html b/templates/blog/register.html index 16ff128a..0c1fd0fb 100644 --- a/templates/blog/register.html +++ b/templates/blog/register.html @@ -1,42 +1,29 @@ {% extends 'blog/partials/base.html' %} {% block content %} -<h1 style="margin-top: 30px">Register for an account</h1> -<p> - Register for an account to post your thoughts and get feedback from other - users. -</p> -<hr /> -<form method="post"> - <input - type="hidden" - name="csrfmiddlewaretoken" - value="{{ csrf_token }}" - style="display: none" - /> - <table id="register_form"> - {{ form.as_table }} - </table> + {% comment %} <h1 style="margin-top: 30px">Register for an account</h1> + <p>Register for an account to post your thoughts and get feedback from other users.</p> + <hr /> {% endcomment %} + {% comment %} <form method="post"> + <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" style="display: none" /> + <table id="register_form">{{ form.as_table }}</table> + <p> + <img width="160" height="60" src="{% url 'ignis:captcha_image' captcha %}" alt="Captcha" id="captcha" /> + </p> + <input type="hidden" name="expected_captcha" value="{{ captcha }}" /> + <input type="submit" value="Register" class="button button-special" /> + </form> {% endcomment %} + <h3 style="margin-top: 30px; font-size: 18px;">New User Registration has been currently disabled as the site is undergoing heavy changes. Please check back later. Pre-existing users can still log in.</h3> <p> - <img - width="160" - height="60" - src="{% url 'ignis:captcha_image' captcha %}" - alt="Captcha" - id="captcha" - /> + By registering on this site, you agree to everything that's + <a href="{% url 'blog:policy' %}">written here</a>. </p> - <input type="hidden" name="expected_captcha" value="{{ captcha }}" /> - <input type="submit" value="Register" class="button button-special" /> -</form> -<br /><br /> -<p> - By registering on this site, you agree to everything that's - <a href="{% url 'blog:policy' %}">written here</a>. -</p> -<p> - <b>Note</b>: Upon registering, you will be sent an email with a link to - activate your account. If you don't activate your account within 72 hours, - your username will be released and you will have to register again. -</p> -{% for message in messages %} {% if 'accountCreated' in message.tags %} -<p><small class="success">{{ message.message }}</small></p> -{% endif %} {% endfor %} {% endblock %} + <p> + <b>Note</b>: Upon registering, you will be sent an email with a link to activate your account. If you don't activate your account within 72 hours, your username will be released and you will have to register again. + </p> + {% for message in messages %} + {% if 'accountCreated' in message.tags %} + <p> + <small class="success">{{ message.message }}</small> + </p> + {% endif %} + {% endfor %} +{% endblock %} |
