Works almost
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!-- abac/templates/base.html -->
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@@ -8,29 +8,32 @@
|
||||
<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">
|
||||
<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 -->
|
||||
|
||||
</head>
|
||||
|
||||
<body class="d-flex flex-column min-vh-100">
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<a class="navbar-brand" href="{% url 'home' %}">Privacy Preserving ABAC</a>
|
||||
<a class="navbar-brand" href="{% url 'abac:home' %}">Privacy Preserving ABAC</a>
|
||||
<span class="navbar-text ml-auto">
|
||||
{% if user.is_authenticated %}
|
||||
{{ user.username }}
|
||||
<a class="btn btn-outline-light ml-3" href="{% url 'logout' %}">Logout</a>
|
||||
<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>
|
||||
{% else %}
|
||||
<a class="btn btn-outline-light" href="{% url 'login' %}">Login</a>
|
||||
<a class="btn btn-outline-light" href="{% url 'abac:login' %}">Login</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
</nav>
|
||||
{% if user.is_authenticated %}
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<button class="btn btn-primary">Upload File</button>
|
||||
<button class="btn btn-primary" onclick="window.location.href='{% url 'abac:upload_file' %}'">Upload File</button>
|
||||
{% if perms.abac.can_create_users %}
|
||||
<button class="btn btn-primary ml-2">Create User</button>
|
||||
<button class="btn btn-primary ml-2">User Management</button>
|
||||
{% endif %}
|
||||
<span class="ml-auto">
|
||||
<button class="btn btn-primary">Upload Certificate</button>
|
||||
<button class="btn btn-primary" onclick="window.location.href='{% url 'abac:upload_certificate' %}'">Upload Certificate</button>
|
||||
</span>
|
||||
</nav>
|
||||
{% endif %}
|
||||
@@ -44,7 +47,7 @@
|
||||
|
||||
<footer class="footer mt-auto py-3 bg-dark text-white">
|
||||
<div class="container text-center">
|
||||
<span>© 2023 Privacy Preserving ABAC</span>
|
||||
<span>© 2023 Masterthesis Malte Kerl – Applications of Homomorphic Encryption in Attribute Based Access Control (ABAC) Systems </span>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user