Commit 163be79e by Dányi Bence

webui: user's public keys listed

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