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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
ae3e9a02
authored
Feb 21, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: key managing merged with store
parent
5dc2c477
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
34 deletions
+39
-34
one/static/script/store.js
+4
-0
one/static/style/box.less
+16
-15
one/templates/box/file/box.html
+19
-0
one/templates/box/key/box.html
+0
-19
No files found.
one/static/script/store.js
View file @
ae3e9a02
...
@@ -479,6 +479,10 @@ var cloud = (function(cloud) {
...
@@ -479,6 +479,10 @@ var cloud = (function(cloud) {
var
model
=
new
Model
();
var
model
=
new
Model
();
$
(
function
()
{
$
(
function
()
{
ko
.
applyBindings
(
model
);
ko
.
applyBindings
(
model
);
$
(
'#keys'
).
click
(
function
(
e
)
{
$
(
'.key'
).
slideDown
(
700
);
$
(
'#keys'
).
slideUp
(
700
);
});
});
});
document
.
addEventListener
(
'dragenter'
,
function
(
e
)
{
document
.
addEventListener
(
'dragenter'
,
function
(
e
)
{
e
.
stopPropagation
();
e
.
stopPropagation
();
...
...
one/static/style/box.less
View file @
ae3e9a02
...
@@ -101,6 +101,21 @@
...
@@ -101,6 +101,21 @@
float: none;
float: none;
}
}
}
}
&.key {
.name {
background-image: url(/static/icons/key.png);
}
textarea {
margin: 10px;
width: 93%;
}
#new-key .name {
background-image: url(/static/icons/key--plus.png);
}
#reset-key .name {
background-image: url(/static/icons/key--exclamation.png);
}
}
.quota{
.quota{
left: 0;
left: 0;
top: 0;
top: 0;
...
@@ -599,21 +614,7 @@ table {
...
@@ -599,21 +614,7 @@ table {
}
}
}
}
#keys {
.name {
background-image: url(/static/icons/key.png);
}
textarea {
margin: 10px;
width: 93%;
}
#new-key .name {
background-image: url(/static/icons/key--plus.png);
}
#reset-key .name {
background-image: url(/static/icons/key--exclamation.png);
}
}
.boxhelp {
.boxhelp {
position: relative;
position: relative;
...
...
one/templates/box/file/box.html
View file @
ae3e9a02
...
@@ -93,6 +93,25 @@
...
@@ -93,6 +93,25 @@
{% for key in keys %}
{% for key in keys %}
{% include "box/key/entry.html" %}
{% include "box/key/entry.html" %}
{% endfor %}
{% endfor %}
<li
class=
"entry small-row key"
style=
"display: none"
>
<div
class=
"summary"
id=
"new-key"
>
<div
class=
"name"
>
{% trans "Add public key" %}
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"details"
>
<form
style=
"padding-bottom: 10px"
action=
"/key/add/"
method=
"POST"
>
{% csrf_token %}
<textarea
style=
"margin-bottom: 5px"
name=
"key"
placeholder=
"{% trans "
Public
key
in
OpenSSH
format
"
%}"
></textarea><br
/>
<input
type=
"submit"
style=
"margin-left: 10px;"
value=
"{% trans "
Save
"
%}"
/>
</form>
</div>
</li>
<li
class=
"entry small-row key"
style=
"display: none"
>
<div
class=
"summary"
id=
"reset-key"
>
<div
class=
"name"
>
{% trans "Reset key" %}
</div>
<div
class=
"clear"
></div>
</div>
</li>
<li
class=
"file-upload entry small-row"
>
<li
class=
"file-upload entry small-row"
>
<div
class=
"summary"
data-bind=
"click: getUploadURL"
>
<div
class=
"summary"
data-bind=
"click: getUploadURL"
>
<div
class=
"quota"
>
<div
class=
"quota"
>
...
...
one/templates/box/key/box.html
View file @
ae3e9a02
...
@@ -12,24 +12,5 @@
...
@@ -12,24 +12,5 @@
{% for key in keys %}
{% for key in keys %}
{% include "box/key/entry.html" %}
{% include "box/key/entry.html" %}
{% endfor %}
{% endfor %}
<li
class=
"entry small-row"
style=
"display: none"
>
<div
class=
"summary"
id=
"new-key"
>
<div
class=
"name"
>
{% trans "Add public key" %}
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"details"
>
<form
style=
"padding-bottom: 10px"
action=
"/key/add/"
method=
"POST"
>
{% csrf_token %}
<textarea
style=
"margin-bottom: 5px"
name=
"key"
placeholder=
"{% trans "
Public
key
in
OpenSSH
format
"
%}"
></textarea><br
/>
<input
type=
"submit"
style=
"margin-left: 10px;"
value=
"{% trans "
Save
"
%}"
/>
</form>
</div>
</li>
<li
class=
"entry small-row"
style=
"display: none"
>
<div
class=
"summary"
id=
"reset-key"
>
<div
class=
"name"
>
{% trans "Reset key" %}
</div>
<div
class=
"clear"
></div>
</div>
</li>
</ul>
</ul>
{% endblock content %}
{% endblock content %}
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