Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
9d10aac2
Commit
9d10aac2
authored
Nov 08, 2012
by
Kostas Papadimitriou
Browse files
Dynamically set user quota url in ui
parent
52c23bb7
Changes
2
Show whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_main_view.js
View file @
9d10aac2
...
@@ -743,7 +743,7 @@
...
@@ -743,7 +743,7 @@
load_user_quotas
:
function
()
{
load_user_quotas
:
function
()
{
var
main_view
=
this
;
var
main_view
=
this
;
snf
.
api
.
sync
(
'
read
'
,
undefined
,
{
snf
.
api
.
sync
(
'
read
'
,
undefined
,
{
url
:
'
/ui/user
quota
'
,
url
:
synnefo
.
config
.
quota
_url
,
success
:
function
(
d
)
{
success
:
function
(
d
)
{
snf
.
user
.
quotas
=
{};
snf
.
user
.
quotas
=
{};
snf
.
user
.
quotas
[
'
vms
'
]
=
d
.
vms_quota
;
snf
.
user
.
quotas
[
'
vms
'
]
=
d
.
vms_quota
;
...
...
snf-cyclades-app/synnefo/ui/templates/home.html
View file @
9d10aac2
...
@@ -630,6 +630,7 @@
...
@@ -630,6 +630,7 @@
synnefo
.
config
.
grouped_public_network_name
=
{{
grouped_public_network_name
|
safe
}};
synnefo
.
config
.
grouped_public_network_name
=
{{
grouped_public_network_name
|
safe
}};
synnefo
.
config
.
vm_hostname_format
=
{{
vm_hostname_format
|
safe
}};
synnefo
.
config
.
vm_hostname_format
=
{{
vm_hostname_format
|
safe
}};
synnefo
.
config
.
automatic_network_range_format
=
{{
automatic_network_range_format
|
safe
}};
synnefo
.
config
.
automatic_network_range_format
=
{{
automatic_network_range_format
|
safe
}};
synnefo
.
config
.
quota_url
=
'
{% url synnefo.ui.views.user_quota %}
'
;
synnefo
.
auth_client
=
new
synnefo
.
auth
.
AstakosClient
({
synnefo
.
auth_client
=
new
synnefo
.
auth
.
AstakosClient
({
login_url
:
synnefo
.
config
.
login_redirect
,
login_url
:
synnefo
.
config
.
login_redirect
,
...
...
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