Commit f3d8842a authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Deletion of users view



I deleted the users view that was here just for a test purpose.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent b5df5582
......@@ -4,7 +4,6 @@ from . import views
urlpatterns = [
url(r'^$', views.index, name="poc_home"),
url(r'^users/', views.user),
url(r'^webapps/$', views.list_webapps, name='list_webapps'),
url(r'^apps/$', views.WebappList.as_view(), name='webapp_list'),
url('^auth/', include('django.contrib.auth.urls')),
......
......@@ -3,7 +3,6 @@ from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic import CreateView, ListView
from django.contrib.auth.models import User
from .models import Webapp
......@@ -11,12 +10,6 @@ def index(request):
return render(request, "home.html")
def user(request):
# quotas = Quota.objects.all()
users = User.objects.all()
return render(request, "user.html", locals())
def list_webapps(request):
webapps = Webapp.objects.all()
return render(request, "webapps.html", locals())
......
{% extends "base.html" %}
{% block title %}Test users{% endblock %}
{% block content %}
<h1>Users</h1>
<table>
<tr>
<th>Email</th>
<th>User ID (quota) / User ID (user)</th>
<th>Quota</th>
<th>Webapp ID</th>
</tr>
{% for user in users %}
<tr>
<td>{{ user.email }}</td>
<td>{{ user.allgouser.sshkey }} | {{ quota.user.id }}</td>
<td>{{ quota.quantity }}</td>
<td>{{ quota.webapp_id }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
Markdown is supported
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