Commit 87264f60 authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Update of the view and template

I updated the Proof of Concept for the view and template in order to
display few information related to the user (namely the email and ssh
public key)

Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <>
parent 19101e9b
from django.shortcuts import render
from .models import User, Quota
from django.contrib.auth.models import User
def index(request):
......@@ -8,5 +8,6 @@ def index(request):
def user(request):
quotas = Quota.objects.all()
# quotas = Quota.objects.all()
users = User.objects.all()
return render(request, "user.html", locals())
......@@ -12,10 +12,10 @@
<th>Webapp ID</th>
{% for quota in quotas %}
{% for user in users %}
<td>{{ }}</td>
<td>{{ quota.user_id }} | {{ }}</td>
<td>{{ }}</td>
<td>{{ user.allgouser.sshkey }} | {{ }}</td>
<td>{{ quota.quantity }}</td>
<td>{{ quota.webapp_id }}</td>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment