{% extends 'base/base.html' %}
{% load static %}

{% block title %}Home{% endblock %}

{% block content %}
<div class="container mt-5">
  <div class="row">
    <div class="col-md-6 offset-md-3">
      <div class="card">
        <div class="card-body text-center">
          {% if user.is_authenticated %}
          <p class="card-text">Hello, <b>{{ user.username }}</b>!</p>

          <p><a href="{% url 'vulnerabilities' %}" class="btn btn-success">Browse vulnerabilities</a></p>

          <p><a href="{% url 'password_change' %}" class="btn btn-primary">Change Password</a></p>
          <form action="{% url 'logout' %}" method="post">
            {% csrf_token %}
            <button type="submit" class="btn btn-secondary">Log Out</button>
          </form>
          {% else %}
          <p class="card-text">You are not logged in</p>
          <p><a href="{% url 'login' %}" class="btn btn-primary">Log In</a></p>
          {% endif %}
        </div>
      </div>
    </div>
  </div>
</div>
{% endblock %}


{% comment %}
vi: ft=htmldjango
{% endcomment %}
