Skip to content

Commit

Permalink
Template update for easy user navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEZE1020 committed Jan 12, 2025
1 parent 6948068 commit 1bd22cd
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% load static %}
<title>{% block title %}My Social Media API{% endblock %}</title>
{% load static %}
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
</head>
<body>
Expand All @@ -16,7 +16,12 @@
<li><a href="/api/accounts/">Accounts API</a></li>
<li><a href="/api/notifications/">Notifications API</a></li>
<li><a href="/api/posts/">Posts API</a></li>
<li><a href="/accounts/">Accounts</a></li>
<li><a href="/api/accounts/">Accounts</a></li>
{% if user.is_authenticated %}
<li><a href="{% url 'account_logout' %}">Sign Out</a></li>
{% else %}
<li><a href="{% url 'account_login' %}">Sign In</a></li>
{% endif %}
</ul>
</nav>
</header>
Expand All @@ -27,7 +32,22 @@
</main>

<footer>
<p>&copy; 2025 Ogembo Godfrey</p>
<nav>
<ul>
<li><a href="{% url 'home' %}">Home</a></li>
<li><a href="/admin/">Admin</a></li>
<li><a href="/api/accounts/">Accounts API</a></li>
<li><a href="/api/notifications/">Notifications API</a></li>
<li><a href="/api/posts/">Posts API</a></li>
<li><a href="/accounts/">Accounts</a></li>
{% if user.is_authenticated %}
<li><a href="{% url 'account_logout' %}">Sign Out</a></li>
{% else %}
<li><a href="{% url 'account_login' %}">Sign In</a></li>
{% endif %}
</ul>
</nav>
<p>&copy; 2025 My Social Media API</p>
</footer>
</body>
</html>

0 comments on commit 1bd22cd

Please sign in to comment.