Skip to content
Branch: master
Find file Copy path
1 contributor

Users who have contributed to this file

32 lines (32 sloc) 1.15 KB
{% load staticfiles %}
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="" rel="stylesheet">
<link href="{% static 'css/style.css' %}" rel="stylesheet">
<title>{% if request.path != '/' %}{% block title %}{% endblock %} | {% endif %}Blog App with Auth | Django2 Tutorial</title>
<div class="container">
<p class="site-name"><a href="{% url 'blogs:index' %}">Blog App</a></p>
{% if user.is_authenticated %}
<li><a href="{% url 'logout' %}" class="logout">Logout</a></li>
{% else %}
<li><a href="{% url 'accounts:signup' %}" class="signup">Sign up</a></li>
<li><a href="{% url 'login' %}" class="login">Login</a></li>
{% endif %}
<li><a href="{% url 'blogs:create' %}" class="act">Add Post</a></li>
<div class="content">
{% block content %}{% endblock %}
You can’t perform that action at this time.