Skip to content

Commit

Permalink
Remove user_is_subscriber template tag
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Jul 8, 2023
1 parent b116026 commit 062f9fe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
4 changes: 1 addition & 3 deletions core/templates/menus/main/menu.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{% load menu_tags %}
{% load user_is_subscriber %}

{% for item in menu_items %}
<li class="{{ item.active_class }} nav-item">
<a href="{{ item.href }}" class="nav-link">{{ item.text }}</a>
</li>
{% endfor %}

{% user_is_subscriber as user_is_subscriber %}

{% if not user_is_subscriber %}
{% if not request.user.is_subscriber %}
<li class="nav-item">
<a href="/subscribe" class="nav-link">Subscribe</a>
</li>
Expand Down
2 changes: 0 additions & 2 deletions magazine/templates/magazine/magazine_article.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

{% load wagtailcore_tags %}

{% load user_is_subscriber %}

{% block body_class %}template-magazinearticlepage{% endblock %}

{% block content %}
Expand Down
21 changes: 0 additions & 21 deletions subscription/templatetags/user_is_subscriber.py

This file was deleted.

0 comments on commit 062f9fe

Please sign in to comment.