*: rename templatetags to clearly identify

This commit is contained in:
Jens Langhammer 2020-05-15 10:54:31 +02:00
parent 8cfd3f9a2b
commit a5319fc2fe
43 changed files with 42 additions and 48 deletions

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block content %}
<section class="pf-c-page__main-section pf-m-light">

View File

@ -1,7 +1,7 @@
{% extends "base/page.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block page_content %}
<main role="main" class="pf-c-page__main" tabindex="-1" id="main-content">

View File

@ -3,8 +3,8 @@
{% load static %}
{% load i18n %}
{% load is_active %}
{% load utils %}
{% load passbook_is_active %}
{% load passbook_utils %}
{% block head %}
{{ block.super }}

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block content %}
<section class="pf-c-page__main-section pf-m-light">

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block content %}
<section class="pf-c-page__main-section pf-m-light">

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block content %}
<section class="pf-c-page__main-section pf-m-light">

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block content %}
<section class="pf-c-page__main-section pf-m-light">

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block content %}
<section class="pf-c-page__main-section pf-m-light">

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block content %}
<section class="pf-c-page__main-section pf-m-light">

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block content %}
<section class="pf-c-page__main-section pf-m-light">

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% load admin_reflection %}
{% block content %}

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% load admin_reflection %}
{% block content %}

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% load admin_reflection %}
{% block content %}

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block content %}
<section class="pf-c-page__main-section pf-m-light">

View File

@ -1,6 +1,6 @@
{% extends base_template|default:"generic/form.html" %}
{% load utils %}
{% load passbook_utils %}
{% load i18n %}
{% block above_form %}

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% load static %}
{% block head %}

View File

@ -1,6 +1,6 @@
{% extends base_template|default:"generic/form.html" %}
{% load utils %}
{% load passbook_utils %}
{% load i18n %}
{% block above_form %}

View File

@ -2,7 +2,7 @@
{% load static %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block card_title %}
{{ title }} <span>(403)</span>

View File

@ -3,8 +3,8 @@
{% load static %}
{% load i18n %}
{% load is_active %}
{% load utils %}
{% load passbook_is_active %}
{% load passbook_utils %}
{% block body %}
{% include 'partials/messages.html' %}

View File

@ -1,6 +1,6 @@
{% load static %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
<!DOCTYPE html>

View File

@ -2,7 +2,7 @@
{% load static %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block card_title %}
{% trans 'Bad Request' %}

View File

@ -1,7 +1,7 @@
{% extends "administration/base.html" %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block content %}
<section class="pf-c-page__main-section pf-m-light">

View File

@ -2,7 +2,7 @@
{% load static %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block card %}
<form method="POST" class="pf-c-form">

View File

@ -1,7 +1,7 @@
{% extends 'login/form.html' %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block head %}
{{ block.super }}

View File

@ -2,7 +2,7 @@
{% load static %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block title %}
{% trans title %}

View File

@ -3,8 +3,8 @@
{% load static %}
{% load i18n %}
{% load is_active %}
{% load utils %}
{% load passbook_is_active %}
{% load passbook_utils %}
{% block page_content %}
<main role="main" class="pf-c-page__main" tabindex="-1" id="main-content">

View File

@ -1,4 +1,4 @@
{% load utils %}
{% load passbook_utils %}
{% load i18n %}
{% csrf_token %}

View File

@ -1,4 +1,4 @@
{% load utils %}
{% load passbook_utils %}
{% load i18n %}
{% csrf_token %}

View File

@ -1,7 +1,7 @@
{% extends "base/page.html" %}
{% load i18n %}
{% load is_active %}
{% load passbook_is_active %}
{% load static %}
{% load passbook_user_settings %}

View File

@ -192,7 +192,6 @@ class ToDefaultFlow(View):
flow_slug=flow.slug,
)
del self.request.session[SESSION_KEY_PLAN]
# TODO: Get Flow depending on subdomain?
return redirect_with_qs(
"passbook_flows:flow-executor", request.GET, flow_slug=flow.slug
)

View File

@ -1,4 +1,4 @@
{% load utils %}
{% load passbook_utils %}
{% spaceless %}
<div class="dynamic-array-widget">

View File

@ -33,8 +33,6 @@ def is_active(context, *args, **kwargs):
@register.simple_tag(takes_context=True)
def is_active_url(context, view):
"""Return whether a navbar link is active or not."""
# matching_url = reverse(view, args=args, kwargs=kwargs)
request = context.get("request")
current_full_url = (
f"{request.resolver_match.app_name}:{request.resolver_match.url_name}"
@ -44,8 +42,6 @@ def is_active_url(context, view):
return ""
if current_full_url == view:
return ACTIVE_STRING
# if matching_url == request.path:
# return 'active'
return ""

View File

@ -1,6 +1,6 @@
{% extends "login/base.html" %}
{% load utils %}
{% load passbook_utils %}
{% load i18n %}
{% block card_title %}

View File

@ -1,6 +1,6 @@
{% extends "login/base.html" %}
{% load utils %}
{% load passbook_utils %}
{% load i18n %}
{% block card_title %}

View File

@ -2,7 +2,7 @@
{% load static %}
{% load i18n %}
{% load utils %}
{% load passbook_utils %}
{% block card_title %}
{% trans error %}

View File

@ -1,6 +1,6 @@
{% extends "login/base.html" %}
{% load utils %}
{% load passbook_utils %}
{% load i18n %}
{% block card_title %}

View File

@ -1,6 +1,6 @@
{% extends "login/base.html" %}
{% load utils %}
{% load passbook_utils %}
{% load i18n %}
{% block card %}

View File

@ -1,6 +1,6 @@
{% extends "login/base.html" %}
{% load utils %}
{% load passbook_utils %}
{% load i18n %}
{% block title %}

View File

@ -1,5 +1,5 @@
{% load passbook_stages_email %}
{% load utils %}
{% load passbook_utils %}
{% load static %}
{% load i18n %}

View File

@ -1,6 +1,6 @@
{% extends "stages/email/for_email/base.html" %}
{% load utils %}
{% load passbook_utils %}
{% load i18n %}
{% load humanize %}

View File

@ -55,7 +55,6 @@
</footer>
</main>
<footer class="pf-c-login__footer">
<p></p>
<ul class="pf-c-list pf-m-inline">
<li>
<a href="https://beryju.github.io/passbook/">{% trans 'Documentation' %}</a>

View File

@ -1,6 +1,6 @@
{% extends "user/base.html" %}
{% load utils %}
{% load passbook_utils %}
{% load i18n %}
{% block page %}