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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
23 deletions
+6
-23
one/templates/home.html
+5
-23
one/views.py
+1
-0
No files found.
one/templates/home.html
View file @
163be79e
...
@@ -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" %}
...
...
one/views.py
View file @
163be79e
...
@@ -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
...
...
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