Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
163be79e
authored
Feb 19, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: user's public keys listed
parent
c8066407
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
21 deletions
+4
-21
one/templates/home.html
+3
-21
one/views.py
+1
-0
No files found.
one/templates/home.html
View file @
163be79e
...
...
@@ -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/key/box.html" %}
{% if userdetails.share_quota %}
{% include "box/template/box.html" %}
{% include "box/group/box.html" %}
{% endif %}
{% endif %}
</div>
<div
class=
"boxes"
>
{% include "box/file/box.html" %}
...
...
one/views.py
View file @
163be79e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment