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
d30fc623
authored
Feb 21, 2013
by
x
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://giccero.cloud.ik.bme.hu/cloud
into production
parents
f8dfa252
9220cd73
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
17 deletions
+16
-17
one/static/script/cloud.js
+6
-7
one/static/style/box.less
+2
-2
one/templates/box/template/box.html
+1
-1
one/templates/box/template/summary.html
+4
-4
school/views.py
+3
-3
No files found.
one/static/script/cloud.js
View file @
d30fc623
...
...
@@ -185,8 +185,10 @@ $(function() {
$
(
'.hidden-password'
).
click
(
function
()
{
if
(
$
(
this
).
attr
(
'type'
)
==
'password'
){
$
(
this
).
attr
(
'type'
,
'text'
);
$
(
this
).
addClass
(
'shown'
);
}
else
{
$
(
this
).
attr
(
'type'
,
'password'
);
$
(
this
).
removeClass
(
'shown'
);
}
});
$
(
'.selected-summary'
).
next
().
show
();
...
...
@@ -197,15 +199,12 @@ $(function() {
function
get_vm_details
(
id
)
{
$
.
get
(
'/vm/credentials/'
+
id
,
function
(
data
)
{
$
(
'#modal-container'
).
html
(
data
);
$
(
'.hidden-password'
).
each
(
function
()
{
$
(
this
).
val
(
'******'
);
});
$
(
'.hidden-password'
).
click
(
function
()
{
if
(
!
$
(
this
).
hasClass
(
'shown'
))
{
$
(
this
).
val
(
$
(
this
).
data
(
'value'
));
$
(
'#modal-container .hidden-password'
).
click
(
function
()
{
if
(
$
(
this
).
attr
(
'type'
)
==
'password'
){
$
(
this
).
attr
(
'type'
,
'text'
);
$
(
this
).
addClass
(
'shown'
);
}
else
{
$
(
this
).
val
(
'******
'
);
$
(
this
).
attr
(
'type'
,
'password
'
);
$
(
this
).
removeClass
(
'shown'
);
}
})
...
...
one/static/style/box.less
View file @
d30fc623
...
...
@@ -460,10 +460,10 @@
background-image: url(/static/icons/computer-off.png);
}
#template .
wm
.summary .name{
#template .
entry
.summary .name{
background-image: url(/static/icons/document-template.png)
}
#template .
wm
.public-template .name{
#template .
entry
.public-template .name{
background-image: url(/static/icons/blue-document-share.png)
}
#new-template-button .name{
...
...
one/templates/box/template/box.html
View file @
d30fc623
...
...
@@ -23,7 +23,7 @@
{% endblock %}
{% block content %}
<ul
class=
"vm-list entry-list"
>
<ul
class=
"vm-list entry-list"
id=
"template"
>
{% for t in mytemplates %}
{% include "box/template/entry.html" %}
{% endfor %}
...
...
one/templates/box/template/summary.html
View file @
d30fc623
...
...
@@ -40,9 +40,9 @@
<a
href=
"#"
class=
"try-template"
data-id=
"{{t.id}}"
title=
"{% trans "
Try
"
%}"
>
<img
src=
"/static/icons/control.png"
alt=
"{% trans "
Start
"
%}"
/>
</a>
<a
href=
"#"
title=
"{% trans "
Edit
"
%}"
>
<
!--<
a href="#" title="{% trans "Edit" %}">
<img src="/static/icons/pencil.png" alt="{% trans "Edit" %}" />
</a>
</a>
-->
<a
href=
"#"
class=
"template-share"
data-id=
"{{t.id}}"
data-gid=
"{{group.id}}"
title=
"{% trans "
Share
"
%}"
>
<img
src=
"/static/icons/user-share.png"
alt=
"{% trans "
Share
"
%}"
/>
</a>
...
...
@@ -50,7 +50,7 @@
<a
href=
"#"
class=
"delete-template"
data-id=
"{{ t.id }}"
data-name=
"{{ t.name }}"
title=
"{% trans "
Remove
"
%}"
>
<img
src=
"/static/icons/minus-circle.png"
alt=
"{% trans "
Remove
"
%}"
/>
</a>
<a
href=
"#"
class=
"edit-template"
data-id=
"{{ t.id }}"
title=
"{% trans "
Edit
"
%}"
>
<
!--<
a href="#" class="edit-template" data-id="{{ t.id }}" title="{% trans "Edit" %}">
<img src="/static/icons/pencil.png" alt="{% trans "Edit" %}" />
</a>
</a>
-->
{% endblock actions %}
school/views.py
View file @
d30fc623
...
...
@@ -242,13 +242,13 @@ def group_ajax_owner_autocomplete(request):
results
=
map
(
lambda
u
:
{
'name'
:
u
.
get_full_name
(),
'neptun'
:
u
.
username
},
User
.
objects
.
filter
(
last_name__startswith
=
request
.
POST
[
'q'
])[:
5
])
'neptun'
:
u
.
username
},
User
.
objects
.
filter
(
last_name__
i
startswith
=
request
.
POST
[
'q'
])[:
5
])
results
+=
map
(
lambda
u
:
{
'name'
:
u
.
get_full_name
(),
'neptun'
:
u
.
username
},
User
.
objects
.
filter
(
first_name__startswith
=
request
.
POST
[
'q'
])[:
5
])
'neptun'
:
u
.
username
},
User
.
objects
.
filter
(
first_name__
i
startswith
=
request
.
POST
[
'q'
])[:
5
])
results
+=
map
(
lambda
u
:
{
'name'
:
u
.
get_full_name
(),
'neptun'
:
u
.
username
},
User
.
objects
.
filter
(
username__startswith
=
request
.
POST
[
'q'
])[:
5
])
'neptun'
:
u
.
username
},
User
.
objects
.
filter
(
username__
i
startswith
=
request
.
POST
[
'q'
])[:
5
])
return
HttpResponse
(
json
.
dumps
(
results
,
ensure_ascii
=
False
))
@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