Skip to content
Permalink
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>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" 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>
</head>
<body>
<div class="container">
<header>
<p class="site-name"><a href="{% url 'blogs:index' %}">Blog App</a></p>
<nav>
<ul>
{% 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>
</ul>
</nav>
</header>
<div class="content">
{% block content %}{% endblock %}
</div>
</div>
</body>
</html>
You can’t perform that action at this time.