diff --git a/cats/static/CAcert-logo.svg b/cats/static/CAcert-logo.svg new file mode 100644 index 0000000..c8107a5 --- /dev/null +++ b/cats/static/CAcert-logo.svg @@ -0,0 +1,26 @@ + + diff --git a/cats/static/cats.css b/cats/static/cats.css new file mode 100644 index 0000000..36a5339 --- /dev/null +++ b/cats/static/cats.css @@ -0,0 +1,3 @@ +html { + font-family: ui-system, sans-serif; +} \ No newline at end of file diff --git a/cats/static/favicon.ico b/cats/static/favicon.ico new file mode 100644 index 0000000..dfccc66 Binary files /dev/null and b/cats/static/favicon.ico differ diff --git a/cats/templates/base.html b/cats/templates/base.html new file mode 100644 index 0000000..eb0e44a --- /dev/null +++ b/cats/templates/base.html @@ -0,0 +1,22 @@ +{% load static %}{% load i18n %} +{% get_current_language as LANGUAGE_CODE %} + + + + {% block title %}{% translate "CAcert - CATS" %}{% endblock title %} + + + + +
+ CAcert logo +
+
{% block content %}{% endblock content %}
+ + + + \ No newline at end of file diff --git a/cats/templates/home.html b/cats/templates/home.html new file mode 100644 index 0000000..308541a --- /dev/null +++ b/cats/templates/home.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} +{% load i18n %} +{% block content %} +{% blocktranslate trimmed %} + Welcome to the CAcert Assurer Training System - CATS. +{% endblocktranslate %} +{% endblock content %} \ No newline at end of file diff --git a/cats/views.py b/cats/views.py index 25fd696..459973e 100644 --- a/cats/views.py +++ b/cats/views.py @@ -1,6 +1,6 @@ from django.contrib.auth import authenticate -from django.http import HttpResponseForbidden, HttpResponseRedirect, HttpResponse -from django.shortcuts import redirect +from django.http import HttpResponseForbidden, HttpResponseRedirect +from django.shortcuts import redirect, render from django.utils.translation import gettext as _ @@ -20,4 +20,4 @@ def certificate_login(request): def home_page(request): - return HttpResponse("Hello World!") + return render(request, "home.html")