Skip to content

Commit

Permalink
chore: extract login and logout branding as include
Browse files Browse the repository at this point in the history
  • Loading branch information
lalver1 committed Oct 7, 2024
1 parent aadac68 commit 79c47ae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
9 changes: 9 additions & 0 deletions benefits/templates/admin/includes/branding-login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% load i18n static %}

<div class="d-flex justify-content-center w-100 bg-primary">
<img class="my-3" src="{% static "img/logo-lg.svg" %}" width="220" height="50" alt="California Integrated Travel Project: Benefits logo (large)" />
</div>

<div id="site-name">
<h1 class="text-center text-white fs-3 py-3 m-0">{{ site_header }}</h1>
</div>
8 changes: 1 addition & 7 deletions benefits/templates/admin/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,5 @@
{% endblock extrastyle %}

{% block branding %}
<div class="d-flex justify-content-center w-100 bg-primary">
<img class="my-3" src="{% static "img/logo-lg.svg" %}" width="220" height="50" alt="California Integrated Travel Project: Benefits logo (large)" />
</div>

<div id="site-name">
<h1 class="text-center text-white fs-3 py-3 m-0">{{ site_header }}</h1>
</div>
{% include "admin/includes/branding-login.html" %}
{% endblock branding %}
8 changes: 1 addition & 7 deletions benefits/templates/registration/logged_out.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@
{% endblock bodyclass %}

{% block branding %}
<div class="d-flex justify-content-center w-100 bg-primary">
<img class="my-3" src="{% static "img/logo-lg.svg" %}" width="220" height="50" alt="California Integrated Travel Project: Benefits logo (large)" />
</div>

<div id="site-name">
<h1 class="text-center text-white fs-3 py-3 m-0">{{ site_header }}</h1>
</div>
{% include "admin/includes/branding-login.html" %}
{% endblock branding %}

{% block content %}
Expand Down

0 comments on commit 79c47ae

Please sign in to comment.