Skip to content

Commit

Permalink
Tweak blog listing page
Browse files Browse the repository at this point in the history
  • Loading branch information
calpaterson committed Sep 13, 2024
1 parent 0f917c6 commit 1ec2d41
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
5 changes: 3 additions & 2 deletions csvbase/web/faq/entries/email-addresses.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ title = "What is my email address used for?"
description = "Providing an email address is optional"
draft = false
created = 2024-09-08
updated = 2024-09-08
updated = 2024-09-13
-->

Providing an email is optional on csvbase.

Your email address is used for:
1. (Manual) password reset
2. Displaying your Gravatar (on an opt-in basis)
2. Displaying your Gravatar
- Opt-in, for privacy reasons

csvbase does not currently send any emails.
47 changes: 24 additions & 23 deletions csvbase/web/templates/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,6 @@ <h1 class="py-2">The csvbase blog</h1>
</div>
</div>

<div class="row">
<div class="col-lg-8 offset-lg-2 mt-3">
<h2>Register an account and stay up to date</h2>
<p class="blog-rss">Get alerted about new posts via <a href="{{ url_for('blog.rss') }}">RSS</a>, or register an account and leave the checkbox ticked:</p>
</div>
</div>

<form method="POST" action="{{ url_for('csvbase.register') }}">
<div class="row mb-5">
<div class="col-lg-4 offset-lg-2">
{{ other_macros.username_form_field() }}
</div>
<div class="col-lg-4">
{{ other_macros.email_form_field() }}
</div>
<div class="col-lg-8 offset-lg-2">
{{ other_macros.password_form_field() }}
{{ other_macros.mailing_list_form_field(checked=True) }}
<input class="btn btn-success" type="submit" value="Register">
</div>
</div>
</form>

{% if posts|length > 0 %}
<div class="row">
<div class="col-lg-8 offset-lg-2">
Expand All @@ -58,6 +35,30 @@ <h2>Previously</h2>
</div>
</div>
{% endif %}

<div class="row">
<div class="col-lg-8 offset-lg-2 mt-3">
<h2>Register an account and stay up to date</h2>
<p class="blog-rss">Get alerted about new posts via <a href="{{ url_for('blog.rss') }}">RSS</a>, or register an account and leave the checkbox ticked:</p>
</div>
</div>

<form method="POST" action="{{ url_for('csvbase.register') }}">
<div class="row mb-5">
<div class="col-lg-8 offset-lg-2">
{{ other_macros.username_form_field() }}
</div>
<div class="col-lg-8 offset-lg-2">
{{ other_macros.email_form_field() }}
</div>
<div class="col-lg-8 offset-lg-2">
{{ other_macros.password_form_field() }}
{{ other_macros.mailing_list_form_field(checked=True) }}
<input class="btn btn-success" type="submit" value="Register">
</div>
</div>
</form>

</div>
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion csvbase/web/templates/other_macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
title="Must contain an @-sign"
placeholder="">
<label>Email</label>
<div class="form-text">Optional - used only for password reset & blog posts.</div>
<div class="form-text">Optional - <a href="/faq/email-addresses">see what it&apos;s used for</a></div>
</div>
{% endmacro %}

Expand Down

0 comments on commit 1ec2d41

Please sign in to comment.