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
124c1e7b
authored
Mar 05, 2014
by
Oláh István Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix in NodeDetail removetraits
parent
b8c96939
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
circle/dashboard/templates/dashboard/node-detail-resources.html
+1
-1
circle/dashboard/templates/dashboard/node-detail.html
+0
-1
circle/dashboard/views.py
+1
-1
No files found.
circle/dashboard/templates/dashboard/node-detail-resources.html
View file @
124c1e7b
...
...
@@ -5,7 +5,7 @@
<dt>
{% trans "Node name" %}:
</dt><dd>
{{ node.name }}
</dd>
<dt>
{% trans "CPU cores" %}:
</dt><dd>
{{ node.num_cores }}
</dd>
<dt>
{% trans "RAM size" %}:
</dt>
<dd>
{% widthratio node.ram_size 1048576 1 %} MB
</dd>
<dt>
{% trans "Architecture" %}:
</
td
><dd>
{{ node.arch }}
</dd>
<dt>
{% trans "Architecture" %}:
</
dt
><dd>
{{ node.arch }}
</dd>
<dt>
{% trans "Host IP" %}:
</dt><dd>
{{ node.host.ipv4 }}
</dd>
<dt>
{% trans "Enabled" %}:
</dt><dd>
{{ node.enabled }}
</dd>
<dt>
{% trans "Host online" %}:
</dt><dd>
{{ node.online }}
</dd>
...
...
circle/dashboard/templates/dashboard/node-detail.html
View file @
124c1e7b
{% extends "dashboard/base.html" %}
{% load i18n %}
{% block content %}
<div
class=
"body-content"
>
<div
class=
"page-header"
>
...
...
circle/dashboard/views.py
View file @
124c1e7b
...
...
@@ -524,7 +524,7 @@ class NodeDetailView(LoginRequiredMixin, SuperuserRequiredMixin, DetailView):
if
request
.
is_ajax
():
return
HttpResponse
(
json
.
dumps
({
'message'
:
message
}),
content_type
=
"application
=
json"
content_type
=
"application
/
json"
)
else
:
return
redirect
(
self
.
object
.
get_absolute_url
())
...
...
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