Skip to content

Instantly share code, notes, and snippets.


Ericksonodiaga/base.html Secret

Created Apr 25, 2021
What would you like to do?
<!DOCTYPE html>
<html lang="en">
{% load static %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Course Hero</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<!-- Custom styles for this template -->
<link href="{% static 'pricing.css' %}" rel="stylesheet">
<div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom shadow-sm">
<h5 class="my-0 mr-md-auto font-weight-normal"><a href="{% url 'home' %}" class="text-dark">Course Hero</a></h5>
<nav class="my-2 my-md-0 mr-md-3">
<a class="p-2 text-dark" href="{% url 'join' %}">Premium</a>
{% if user.is_authenticated %}
<a class="p-2 text-dark" href="{% url 'settings' %}">Settings</a>
<a class="p-2 text-dark" href="{% url 'logout' %}">Log Out</a>
{% else %}
<a class="p-2 text-dark" href="{% url 'login' %}">Log In</a>
{% endif %}
{% if user.is_authenticated == False %}
<a class="btn btn-outline-primary" href="{% url 'signup' %}">Sign up</a>
{% endif %}
{% block content %}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment