From f69955d05eb6414b19fe7ee2da7934d75d769bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Thu, 17 Oct 2019 08:14:13 +0200 Subject: [PATCH] basisfunktion --- certweb/templates/pubkeys/create.html | 15 ----- certweb/templates/pubkeys/index.html | 10 ++-- certweb/templates/pubkeys/index.html.bak | 70 ------------------------ certweb/templates/pubkeys/update.html | 12 ++-- 4 files changed, 11 insertions(+), 96 deletions(-) delete mode 100644 certweb/templates/pubkeys/create.html delete mode 100644 certweb/templates/pubkeys/index.html.bak diff --git a/certweb/templates/pubkeys/create.html b/certweb/templates/pubkeys/create.html deleted file mode 100644 index 6a609ff..0000000 --- a/certweb/templates/pubkeys/create.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends 'base.html' %} - -{% block header %} -

{% block title %}New Public Key{% endblock %}

-{% endblock %} - -{% block content %} -
- - - - - -
-{% endblock %} diff --git a/certweb/templates/pubkeys/index.html b/certweb/templates/pubkeys/index.html index 5d414bc..289930c 100644 --- a/certweb/templates/pubkeys/index.html +++ b/certweb/templates/pubkeys/index.html @@ -9,7 +9,7 @@ {% endif %} {% endblock %} {% if g.user %} - New + New {% endif %} {% endblock %} @@ -22,9 +22,9 @@

- ({{ pubkey['id'] }}): {{ pubkey['key_name'] }} + ({{ pubkey['id'] }}): {{ pubkey['identity'] }}

{% if pubkey['revoked'] != 0 %}
this pubkey was revoked manually
@@ -36,7 +36,7 @@ {% endif %} {% if pubkey['revoked'] == 0 %}
- +
{% else %} Delete @@ -49,7 +49,7 @@
owner: {{ pubkey['username']}}
{% endif %}
fingerprint:
{{ pubkey['fingerprint'] }}
-
pubkey:
{{ request.form['ssh_pubkey'] or pubkey['ssh_pubkey'] }}
+
pubkey:
{{ request.form['pubkey'] or pubkey['pubkey'] }}

registered on {{ pubkey['created'].strftime('%Y-%m-%d') }}

diff --git a/certweb/templates/pubkeys/index.html.bak b/certweb/templates/pubkeys/index.html.bak deleted file mode 100644 index be8f9c2..0000000 --- a/certweb/templates/pubkeys/index.html.bak +++ /dev/null @@ -1,70 +0,0 @@ -{% extends 'base.html' %} - -{% block header %} -

{% block title %} - {% if g.user %} - Pubkeys for {{ g.user['fullname'] }} - {% else %} - Pubkeys - {% endif %} - {% endblock %}

- {% if g.user %} - New - {% endif %} -{% endblock %} - -{% block content %} - {% if g.user %} - {% for pubkey in pubkeys %} - {% if ( pubkey['deleted'] == 0 and pubkey['user_id'] == g.user['id'] ) or user['admin'] == 1 %} -
-
-
-

- - ({{ pubkey['id'] }}): {{ pubkey['key_name'] }} - -

- {% if pubkey['revoked'] != 0 %} -
this pubkey was revoked manually
- {% endif %} -
- {% if g.user['id'] == pubkey['user_id'] %} - Edit - {% if pubkey['deleted'] == 0 %} - Delete - Delete final - {% endif %} - {% if pubkey['revoked'] == 0 %} - - - - {% else %} -
revoked
- Delete - {% endif %} - {% endif %} -
-

- - {% if user['admin'] == 1 %} -

owner: {{ pubkey['username']}}
- {% endif %} - fingerprint:
{{ pubkey['fingerprint'] }}
-
- pubkey:
{{ request.form['ssh_pubkey'] or pubkey['ssh_pubkey'] }}
-

registered on {{ pubkey['created'].strftime('%Y-%m-%d') }}

-

-
- -
-
- {% if not loop.last %} -
- {% endif %} - {% endif %} - {% endfor %} - {% else %} -
To view pubkeys and certificates, please log in
- {% endif %} - {% endblock %} diff --git a/certweb/templates/pubkeys/update.html b/certweb/templates/pubkeys/update.html index e40f6bf..ab6a957 100644 --- a/certweb/templates/pubkeys/update.html +++ b/certweb/templates/pubkeys/update.html @@ -9,12 +9,12 @@
- - - - - + + + + +