You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
3.3 KiB
HTML

1 year ago
{% load static %}
1 year ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %}Privacy Preserving ABAC{% endblock %}</title>
<!-- Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
1 year ago
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
<link rel="stylesheet" href="{% static 'abac/styles.css' %}"> <!-- Include CSS file -->
1 year ago
</head>
<body class="d-flex flex-column min-vh-100">
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
1 year ago
<a class="navbar-brand" href="{% url 'abac:home' %}">Privacy Preserving ABAC</a>
1 year ago
<span class="navbar-text ml-auto">
{% if user.is_authenticated %}
1 year ago
<a href="{% url 'abac:user_details' username=user.username %}"> {{ user.username }}</a>
<a class="btn btn-outline-light ml-3" href="{% url 'abac:logout' %}">Logout</a>
1 year ago
{% else %}
1 year ago
<a class="btn btn-outline-light" href="{% url 'abac:login' %}">Login</a>
1 year ago
{% endif %}
</span>
</nav>
{% if user.is_authenticated %}
<nav class="navbar navbar-expand-lg navbar-light bg-light">
1 year ago
<button class="btn btn-primary" onclick="window.location.href='{% url 'abac:upload_file' %}'">Upload File</button>
{% if user.is_superuser %}
<a href="{% url 'abac:user_management' %}" class="btn btn-primary ml-2">User Management</a>
1 year ago
<a href="{% url 'abac:hierarchy_vis' %}" class="btn btn-primary ml-2">Rule Overview</a>
<a href="{% url 'abac:trusted_authorities' %}" class="btn btn-primary ml-2">Authorities</a>
1 year ago
{% endif %}
<span class="ml-auto">
1 year ago
<button class="btn btn-primary" onclick="window.location.href='{% url 'abac:upload_certificate' %}'">Upload Certificate</button>
1 year ago
</span>
</nav>
{% endif %}
</header>
<main class="flex-shrink-0">
1 year ago
{% if messages %}
<div class="container mt-3">
{% for message in messages %}
<div class="alert alert-{{ message.tags }} alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
{% endfor %}
</div>
{% endif %}
1 year ago
<div class="container mt-4">
{% block content %}{% endblock %}
</div>
</main>
<footer class="footer mt-auto py-3 bg-dark text-white">
<div class="container text-center">
1 year ago
<span>© 2023 Masterthesis Malte Kerl Applications of Homomorphic Encryption in Attribute Based Access Control (ABAC) Systems </span>
1 year ago
</div>
</footer>
<!-- Bootstrap JS, Popper.js, and jQuery -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</body>
</html>