Commit 163be79e by Dányi Bence

webui: user's public keys listed

parent c8066407
......@@ -4,29 +4,11 @@
{% block content %}
<div class="boxes">
{% include "box/vm/box.html" %}
<div class="contentblock">
<h2>{% trans "User details" %}</h2>
<div class="content">
<ul style="list-style: none">
<li style="padding: 5px">
{% trans "Public key" %}
<textarea style="float: right">{{userdetails.ssh_key.key}}</textarea>
<div class="clear"></div>
</li>
<li style="padding: 5px">
{% trans "Samba password" %}
<input style="float: right" class="hidden-password" type="text" data-value="{{userdetails.smb_password}}" />
<div class="clear"></div>
</li>
</ul>
</div>
</div>
{% if userdetails.share_quota %}
{% include "box/template/box.html" %}
{% include "box/group/box.html" %}
{% endif %}
{% include "box/key/box.html" %}
{% if userdetails.share_quota %}
{% include "box/template/box.html" %}
{% include "box/group/box.html" %}
{% endif %}
</div>
<div class="boxes">
{% include "box/file/box.html" %}
......
......@@ -49,6 +49,7 @@ def home(request):
'groups': request.user.person_set.all()[0].owned_groups.all(),
'semesters': Semester.objects.all(),
'userdetails': UserCloudDetails.objects.get(user=request.user),
'keys': request.user.sshkey_set.all()
}))
@login_required
......
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 sign in to comment