Skip to content

Commit

Permalink
add draft warning about post visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ratsclub committed Jul 17, 2024
1 parent 56bb45d commit d6105b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main/templates/main/post_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ <h1 class="posts-item-title" itemprop="name headline">{{ post.title }}</h1>
| <a href="{% url 'post_update' post.slug %}">Edit post</a>
| <a href="{% url 'post_delete' post.slug %}">Del</a>
{% endif %}

{% if post.is_draft %}
<blockquote>
<strong>
⚠️ This post is accessible to anyone with the link!
</strong>
</blockquote>
{% endif %}
</div>

<div class="posts-item-body" itemprop="articleBody">
Expand Down

0 comments on commit d6105b7

Please sign in to comment.