Skip to content

Commit

Permalink
Make click on logo direct to home page, for landing site and admin si…
Browse files Browse the repository at this point in the history
…te respectively
  • Loading branch information
OnaMosimege committed Apr 19, 2024
1 parent cf24310 commit 85a2fa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/templates/admin/base_site.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

{% block branding %}
<h1 class="header-title">
<img src="{% static 'img/sadilar.png' %}" class="main-logo" alt="SADiLaR">
<a href="{% url 'admin:index' %}">
<img src="{% static 'img/sadilar.png' %}" class="main-logo" alt="SADiLaR">
</a>
</h1>
{% if user.is_anonymous %}
{% include "admin/color_theme_toggle.html" %}
Expand Down
4 changes: 3 additions & 1 deletion app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
<header>
<div class="header-container">
<div class="nav-logo">
<img src=" {% static 'img/sadilar.png' %}" class="main-logo" alt="SADiLaR">
<a href="{% url 'home' %}">
<img src=" {% static 'img/sadilar.png' %}" class="main-logo" alt="SADiLaR">
</a>
</div>
<div class="nav-menu">
<ul class="nav nav-pills">
Expand Down

0 comments on commit 85a2fa2

Please sign in to comment.